Quectel EG25-G
by kzo81 from LinuxQuestions.org on (#5NFHC)
Hi,
I installed debian 11 on an industrial PC, which has a miniPCIe slot, and a Quectel EG25-G LTE modem. The modem works well, but I cannot send AT commands to it.
This is what I was experimenting so far:
Code:import serial, time
port = '/dev/ttyUSB0'
baudrate = 9600
s = serial.Serial(port=port, baudrate=baudrate, xonxoff=False, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE, rtscts=True,dsrdtr=True)
if not s.isOpen():
s.open()
command = 'AT+QGPSCFG\r'
#command ='AT+QGPS\r'
s.write(command.encode())
time.sleep(1)
print('Command sent...')
reply = s.readline()
print(reply)
s.close()The command is sent but no reply from the modem. Do you have any idea?
Thanks,
Zolee


I installed debian 11 on an industrial PC, which has a miniPCIe slot, and a Quectel EG25-G LTE modem. The modem works well, but I cannot send AT commands to it.
This is what I was experimenting so far:
Code:import serial, time
port = '/dev/ttyUSB0'
baudrate = 9600
s = serial.Serial(port=port, baudrate=baudrate, xonxoff=False, bytesize=serial.EIGHTBITS, parity=serial.PARITY_NONE, rtscts=True,dsrdtr=True)
if not s.isOpen():
s.open()
command = 'AT+QGPSCFG\r'
#command ='AT+QGPS\r'
s.write(command.encode())
time.sleep(1)
print('Command sent...')
reply = s.readline()
print(reply)
s.close()The command is sent but no reply from the modem. Do you have any idea?
Thanks,
Zolee