The iccid() function only works after an attach command is attempted. Since we use the ICCID to determine the correct APN to use in the attach command, we have to do a dummy attach call, read the iccid, detach, and then correctly attach with the computed apn. Hope this helps others until this issue is resolved.
Below is the revised code that now works.
from network import LTE
lte = LTE()
iccid = lte.iccid() # does not work
lte.attach(apn='unknown') # attempt attach so iccid() will work
iccid = lte.iccid() # iccid() now works
# compute apn from iccid
lte.attach(apn=computed_apn) # attach with correct apn
@weingami Are you sure the operator you are using allows TCP (MQTT) connections to external platforms?
Most NB-IoT network carriers don't support TCP and only allow UDP/CoAP connections to their own internal platforms.
Working to get a demonstrator for mesh, got stuff working with the mesh github code and the 1.20.0.rc7 firmware (higher firmwares did hot work). Now I run into an issue that it is pretty difficult with a std. antenna to demonstrate the mesh, as all nodes see each other on short distance. Is there a way to (by software) to reduce RF output, so I can have the mesh routing to demonstrateably work ??
I do not want to remove the antenna, as this might damage the LoRa chip on the LoPy4 ...
I'm struggling to get this to work.
After following the instructions seemingly exactly with a wipy2.0 running 1.18.2.r4, I run into an error:
"Warning: Virtual write to unregistered pin 1"
All I did was download the code from wipy2 after setting up pymate, and add:
val = int(params)
if (val < 256):
val = val & 0xFF
elif (val > 255 and val < 512):
val = (val << 8) & 0xFF00
elif (val > 511):
val = (val << 16) & 0xFF0000
right under where it says "# Initialize Virtual Pins and Terminal Pins Here" in the Pymate_basic.py file in the lib.
I can't seem to figure out why this doesn't work since I am following this guide exactly.
Is the only way to upload code through FTP? I seem to be able to download, edit, and re-upload the code through REPL when booted in safe mode. Is this a no-no?
@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!
My question concerns the possibility of using the Pycom LoPy4 kit to increase the range of connection of devices using only WiFi Direct. And this by installing this kit directly into these devices or via routers.
For a client, I'm looking for a senior Micropython/embedded developer (freelance/contractor) that preferrably has experience with Pycom modules. I have been working as developer for the client myself, but they need extra help.
You will be working on the software for a new iteration of the (Pycom-based) device that the company is developing. You will be working most of the time on the Micropython code that runs on the devices. You will also need to be comfortable with embedded C in order to analyze and fix problems in the Pycom firmware when they arise and extend the firmware in case a feature cannot be implemented in Micropython.
You can work remotely, but occassional visits to the company headquarters in Noord-Brabant are desired.
Developer Experience Profile
Embedded C + GNU command line toolchain (gcc, gdb, binutils)
Inter-IC Protocol knowledge: I2C, SPI, 1Wire, etc.
Analyzing/Debugging hardware issues using a logic analyzer
Development of device drivers and other low-level code (both in Micropython as well as C)
Unit testing (esp. Python) is a plus
TypeScript & React experience is a big plus, but not a must
Bluetooth experience is a plus, but not a must
The company is active in the smart building and real-estate space. It has many Pycom-based products deployed in a number of large buildings in The Netherlands. The team working on the products and services is very small so you will have a lot of influence on the product. The company is based in Noord-Brabant, The Netherlands, easily accesible by car or public transit.
Please contact me at:
post AT martijnthe DOT nl