Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem when connecting Maixduino and MaixSenseA010 with uart #485

Open
gakutasu opened this issue May 18, 2023 · 0 comments
Open

Problem when connecting Maixduino and MaixSenseA010 with uart #485

gakutasu opened this issue May 18, 2023 · 0 comments

Comments

@gakutasu
Copy link

I'm very confused as to where to ask this issue. I feel like the code is likely the culprit, so I'll ask here.

[Conclusion]
MaixSenseA010 cannot receive AT commands well.

I am trying to connect Maixduino and MaixSenseA010 with uart.
I confirmed that the AT command can be sent with Maixduino, but the command is not reflected in A010.

Below is the maixduino code

from fpioa_manager import fm
from machine import UART
from Maix import GPIO
from board import board_info
import lcd, image, utime

fm.register(board_info.PIN1, fm.fpioa.UART1_TX, force=True)
fm.register(board_info.PIN0, fm.fpioa.UART1_RX, force=True)
uart = UART(UART.UART1, 115200, 8, 0, 0, timeout=1000, read_buf_len=4096)

def uart_readBytes():
	return uart.read()

def uart_hasData():
	return uart.any()

def uart_sendCmd(cmd):
	uart.write(cmd)

utime.sleep_ms(1000)

uart_sendCmd(b"AT+FPS=5\r")

#while

I have verified that the pin numbers are correct. I have also confirmed that AT commands are being sent with this code.

My guess is that the welcome message hampers communication in some way.
キャプチャ

Any information is fine, so please support me.
Thank you.

Firmware:maixpy_v0.6.2_84_g8fcd84a58.bin
kflash_gui:kflash_gui_v1.8.1_windows.7z
MaixPy:v0.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant