Page 1 of 1

repl without usb

Posted: Wed Aug 06, 2014 6:24 pm
by dalex
According to the docs
"To use the REPL, you must connect to the serial USB device on the pyboard. How you do this depends on your operating system."
Is this literally true? Is it not possible use REPL via another communication channel, such as on of the UART pin-pairs?

Re: repl without usb

Posted: Wed Aug 06, 2014 7:06 pm
by JonHylands
My brother Dave had a patch at one point that allowed me to run the REPL over one of the UARTs. I don't know what the status is now.

Re: repl without usb

Posted: Wed Aug 06, 2014 8:13 pm
by dhylands
You can put the following in your boot.py:

Code: Select all

uart = pyb.UART(6,115200)
pyb.repl_uart(uart)
and that will cause the repl to show up on the usb serial as well as on UART6

Re: repl without usb

Posted: Thu Aug 07, 2014 8:01 am
by dalex
Nice. Next step, REPL over radio.

Re: repl without usb

Posted: Thu Aug 07, 2014 2:59 pm
by Turbinenreiter
I'd love to see that!

I have some nRF24 modules here that I never got to work with Arduino.

Re: repl without usb

Posted: Sat Aug 09, 2014 9:09 pm
by dalex
Turbinenreiter wrote:I'd love to see that!

I have some nRF24 modules here that I never got to work with Arduino.
See here:
http://forum.micropython.org/viewtopic.php?f=2&t=255

I've just coded a wireless serial link along these lines using the nRF24. I'll let you know how it goes after I get a chance to test it.