@jubenjum The tutorial you are using is for the "main" line of MicroPython. Pycom has a separate branch which differs in quite a few places.
See the docs here for the Pycom version. The mode is passed as a periodic argument in that one.
excellent work you have done so far - congratulations !
i got my nb-iot sim card from magenta today, ten minutes after fw upgrade i was able to send out my first udp packets ! - GREAT !
as i am also experimenting with 6lowpan (contiki os), i want to connect them to my FiPy in order to query the 6lowpan nodes via CoAP and send the responses to my server via NB-IoT.
therefore the question is what needs to be done in order to add this functionality to micropython ?
on the linux side this is done with a tool called tunslip6 which bridges the 6lowpan via slip to a tun device on the pc.
i checked out pycom-micropython-sigfox from github and to my surprise i found 6lowpan and slip code in lib/lwip/src/netif.
so how can this be integrated in a custom build ?
how does the socket code know how to interface with the network devices ?
what about the AbstractNIC stuff that is documented in docs/library/network.rst ?
and how would i set this up under micropython ?
i am experienced python and embedded programmer (ported pymite a couple years ago), so no problem to get my hands dirty with this !
i think i haven't found the correct documentation, or "big picture" on how the things are connected - also not on the micropython page ... :(
so please, point me in the right direction or give me some hints so that i can bring this to life ;)
Im having an issue when i try to update pytrack's firmare with dfu-util
renegarcia$ dfu-util -D /Users/renegarcia/Downloads/pytrack_0.0.8.dfu
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2016 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
Match vendor ID from file: 04d8
Match product ID from file: f014
Opening DFU capable USB device...
Run-time device DFU version 0100
Claiming USB DFU Runtime Interface...
dfu-util: Cannot set alt interface zero
Could you help me, please?
@ferfersan6 Good intentions pave the way to hell and I had every intention to reply to this. I know this is WAY too late to reply this but may useful for any experiencing the same issues.
If I remember correctly, I just held the pin high for as long as possible and went through the drudgery of reinstalling the proper firmware. Nothing sophisticated going on here! :)
@jcaron mmmmhhh.... looking back at what’s left of your satellite pictures it seems to be a lot less dense than I initially thought.
It would be interesting to log more information from the GPS chip, it can provide a lot of information including how many satellites are visible and used, which ones, and so on.
Recording the full output should allow you to “play it back” later in dedicated tools for this.