c4ev3 / ev3duder

The LEGO® EV3 Downloader/UploaDER.
http://c4ev3.github.io/ev3duder/doc/html/globals_func.html
GNU General Public License v3.0
34 stars 12 forks source link

Add TCP <-> USB bridge mode #3

Closed jwalt closed 7 years ago

jwalt commented 7 years ago

These commits add a new operating mode that create a virtual brick connected via TCP (on localhost) that just passes data through from/to a real EV3 brick, e.g. on USB.

Run it like ev3duder --usb bridge, then run the original Mindstorms software via Wine and it should show a WiFi-connected device called "USB Bridge". Setting up Mindstorms on Wine is non-trivial, but this allows working with a USB-connected brick.

jwalt commented 7 years ago

When reviewing bridge.c, please keep in mind that this is derived from existing code (I have added a source URL in the source code). I did clean it up and tried to make it more concise, but it is still using the naming convention from the original code.