Products for USB Sensing and Control
It is currently Sun May 19, 2013 5:03 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Thu Apr 12, 2012 10:36 am 
Offline
Phidgetly

Joined: Thu May 08, 2008 6:30 pm
Posts: 35
Are the digital outputs on the built in 8-8-8 Interface Kit on the SBC triggered by a USB control message? ie. ultimately by a call to CUSBSendPacket()?

Thanks in advance for your help.

bob


Top
 Profile  
 
PostPosted: Thu Apr 12, 2012 11:44 am 
Offline
Human-Cyborg Relations
User avatar

Joined: Tue Sep 27, 2011 2:37 pm
Posts: 314
Location: Calgary
The USB hub on the SBC technically has 7 ports. The built in interface kit just uses one of them permanently so we don't expose it. So yes, all communication between the SBC and the interface kit occurs via a USB connection.

_________________
Brian Burley
403-282-7335 ext. 6003
support@phidgets.com


Top
 Profile Send private message  
 
PostPosted: Thu Apr 12, 2012 2:45 pm 
Offline
Phidgetly

Joined: Thu May 08, 2008 6:30 pm
Posts: 35
Yes I understand that part. My question concerned the type of USB message used to trigger the digital outputs. Is it a control message? Is it ultimately caused by a call to CUSBSendPacket?

Thanks again in advance for your help.

bob


Top
 Profile  
 
PostPosted: Fri Apr 13, 2012 10:52 am 
Offline
Lead Developer
User avatar

Joined: Mon Jun 20, 2005 8:46 am
Posts: 2345
Location: Canada
Yes, it is ultimately a USB control message, via CUSBSendPacket. There is some logic/threading between calls to CPhidgetInterfaceKit_setOutputState and the call to CUSBSendPacket is order to possibly aggregate several setOutputState calls into a single USB message.

-Patrick


Top
 Profile Send private message  
 
PostPosted: Tue Apr 17, 2012 10:17 am 
Offline
Phidgetly

Joined: Thu May 08, 2008 6:30 pm
Posts: 35
I was able to get a libusb-1.0 async version of this control message working once I "stumbled" on the fact that the payload portion of the message was 8 bytes long. Who knew ?

I have been able to "distill" a whack of detailed protocol information about the Phidgets 8-8-8 Interface Kit from the existing C codebase. However, this is far from the most efficient way to go about this exercise.

Meanwhile all my code and progress in this adventure is documented (and freely available) at:

http://www.icanprogram.com/opndrs/phidgets

If anyone wants to jump in and help with the code polishing/documenting/extending ... all volunteers are welcome. It is an open source project.

bob


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group