setting up UART (XIOA nrf52840) #14337
Replies: 4 comments 5 replies
-
The NRF port is pretty different and not really in sync with the other ports. The UART constructor allows as keyword arguments only Changing the baudrate requires a hard reset. |
Beta Was this translation helpful? Give feedback.
-
In these frustrating cases, it’s usually more helpful to check the source code than to try around blindly. |
Beta Was this translation helpful? Give feedback.
-
Ok, thanks. I tried an ESP32 C3 and I can use: modem = UART(1, 115200)
modem.init(bits=8, parity=None, stop=1, rx=20, tx=21) No reply from the modem yet though. Is there a way to 'monitor' the UART to see if it is actually sending data out? |
Beta Was this translation helpful? Give feedback.
-
I used my PPK2 as a logic analyzer and tested both the XIAO nrf52840 and the ESP32C3. So TX goes high and seems to be transmitting when going low. Looking at these results I'd say the modem is the issue right? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to talk to a modem using AT commands.
First thing is to get the UART working, I don't get anything back right now.
I'm using a XIOA nrf52840 sense with MicroPython v1.22.2
From the docs:
machine.UART(id,baudrate=115200,bits=8,parity=None,stop=1,tx=None,rx=None)
So I would like to troubleshoot the UART first. Say I use the most basic , default:
How can I now check the parameters bits/parity/stop/tx/rx ?
I want to check the defaults when using the code above.
I also tried initializing with parameters but everything I try gives me various errors, see code below.
Can anyone tell me what I'm doing wrong?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions