FiPy, LTE: Regression error - no band 8 support
-
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-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
-
@robert-hh Great work! Thank you 🙏
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