Send SMS and Ctrl-Z
-
How do i send a Ctrl-Z in my code?
msg=lte.send_at_cmd('AT+CMGF=1')
print(msg)
msg=lte.send_at_cmd('AT+CMGS="04xxxxxxxxxx6"')
print(msg)
msg=lte.send_at_cmd('line one')
print(msg)
msg=lte.send_at_cmd('line two')
print(msg)
msg=lte.send_at_cmd('\x1a') #cntrl-z ???
print(msg)
-
I UPDATED THE LTE MODEM AND ALL WENT WELL...is this something that should be notified to the members? I want aware i could update it.
-
@misterlisty Note that Ctrl-Z is 0x1a, not 0x1b (which is Escape).
What output do you get in return?
-
@crumble I have like this
msg=lteM.send_at_cmd('AT+CMGF=1')
print('AT+CMGF=1',msg)
msg=lteM.send_at_cmd('AT+CMGS="0419335996"\rhellooo\x1b')
print('AT+CMGS="0419335996"',msg)
-
@misterlisty If it#s a Fipy, you can try to write to the Uart directly. Speed is 921600 baud. TX an RX are detailed in the pinout. On GPY, TX is called P98 for TX, RTS is called P99.
-
have you tried to build the AT command into a single string and send it at once?
-
Any assistance would be great?
-
@crumble What other method do we have to just send the payload?
-
@misterlisty said in Send SMS and Ctrl-Z:
Any suggestions?
Are you sure that you have to use send_at_cmd for the payload? Sounds odd for someone grown up with modems ;)
I guess you have to get a socket from LTE to send your payload.ctrl-z shall be EOF? like hangup? Then ATH will be my solution.
-
Any suggestions?