Ok so i'm a newbie
Can any one give me a example code or direct me to a web site that shows me how to talk to devices over usb. I've been told to send a command to the device and then i get a response.
The DK does not seem to have any usb examples, so i'm a bit stuck.
Thanks for any help
Hi palmus,
you can get example from download area USB-Suite/software
http://www.trenz-electronic.de/download/d0/Trenz_Electronic/d1/TE-USB-Suite/d2/software.html
there is c examples how to work with USB API.
You also need to read API documentation
http://www.trenz-electronic.de/fileadmin/docs/Trenz_Electronic/TE-USB-Suite/documents/UM-TE_USB_API.pdf
Hope you will find that you want.
Regards,
Alex
Thanks Alex, but not quite what I was after. Some more infomation that i've found out is the eddy module is connected to a FTDI usb chip. I'm wanting to send and recieve a charater to the FTDI chip via the usb port. I'm new to linux so not 100% sure how things work in the OS.
any help is great news
Paul
Hi palmus
If you describe your goal in details it will be easier to help you.
As I understand you want to connect FTDI based USB to RS converter to Eddy module.
In this case this USB device will be handled by standard linux driver and new serial device appear in /dev.
Usually it named like /dev/ttyUSB0 or /dev/ttyUSB1 (you can found name in system log after connection).
Then you can work with this device file as usual to write/read COM port.
If you want to work with some specific USB device you will need to find or write driver for it. "Linux Device Drivers" book
have chapter with USB drivers description.
Regards
alex