Wireless IoT modules from Pycom
Bluetooth (WiPy, LoPy, SiPy)
The Pycom documentation is clear about it: the Bluetooth implementation is not yet complete. This is also related to the ESP32 BT implementation that is not complete either. I gave it a try anyway, below is my REPL log:
>>> from network import Bluetooth
>>> import binascii
>>> bluetooth = Bluetooth()
BTDM CONTROLLER VERSION: 010101
BTDM ROM VERSION 0101
BD_ADDR: 24:0A:C4:00:59:4E
NVDS MAGIC FAILED
RF Init OK with coex
Enable Classic BT
Enable Low Energy
>>> bluetooth.start_scan(-1)
>>> adv = None
>>> while True:
... adv = bluetooth.get_adv()
... if adv:
... try:
... bluetooth.connect(adv.mac)
... except:
... bluetooth.start_scan(-1)
... continue
... break
...
<GATTCConnection>
>>> print("Connected to device with addr = {}".format(binascii.hexlify(adv.mac)))
Connected to device with addr = b'bc6a29c36218'
>>> print(bluetooth.resolve_adv_data(adv.data, Bluetooth.ADV_NAME_CMPL))
SensorTag
As you can see, my SensorTag from Texas Instruments was found without problems, but I did not manage to do anything with my smartphone or computer.
Conclusion
The Pycom boards provide a nice way to quickly set up wireless networks and links. Currently they cover Wi-Fi, Bluetooth (WiPy, LoPy & SiPy), LoRa (LoPy) and Sigfox (SiPy), but support for other network topologies is in the pipeline (already announced are the GPy with LTE CAT M1/NB1 support, and the FiPy featuring Wi-Fi, Bluetooth, LoRa, Sigfox and dual LTE-M (CAT M1 and NBIoT)). Together they form a hardware and software compatible family allowing the user to switch between network topologies whenever the need arises and without redoing all the software.Programmed in MicroPython application development is quick, especially for people with Python experience. Add to this mix some expansion boards with sensors and an upcoming free cloud backend Pybytes and you will agree that the Pycom ecosystem may be one of the fastest and easiest ways into the world of IoT. Documentation is abundent, but beware of stale pages that may concern old hardware. In case of examples not working with your hardware, it may be a good idea to start over at the documentation entry point and search again. Remember, the current hardware is ESP32-based.
On a personal note, I would like to be able to access the file system over the serial or USB port as network switching quickly becomes tiresome if your development PC has only one Wi-Fi connection and you need access to the online documentation while you work.
Read full article
Hide full article
Discussion (0 comments)