This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rem0te [2011/12/21 18:48] schneider |
rem0te [2012/01/07 19:59] (current) rene-dev [Bridge] |
||
---|---|---|---|
Line 41: | Line 41: | ||
====== Bridge ====== | ====== Bridge ====== | ||
The firmware for the bridge is located in the file firmware/applications/bridge.c | The firmware for the bridge is located in the file firmware/applications/bridge.c | ||
- | |||
- | To build it you have to edit firmware/core/projectconfig.h and | ||
- | - deactivate CFG_USBMSC | ||
- | - activate CFG_USBCDC | ||
Then run: | Then run: | ||
<code> | <code> | ||
cd firmware | cd firmware | ||
- | make APP=bridge | + | make clean |
+ | make APP=bridge USBSERIAL=YES | ||
</code> | </code> | ||
Line 162: | Line 159: | ||
- ctr = ctr of join packet | - ctr = ctr of join packet | ||
- flags = 1 if the join was OK, 0 if the join has failed | - flags = 1 if the join was OK, 0 if the join has failed | ||
+ | As destination MAC use the gameMac with the last byte incremented by 1. | ||
4) The player will start to send: | 4) The player will start to send: | ||
- len = 32 | - len = 32 | ||
Line 169: | Line 167: | ||
- ctr = player ctr++ | - ctr = player ctr++ | ||
- button = state of the button | - button = state of the button | ||
- |