Bluno Beetle V1.1 - receiving garbled characters through Bluetooth in BlunoBasicDemo
![userHead](https://dfimg.dfrobot.com/dfPortrait2.png)
I just got Bluno Beetle V1.1 and I am trying to make it talk via Bluetooth to Android. I can connect but when I Send Data "123" I get back garbled characters (not random), why? Is it some encoding problem? How do I fix that?
When I connect to the device in Serial Monitor, there are no issues (sending 123 gives me back newline separated numbers)
My environment:
On Bluno I run - from Ubuntu snap install of the IDE (snap install arduino-mhall119 --classic):
Code: Select all
I/System.out: onCharacteristicWrite success:12345
I/System.out: onCharacteristicChanged 022&�
When I connect to the device in Serial Monitor, there are no issues (sending 123 gives me back newline separated numbers)
My environment:
On Bluno I run - from Ubuntu snap install of the IDE (snap install arduino-mhall119 --classic):
Code: Select all
I built BlunoBasicDemo with only one change compileSDK 27 and buildToolsVersion "26.0.3". Android log is:void setup() {
Serial.begin(115200); //initialize the Serial
}
void loop() {
if(Serial.available())
{
Serial.write(Serial.read()); //send what has been received
Serial.println();
}
}
Code: Select all
MichalI/System.out: BluetoothGattCallback----onConnectionStateChange2
I/System.out: mGattUpdateReceiver->onReceive->action=com.example.bluetooth.le.ACTION_GATT_CONNECTED
I/BluetoothLeService: Connected to GATT server.
I/BluetoothLeService: Attempting to start service discovery:
I/System.out: onServicesDiscovered 0
I/System.out: mGattUpdateReceiver->onReceive->action=com.example.bluetooth.le.ACTION_GATT_SERVICES_DISCOVERED
ACTION_GATT_SERVICES_DISCOVERED 00001800-0000-1000-8000-00805f9b34fb
ACTION_GATT_SERVICES_DISCOVERED 00001801-0000-1000-8000-00805f9b34fb
ACTION_GATT_SERVICES_DISCOVERED 0000180a-0000-1000-8000-00805f9b34fb
ACTION_GATT_SERVICES_DISCOVERED 0000dfb0-0000-1000-8000-00805f9b34fb
displayGattServices + uuid=00001800-0000-1000-8000-00805f9b34fb
displayGattServices + uuid=00001801-0000-1000-8000-00805f9b34fb
displayGattServices + uuid=0000180a-0000-1000-8000-00805f9b34fb
mModelNumberCharacteristic 00002a24-0000-1000-8000-00805f9b34fb
displayGattServices + uuid=0000dfb0-0000-1000-8000-00805f9b34fb
mSerialPortCharacteristic 0000dfb1-0000-1000-8000-00805f9b34fb
mSerialPortCharacteristic 0000dfb1-0000-1000-8000-00805f9b34fb
I/System.out: onCharacteristicRead 00002a24-0000-1000-8000-00805f9b34fb
BluetoothLeService broadcastUpdate
I/System.out: mGattUpdateReceiver->onReceive->action=com.example.bluetooth.le.ACTION_DATA_AVAILABLE
I/System.out: allwriteCharacteristicString:AT+PASSWOR=DFRobot
I/System.out: mCharacteristicRingBufferlength:1
I/System.out: writeCharacteristic init AT+PASSWOR=DFRobo:success
I/System.out: onCharacteristicWrite success:AT+PASSWOR=DFRobo
I/System.out: allwriteCharacteristicString:AT+CURRUART=115200
mCharacteristicRingBufferlength:2
I/System.out: writeCharacteristic init t
:success
onCharacteristicWrite success:t
writeCharacteristic init AT+CURRUART=11520:success
I/System.out: onCharacteristicWrite success:AT+CURRUART=11520
I/System.out: writeCharacteristic init 0
:success
onCharacteristicWrite success:0
I/System.out: displayData DF Bluno
I/System.out: allwriteCharacteristicString:12345
mCharacteristicRingBufferlength:1
writeCharacteristic init 12345:success
I/System.out: onCharacteristicWrite success:12345
I/System.out: onCharacteristicChanged 022&�
BluetoothLeService broadcastUpdate
I/System.out: mGattUpdateReceiver->onReceive->action=com.example.bluetooth.le.ACTION_DATA_AVAILABLE
displayData 022&�
2018-11-14 02:40:21 i operate a small computer shop at home and most customers enjoy playing online games visit: cute wedding anniversary quotes
alishiasergi619
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
2018-09-04 15:32:49 Getting that quick achievement is not possible for any normal human being as they are the most luckiest ones who get what they expect from them and in the end get as well because they have their hard work behind them and this helps them in getting the right direction!
dewe
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)
2018-08-21 19:02:23 • The SKU of the product you are having issues with: DFR0282
• What IDE? Arduino IDE v 1.8.5
• What is the intended function of your project? Transmit numerical information over Bluetooth.
• Are you using any libraries? No. See above.
• Provide a sample of the code: Code above.
michalp
• What IDE? Arduino IDE v 1.8.5
• What is the intended function of your project? Transmit numerical information over Bluetooth.
• Are you using any libraries? No. See above.
• Provide a sample of the code: Code above.
![userHeadPic](https://dfimg.dfrobot.com/dfPortrait2.png)