PORTS Forum

Ports and Interfaces => USB => Topic started by: ChasinReno on May 23, 2013, 01:13:07 am

Title: interface to TI tusb3210
Post by: ChasinReno on May 23, 2013, 01:13:07 am
I'm running your genericHID_50 using vb.net 2010 express with sucess, except for...

My tusb3210 only handles commands of one or two bytes at a time ( the version info is only on byte, 00) while the genericHID software sends the entire buffer(65 bytes).  I try to size the buffer to my command length which sends ok but then errors out with an error message: IO operation will not work. Most likely the file will become too long or the handle was not opened to support synchronous IO operations."  It stops on the method, "fileStreamdevicedata.Close()"

I'm an old vb programmer starting with v1.0 but have been doing VBA in MS OFFICE for the past 10 years so the new! vb is a little bit of a learning curve for me. 
I hope someone can help.
Title: Re: interface to TI tusb3210
Post by: Jan Axelson on May 24, 2013, 07:40:29 pm
I can't check the code right now but in the meantime, a web search on the error message might turn up something.
Title: Re: interface to TI tusb3210
Post by: ChasinReno on May 24, 2013, 09:17:37 pm
It occured to me that maybe my TUSB3210 is returning to many characters and overwhelming the input buffer.  I'm not sure what the firmware is doing since I updated to a newer version. 
Title: Re: interface to TI tusb3210
Post by: Jan Axelson on May 27, 2013, 09:25:58 am
Try setting efileattributes.Normal as described here:

http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/683148fb-bb00-461c-aa4b-f67aaecab184