Using Wired USB Connection with Firmware 2.x.x
Hi there,
Inspired by Winslow's Wired USB tutorial, I'm now trying to make a similar modification to the Firmware 2.x.x for using D11/D12 as UART2. I noticed that you already use Serial 0 for transmitting data and Serial 1 for transmitting debug information, and that there was a comment in there saying that you could set _SER0_TX_PIN and _SER0_RX_PIN to Pins 11 and 12 respectively to just have it use the appropriate GPIO pins. However, when I make that modification to Board_Defs.h then after reflashing it appears the OBCI board is bricked. The D1 LED doesn't light up anymore and I get no response via serial connection (after checking baud rate). So then I tried swapping out references to Serial0 and Serial1 in the code, while setting _SER1_TX_PIN and _SER1_RX_PIN to Pins 11/12 (similar approach that Winslow takes). However, it appears that so far also does not work out, with a similar error. I was just wondering if there's something missing that I should be considering?
Thanks so much!
Jeff
Comments
Be cautious with your use of the word 'bricked'. That usually implies a fatal firmware loader bug that permanently destroys the hardware. In your case you can still reload new firmware.
With the wired usb mods for V1, the PIC sends the EEG data stream on Serial1, which has RX TX wired over to the FTDI breakout board. Serial0 is reserved for the link between the PIC and the RFduino. Which is still needed for bootloading.
In V1 this required some fiddling with the pin definitions to avoid conflicts with the Serial1 port. So @Winslow_Strong details those steps in his Github page. However with V2, I believe AJ Keller @pushtheworld, the V2 dev, has made the use of Serial1 much easier, in that those new pin definitions are already the defaults. So really the bottom line is that Serial1 should work on V2 with no redefinitions required.
https://github.com/WinslowStrong/OpenBCI_Wired_USB
http://openbci.com/forum/index.php?p=/discussion/712/prospects-for-higher-sample-rates#latest
William
Pull request for Python 3 appreciated. (Assuming that can be done so as not to break previous Pythons).
re: Python, Jeremy Frey @jfrey is the original dev. AJ Keller @pushtheworld is the originator of the new stop code feature.
Can you say a bit more on your application, sample rates, etc. Post a link here to your Github with the running V2 wired usb. @Winslow_Strong I'm sure would be interested.
Regards,
The Node SDK takes full advantage of the different stop bytes.
The external D1 LED will NOT work once the pins are remapped and you activate Serial1 because Serial1 then uses the same digital I/O as the LED. So you are farther away from bricked and closer to what you actually want!
This has been fixed in new 3.0.0-rc5
What baud rate are you using? Beta is over and boards are on sale very soon!
Please tell me @dancingdarwin, is this paired with Cyton or Ganglion?
Works with both!