Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Send SMS and Ctrl-Z

    Scheduled Pinned Locked Moved FiPy
    sms
    10 Posts 4 Posters 717 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      misterlisty
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • M Offline
        misterlisty
        last edited by

        Any suggestions?

        C 1 Reply Last reply Reply Quote 0
        • C Offline
          crumble @misterlisty
          last edited by

          @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.

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            misterlisty @crumble
            last edited by

            @crumble What other method do we have to just send the payload?

            1 Reply Last reply Reply Quote 0
            • M Offline
              misterlisty
              last edited by

              Any assistance would be great?

              C robert-hhR 2 Replies Last reply Reply Quote 0
              • C Offline
                crumble @misterlisty
                last edited by

                @misterlisty

                have you tried to build the AT command into a single string and send it at once?

                M 1 Reply Last reply Reply Quote 0
                • robert-hhR Offline
                  robert-hh @misterlisty
                  last edited by

                  @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.

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    misterlisty @crumble
                    last edited by

                    @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)

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      jcaron @misterlisty
                      last edited by

                      @misterlisty Note that Ctrl-Z is 0x1a, not 0x1b (which is Escape).

                      What output do you get in return?

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        misterlisty
                        last edited by

                        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.

                        1 Reply Last reply Reply Quote 0

                        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
                        • 1 / 1
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom