@eric-waai said in New v1.20.0 Release candidate v1.20.0.rc7:
If clearly stated i have no problem with adding a manual delay.
there are plenty of case where this time can be used to initialize other stuf. if that already takes 750 ms. there are a 750 ms wasted.
There is another way to program this. Start each init in an own thread and wait until each one died.
Yes, it shall be optional, 'cause ensure order of execution will not be easy ans overhead maybe too slow. But there are at least two ways to deal with this problem.
If we have to implement the wait time, the min time shall be in the documentation and not in the forum ;)
i Don't have that exact software version anymore and you couldn't do much with it because it communicates via CAN-bus with some other devices you probably don't have.
the sending to pybytes parts looks a lot like the provided example.
the time it crashed i didn't update a part i only tried to open the flash tab in pybytes.
i get the
Error publish [Errno 12] ENOMEM
more if i increase the wait time between some data bursts. with 60 seconds almost never but with 600 seconds more often.
@combaindeft I should be at my local hackspace this weekend at somepoint. Ill give your test script a run then. That place has enough RF/EMF noise that all laptop trackpads die when entering the building and refuse to work untill we leave (You try debugging that one in the room full of random hardware...)
That said. I've run a ton of Pycom boards there in the past without major issue.
@misterlisty Have you got an rtc = RTC() statement in your code? You need to have that to make any calls to rtc.now (Note the upper and lower cases in your code).
utime.localtime() might also be useful to you...
@johan @thibault I've managed to do it finally.
After I've set IP for HTTP server
wlan.ifconfig(id=1, config=('192.168.4.10', '255.255.255.0', '192.168.4.1', '192.168.4.1'))
i've tried to read IP address of HTTP Server and that was the problem, it's keep returning me '0.0.0.0'. IP address was set properly to '192.168.4.10' but function returns '0.0.0.0'.
print('Network config:', wlan.ifconfig())
Network config: ('0.0.0.0', '0.0.0.0', '0.0.0.0', '0.0.0.0')
Thank you for your help.
@danielm said in Using PyCom products in Hungary, Telekom NB-IoT network:
In Slovak Telekom network NB-IoT service is operated in B20 using Ericsson RAN and it is possible to connect. By the way part of EPC functionalities is served from Deutsche Telekom and I expected it will be the case for Magyar Telekom NB-IoT network deployment as well.
Thanks for the info!
have a look into the device manager. Your device my be disabled for some reason. You have to check the option for showing unconnected hardware.
And dont't forget to check, if other devices can connect at the same port.
@arthurmed So what are the properties of the pulses to receive, and what kind of device is it that you want to connect?
Edit: I just tested that: Even if you specify then number of pulses, it will not return until a timeout happens (and the documentation is still wrong, because pulses_get() does not accept any arguments).