Answer the question
In order to leave comments, you need to log in
How to send AT command from python script to modem and get response?
Good day to all. Please tell me how it would be most correct and efficient to solve the following problem:
Answer the question
In order to leave comments, you need to log in
Turn on the "TCP Converter - Serial Port" and communicate with it over the network via sockets.
s = socket(AF_INET, SOCK_STREAM)
s.connect((ip, port))
s.sendall(bytes("AT?\n","ASCII"))
sleep(1.0)
st = ""
while st[-1]!="\n":
st+=s.recv(1)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question