I am currently doing a project with the Raspberry Pi as a controller connected to a PC via USB and using the Pi to send commands to other devices connected via GPIO pins.
I will be using a host-to-host cable for the usb link between the pi and pc.
Simplified version: communication from PC to Pi to rest of system.
I'm wondering if it is possible to write a script on the Pi to control its USB ports on boot, so that data can be sent from the PC and received on the Pi without having to run anything manually by ssh/vnc.
I'm also planning to write up a pc app so that instructions can be issued from the pc to the pi in the future, once I'm able to get the usb comms. working.
I hope someone could assist/point me in the right direction for going about this. I've looked at usbnet and pyusb websites for information on this. I feel that usbnet is the way to go for host-to-host communication, but I'm not very sure how should I go about doing this. It would be great if someone could link me to some tutorials or guide me through it.




