Hi to all.
I need to communicate with devices connected through USB ports. I can communicate through COM ports, through TCPports but USB ports seems to be unreachables with TD. I tried to use USB ports as files and open for read with SalFileOpen and so on, without success. Any hint? Even using a third party tool should be a good thing.
Many thanks.
Read from USB port
-
- Founder/Site Admin
- Posts: 3483
- Joined: 24 Feb 2017, 09:12
- Location: Gouda, The Netherlands
Re: Read from USB port
Do you have a small sample source you are working on which shows what you already tried to make USB reading possible?
The 'usual' way to communicate with an USB device is to call 'CreateFile()' to obtain a handle to the USB driver and send commands using 'DeviceIoControl()' (see e.g. http://www.delcom-eng.com/downloads/USBPRGMNL.pdf) - the rest is specific to the device that you want to communicate with.
So, if SAL functions fail, it could be that using WinAPI file functions must be used to get it working.treat the port as file
do create file() readfile() write file() it will work....
Regards,
Dave Rabelink
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Dave Rabelink
Articles and information on Team Developer Tips & Tricks Wiki
Download samples, documents and resources from TD Sample Vault
Videos on TDWiki YouTube Channel
Re: Read from USB port
Hi Dave, thank you.
But anyone has nevere tried to use USB ports for input with Gupta (and Centura and Gupta and Unify and Gupta and OpenText and ...)?
I wonder.
But anyone has nevere tried to use USB ports for input with Gupta (and Centura and Gupta and Unify and Gupta and OpenText and ...)?
I wonder.
Who is online
Users browsing this forum: [Ccbot] and 1 guest