#define MAXDEVICES 100 #include #include "/home/jeblack3/libusblinux300/ownet.h" #include "/home/jeblack3/libusblinux300/findtype.h" int main() { char portname[9] = "DS2490-1"; unsigned char serialNum[MAXDEVICES][8]; int portnum, i, j, numTherms; portnum = owAcquireEx (portname); if (portnum < 0) { printf ("Adapter not found\n"); return 0; } numTherms = FindDevices (portnum, serialNum, 0x10, MAXDEVICES); for (i = 0; i < numTherms; i++) { for (j = 7; j >= 0; j--) { printf ("%02X", serialNum[i][j]); } printf ("\n"); } return 0; }