There is an assumption that the board is interacting with the module, but errors are constantly appearing. Now in more detail ....
I connected the boards according to this instruction:
Uploaded the main.py sketch to the motherboard.
Code: Select all
import pyb, json,utime
print('START code...')
uart = machine.UART(1, 9600)
print ("Test 2")
uart.write("AT\r")
utime.sleep(2)
print ("Test 3")
uart.read(8)
print ("Test 4")
Interestingly, the output contains information about the modulepc ~ $ picocom /dev/ttyACM0
picocom v1.7
port is : /dev/ttyACM0
flowcontrol : none
baudrate is : 9600
parity is : none
databits are : 8
escape is : C-a
local echo is : no
noinit is : no
noreset is : no
nolock is : no
send_cmd is : sz -vv
receive_cmd is : rz -vv
imap is :
omap is :
emap is : crcrlf,delbs,
Terminal ready
START code...
Test 2
Test 3
MicroPython v1.13 on 2020-10-14; WeAct F411CE with STM32F411CE
Type "help()" for more information.
>>> machine.soft_reset()
MPY: sync filesystems
MPY: soft reboot
START code...
Test 2
Test 3
Test 4
MicroPython v1.13 on 2020-10-14; WeAct F411CE with STM32F411CE
Type "help()" for more information.
>>> ation.
Traceback (most recent call last):
File "<stdin>", line 2
SyntaxError: invalid syntax
>>> >>>
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> SIM800 R14.18
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>>
>>> ERROR
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'ERROR' isn't defined
>>> ation.
Traceback (most recent call last):
File "<stdin>", line 2
SyntaxError: invalid syntax
>>> Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> File "<stdin>", line 2
Traceback (most recent call last):
File "<stdin>", line 1
IndentationError: unexpected indent
>>> SyntaxError: invalid syntax
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> >>> >>>
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> Traceback (most recent call last):
Traceback (most recent call last):
File "<stdin>", line 1
SyntaxError: invalid syntax
>>> File "<stdin>", line 1
Traceback (most recent call last):
File "<stdin>", line 1
IndentationError: unexpected indent
>>> SyntaxError: invalid syntax
Thanks for using picocom
. I suppose this proves that boards communicate. But why do other errors fall out? Moreover, no details about the reasons for the error are written. can anyone give some advice?>>> SIM800 R14.18