Bluetooth version of Lopy4
-
Hi,
I wonder what is the bluetooth version of Lopy4, v5.0 or v5.1? What is the coded type of Bluetooth signal in Bluetooth advertisement signal of Lopy4, uncoded or coded? 1E or 2E?
Thanks
-
@yongyuan-wang you don’t need to repeatedly call anything to advertise. Just call
set_advertisement
to set parameters thenadvertise
to start advertising and the BLE stack will do all the work.Also
enable
is an optional parameter, you can leave it out or set it to True to advertise.
-
@jcaron Thanks for your answer. Could you please have a look at my codes? At this stage, I am trying to keep the lopy4 sending advertisement every 10ms but there will be errors in line 8. At the same time, I do not know whether I am correct in using the advertise([Enable]) function described on the official website.
from network import Bluetooth import time BT = Bluetooth() BT.set_advertisement() while (True) BT.advertise([Enable]) time.sleep(0.01) BT.advertise([Enable])
-
@yongyuan-wang it’s BLE compliant, so advertisements are sent in the advertisement channels and data on the other channels as prescribed by the spec. You cannot however select which channel it will transmit on, this is a decision if the BLE stack.
-
Thanks for your reply. I also want to know can this Lopy4 send data through the other 37 channels? I want to detect the preambles of the packets for the LE coded PHY.
-
@yongyuan-wang The underlying ESP32 stack is certified for 5.0.
The ESP32 does not support 2M PHY, LE Long Range (=Coded PHY), and ADV Extensions.
Note that per the spec, all standard advertisements can only be sent as 1 Mbit/s, uncoded, for backwards compatibility. Only extended advertisements would be able to use the other PHYs. But neither the extended advertisements nor the underlying PHYs are supported by the hardware.