Hello everyone, this is my first post on the forum by the way.
My plan is to create time measuring gate for linefollowers race (@amateur robotics tournament) using Tiva Launchpad. What I would like to hear from you is a bunch of advice on the USB library coming from TivaWare. Below I describe functionality of the device:
-understanding of custom commands like: start_measurement, reset_measurement sent my PC via USB
-automatic response with the result of the robot, PC application is notified with incoming result (via interruption?)
I have already made one gate using usb bulk device and a lot of inherited code. What I don't want in this design is polling the usb port. I mean is this possible to create a connection and from that point communicate both sides using interruptions ? On the PC I would like to use pyUSB.
Another thing is that I dont quite understand OTG concept, does it allow a system to switch between being host and device ? How would you solve a problem like this? I know that polling will work and thats sufficient but I wanted to learn how to make a really good solution for other projects using USB too.
Regards Michał