This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

MicroPython on the nrf9160

Hi,

I am exploring options to prototype with the nrf9160-DK. Gave MicroPython a try, this worked really well for me on other platforms, especially for rapid prototyping tasks. Compiling and flashing the nrf port for the pca10090 board was quick and provided a REPL on the serial port. Now I am wondering how to use the peripherals, first and foremost the LTE modem.

Does anyone know how to access the modem from here? Serial port and AT commands? Which doesn't support PPP or higher. Spin a PPP on top of serial maybe?

Thank you!

Parents
  • Hi. How did you get the REPL? I have 3 serial ports and it doesn't show REPL on either of them. Tried different baud rates as well. On one of the serial ports i get : "NRF52840 board control statically configured. DK Uptime is 160 seconds" only...

  • For micropython nrf9160 port the default setup is 115200 baud with flow control enabled. It might be a bit tricky to get flow control spinning out of the box. My solution is to ground one of the test points and hit a power cycle with the Reset button after opening up "/dev/ttyACM0" (or the first of the three ACM's you get in linux). What works best for me is to ground TP25 or TP27, depending on the version of the board. This is due to the fact that the wires between the Segger and nrf9160 is set up by the nrf52840, which is a bit slow to route the flow control signals (at least my suspicion). Hence, the UART Flow Control gets a bit stuck. Another alternative is to compile micropython with no flow control. However, that might lead  to drop of characters when copy-pasting large code snippets into paste mode REPL.

Reply
  • For micropython nrf9160 port the default setup is 115200 baud with flow control enabled. It might be a bit tricky to get flow control spinning out of the box. My solution is to ground one of the test points and hit a power cycle with the Reset button after opening up "/dev/ttyACM0" (or the first of the three ACM's you get in linux). What works best for me is to ground TP25 or TP27, depending on the version of the board. This is due to the fact that the wires between the Segger and nrf9160 is set up by the nrf52840, which is a bit slow to route the flow control signals (at least my suspicion). Hence, the UART Flow Control gets a bit stuck. Another alternative is to compile micropython with no flow control. However, that might lead  to drop of characters when copy-pasting large code snippets into paste mode REPL.

Children
No Data
Related