SiPy's ID and PAC
-
I have uploaded latest firmware to my first SiPy board. Apparently it has been succesfully updated to version 1.6.5.b1 and it has been shown an ID and a PAC on the terminal tool. But when I am trying to read id() and pac() from microPython I am getting all FF.
from network import Sigfox
sfx=Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1)
sfx.frequencies()
(868130000, 869525000)
sfx.id()
b'\xff\xff\xff\xff'
sfx.pac()
b'\xff\xff\xff\xff\xff\xff\xff\xff'Do you have any suggestion to get the proper id() and pac()?
-
Hi @Jordi,
You need to convert the binary values to human readable with the following snippet of code:
from network import Sigfox import binascii # initalise Sigfox for RCZ1 (You may need a different RCZ Region) sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1) # print Sigfox Device ID print(binascii.hexlify(sigfox.id())) # print Sigfox PAC number print(binascii.hexlify(sigfox.pac())) -
-
Hmm this is interesting let us ask @daniel and move this over to firmware - seems very odd!
-
How do you get your print functions to output to Pycom Console? My console only shows all the other stuff, never the actually desired output.
-
@maku can you post a picture of what your console looks like? You might have some settings configured differently.
-

It works one out of 20. But this is the very usual output.
-
@bucknall I would like to try any firmware previous version.

But https://www.pycom.io/support/supportdownloads/#firmware is down right now.

I will appreciate any tested firmware to be able to try https://github.com/pycom/pycom-libraries/blob/master/examples/sigfoxUplink/main.py on SiPy
-
@Jordi this is a ver estrange issue and it appears that the tool is not able to program the PAC and ID on your board. We haven't changed anything around the Sigfox ID/PAC registration process, but can you try updating to 1.6.7.b1?
If that doesn't work, please email me your WiFi MAC address to support at pycom.io so that we can have a look in our database. Get the mac like this:
from network import WLAN import binascii binascii.hexlify(WLAN().mac()) -
@daniel Fortunately I have tried your Pycom Firmware Update from a virtualized Windows on Debian.
Using Linux firmware updater on Debian, reading from Python SiPy ID and PAC are all ffff.fff. But using Windows updater version, I am able to read properly ID and PAC from Python (Linux or Windows).
Hopefully you will be able to check and fix updater for Linux.
Thank you for your answers and collaboration.
-
Hi @bucknall!
Even if I use the mentioned snippet the same output can be seen, i.e. b'ffffffff'. Any suggestion?
Mike
-
Hi @michal.zykov! First of all, have you updated your SiPy? And if so are you using Debian (Linux) to update your device?
-
Hi @bucknall!
Yep, I already updated SiPy by using Linux updater (Fedora 25) - SiPy firmware 1.6.7.b1. I'm able to send a print-screen that it was successful.
Thx,
Mike -
@michal.zykov, we've identified a problem with the Linux Firmware Updater and are handling it now. If you could use the Windows or Mac OS Firmware Update tool, that should get you up & running for the time being!
Apologies about this! We're working to get it sorted asap!
Thanks!
-
Hi @bucknall!
I've tried to re-flash SiPy by using MS Windows firmware updater. It works great! Thank you! Hope, you'll be able to fix Linux firmware updater soon.
Mike
-
Hello,
I have the same problem. How could I find the right Device ID and PAC?
I'm using Mac OS X.
-
@josep-salom Can you please provide more details? What is the output you get from the commands?
-
@xykon I'm using the procedure as indicated in https://docs.pycom.io/chapter/gettingstarted/registration/sigfox.html, and I got:
>>> b'ffffffff' b'ffffffffffffffff' > MicroPython v1.8.6-470-gf41d0f27 on 2017-02-22; SiPy with ESP32 Type "help()" for more information. >>>which are not correct ID and PAC.
I'm using SiPy module with Pysense, on a Mac OS X 10.11.6 running Visual Studio Code.
-
@xykon I've just upgraded SiPy and still have the problem:
>>> b'ffffffff' b'ffffffffffffffff' > Pycom MicroPython 1.18.0 [v1.8.6-849-046b350] on 2018-06-01; SiPy with ESP32 Type "help()" for more information. >>>How could I get the right ID and PAC?
-
@josep-salom Sigfox registration requires using the firmware updater in online mode.
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
