Paul, I modified the code to show all the regesters returned in the DS9490_getstatus call (Return byte). The results are odd. Reading through the DS2490 documentation, the first set of 16 bytes looks normal, and reflects the command settings from earlier in the code. But, the result registers mirror the state registers...
bsdtest# ./owhttpd -u -p 3001 -F --error_print 2 --error_level 4 CALL: PARSENAME path=[] CONNECT: Adapter found: /dev/usb0//dev/ugen0 DEFAULT: Opened USB DS9490 adapter at /dev/usb0//dev/ugen0. DATA: DS9490_getstatus: Return byte[0]: 2 DATA: DS9490_getstatus: Return byte[1]: 0 DATA: DS9490_getstatus: Return byte[2]: 0 DATA: DS9490_getstatus: Return byte[3]: 40 DATA: DS9490_getstatus: Return byte[4]: 5 DATA: DS9490_getstatus: Return byte[5]: 4 DATA: DS9490_getstatus: Return byte[6]: 4 DATA: DS9490_getstatus: Return byte[7]: 0 DATA: DS9490_getstatus: Return byte[8]: 20 DATA: DS9490_getstatus: Return byte[9]: 1B DATA: DS9490_getstatus: Return byte[A]: 0 DATA: DS9490_getstatus: Return byte[B]: 0 DATA: DS9490_getstatus: Return byte[C]: 0 DATA: DS9490_getstatus: Return byte[D]: 0 DATA: DS9490_getstatus: Return byte[E]: 0 DATA: DS9490_getstatus: Return byte[F]: 0 DATA: DS9490_getstatus: Return byte[10]: 2 DATA: DS9490_getstatus: Return byte[11]: 0 DATA: DS9490_getstatus: Return byte[12]: 0 DATA: DS9490_getstatus: Return byte[13]: 40 DATA: DS9490_getstatus: Return byte[14]: 5 DATA: DS9490_getstatus: Return byte[15]: 4 DATA: DS9490_getstatus: Return byte[16]: 4 DATA: DS9490_getstatus: Return byte[17]: 0 DATA: DS9490_getstatus: Return byte[18]: 20 DATA: DS9490_getstatus: Return byte[19]: 1B DATA: DS9490_getstatus: Return byte[1A]: 0 DATA: DS9490_getstatus: Return byte[1B]: 0 DATA: DS9490_getstatus: Return byte[1C]: 0 DATA: DS9490_getstatus: Return byte[1D]: 0 DATA: DS9490_getstatus: Return byte[1E]: 0 DATA: DS9490_getstatus: Return byte[1F]: 0 DATA: DS9490_getstatus: Status byte[0]: 2 DATA: DS9490_getstatus(): short detected DATA: DS9490_setup_adapter: getstatus failed ret=-1 DEFAULT: Error setting up USB DS9490 adapter at /dev/usb0//dev/ugen0. DATA: BUS_first: No data will be returned DATA: DS9490_reset DATA: BUS_first failed during connect [-1/-1] -- View this message in context: http://www.nabble.com/FreeBSD-6.1-Troubles...-tf1969732.html#a5417472 Sent from the OWFS - Dev forum at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
