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 / Recieve SMS using Telstra examples?

    Scheduled Pinned Locked Moved FiPy
    smsfipy
    4 Posts 3 Posters 420 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

      Hoping some can share how to send/receive SMS using Telstra

      Anthony

      S 1 Reply Last reply Reply Quote 0
      • K Offline
        kjm
        last edited by

        Stevo52 is claiming success but short on detail https://forum.pycom.io/topic/4331/send-recieve-sms/5

        1 Reply Last reply Reply Quote 0
        • S Offline
          Steve Williams @misterlisty
          last edited by Steve Williams

          @misterlisty I experimented with SMS with the GPY some time ago and it seemed to work OK on Telstra, but it may depend on the type of SIM (mine was a shared Voice Data) used. I never went much further with it because I found the GPY/firmwares to be a bit to flaky for what I was trying to do - both LTE and WiFi seemed to be too inconsistent - would run for several thousand cycles and then suddenly throw all sorts of weird errors despite no changes to hardware or code. As a consequence I have moved to a different product for that project - much more stable and faster so I am sticking with that, despite the inconvenience of not having built in LTE.

          For the SMS stuff I did try, I used the Monarch Platform LR5.1.1.0 AT Commands Reference Manual as a starting point but had to do a lot of experimenting, trial and error to get code that actually worked in both directions. There are a couple of SMS specific chapters in the manual. But there have been new versions of firmware released for both the GPY and the SEQUANS modem since my experiments - so be patient - Pycom documentation isn't the greatest. There are now some constraints on which AT commands can be used - If I remember correctly anything with AT!= is no longer supported/recommended by Pycom..

          Hope this helps..

          Note: Previously on this forum as Stevo52 (had to create a new id here because of email address change.)

          1 Reply Last reply Reply Quote 0
          • K Offline
            kjm
            last edited by kjm

            I had a wild stab-in-the-dark this avo

            import time, network
            lte=network.LTE()
            
            def _getlte():
              if not lte.isattached():                                                                                                                                 
                print('lte attaching '); lte.attach()
                while 1:
                  if lte.isattached(): print(' OK'); break
                  print('. ', end=''); time.sleep(1)
            
            _getlte()
            print ('try sending an SMS')
            lte.send_at_cmd('At+CMGF=1')                                                    # put it into text mode?
            lte.send_at_cmd('AT+SQNSMSSEND=61xxxxxxxxx,This is the SMS content')             # where 61xxxxxxxxx' is a mobile number
            

            A doesn't work bench mark to start from?

            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