Bluno General Arduino

Partial data received from Bluno Beetle v4.0

userHead titusece 2019-03-08 01:44:29 4338 Views2 Replies
Hello,
I have bluno beetle v4.0 board and connecting to raspberry pi board via BLE.
https://www.dfrobot.com/product-1259.html

Frequently we are seeing the data corruption or not complete data received (partial data), what could be the issue here, as we are able to get the complete data from other BLE vendor boards.
We are using more bluno boards on our products and we are receiving partial data frequently.
Can you please help us to solve the issue?
Thanks.

bluno code:
Code: Select all
void setup()
{
	Serial.begin(9600);
}
void loop()
{
	String output = "0123456789abcdef";
	Serial.print(output);
	delay(1000);
}
Raspberry python code to receive the data from bluno:
Code: Select all
from bluepy import btle
import time

class MyDelegate(btle.DefaultDelegate):
    def __init__(self):
        btle.DefaultDelegate.__init__(self)

    def handleNotification(self, cHandle, data):
      decoded_data = data.decode('utf_8')
      print(decoded_data)


print("Connecting... f0:45:da:10:bc:90")
p = btle.Peripheral("f0:45:da:10:bc:90")
print("Connected to Bluno")
p.setDelegate( MyDelegate() )
# Setup to turn notifications on, e.g.
svc = p.getServiceByUUID("0000dfb0-0000-1000-8000-00805f9b34fb")

while True:
    if p.waitForNotifications(1.0):
        print("Notified!")
		continue
print("Waiting...")


Output:

Connecting... f0:45:da:10:bc:90
Connected to Bluno
Notify write
Waiting...
0123456789abcdef
Waiting...
0123456789abcdef
Waiting...
0123456789abcd
ef

Waiting...
0123456789abcdef
Waiting...
012345678
9abcdef
Waiting...
0123456789abcdef
2019-03-09 22:33:42 Can you please help to sort out this issue. userHeadPic titusece