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) -
Any suggestions?
-
@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.
-
@crumble What other method do we have to just send the payload?
-
Any assistance would be great?
-
have you tried to build the AT command into a single string and send it at once?
-
@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.
-
@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 Note that Ctrl-Z is 0x1a, not 0x1b (which is Escape).
What output do you get in return?
-
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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login