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

    FiPy, LTE: Regression error - no band 8 support

    Scheduled Pinned Locked Moved FiPy
    3 Posts 2 Posters 246 Views 2 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.
    • robert-hhR Offline
      robert-hh
      last edited by robert-hh

      With the change of firmware 1.20.0.rc12.1 to 1.20.0.rc13 I get the following error, when attaching the modem:

      >>> from network import LTE
      >>> lte = LTE()
      >>> lte.attach(band=8, apn="iot.1nce.net")
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
      ValueError: band 8 not supported by this board hardware!
      

      The error is caused by the calls to
      lteppp_send_at_command(&cmd, &modlte_rsp);

      The command is copied in, but the command length is not set, and then the AT command fails. So e.g. after line 622, the following line must be added:
      cmd.dataLen = strlen("AT+SMDD");
      At two other places, where lteppp_send_at_command() is called, similar changes have to be made. Then attach works with specifying a band.
      Edit: It looks like the error was introduced between v1.20.0.rc11 and v1.20.0.rc12.

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

        @robert-hh Fixed by replacing the calls to lteppp_send_at_command() with lte_push_at_cmd_ext() (and the appropriate parameters), which also sets the length data field. File here https://github.com/pycom/pycom-micropython-sigfox/files/3586300/modlte.zip

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          svonbentzel @robert-hh
          last edited by

          @robert-hh Great work! Thank you 🙏

          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