My smartphone android version is 6.0, bluetooth version is 4.2, supports ble.
I want to create an app to control the led light on and off. Here is the link of the tutorial.
But the statement "call BluetoothBLE1.startscanning" occurs the notification "Bluetooth Advertisements Not Supported".
And I also have the same problem like @Bluetrack :
For testing I use the serial monitor.
-->I can successfully connect and disconnect, but can't send any data via the app. If I use "nRF Master Control" , I can write 49 to the arduino to make LED on and anyother numbers to make LED off. You can see the screenshots in the attachments.
-->but if I use app inventor to test the app, the monitor only shows "connected" or "disconnected", can't show any number that sent to the arduino ble. And also can't make the led on, whatever 49 or 1.
What I want to know is that why the statement "call BluetoothBLE1.WriteIntValue" doesn't work.
BLE_Arduino101_blink.ino
I want to create an app to control the led light on and off. Here is the link of the tutorial.
But the statement "call BluetoothBLE1.startscanning" occurs the notification "Bluetooth Advertisements Not Supported".
And I also have the same problem like @Bluetrack :
For testing I use the serial monitor.
-->I can successfully connect and disconnect, but can't send any data via the app. If I use "nRF Master Control" , I can write 49 to the arduino to make LED on and anyother numbers to make LED off. You can see the screenshots in the attachments.
-->but if I use app inventor to test the app, the monitor only shows "connected" or "disconnected", can't show any number that sent to the arduino ble. And also can't make the led on, whatever 49 or 1.
What I want to know is that why the statement "call BluetoothBLE1.WriteIntValue" doesn't work.
BLE_Arduino101_blink.ino
--
The advertisements not supported is a warning that you can ignore. It just means that your phone does not support them, but not many phones do and you do not need them, unless you want to use your phone as a server.
From your blocks I cannot see whether your device is connected properly, maybe you could build a check to show that.
I attach an AI2 app that you can use as a diagnostic tool to check if you can connect properly and find the right UUID's.
From your blocks I cannot see whether your device is connected properly, maybe you could build a check to show that.
I attach an AI2 app that you can use as a diagnostic tool to check if you can connect properly and find the right UUID's.
--
Thank you for your response! Sorry I reply late because I've been out of office for a few days.
I used the serial monitor to observe whether the deviced was connected. It did connect, you can see it on the screenshots I uploaded before.
I import your aia file and make a test, it's very helpful and I have learnt a few tips. It can see whether the device is connected clearly.
Could you recommend some tutorials of Ble with App Inventor so I can follow step by step? Thank you very much!
--
I used the serial monitor to observe whether the deviced was connected. It did connect, you can see it on the screenshots I uploaded before.
I import your aia file and make a test, it's very helpful and I have learnt a few tips. It can see whether the device is connected clearly.
Could you recommend some tutorials of Ble with App Inventor so I can follow step by step? Thank you very much!
--
Thank you very much!
--
You should be very careful with the documentation Taifun pointed you to. Much of it is obsolete and will not easily work.
There is really not very much right now. You should keep in mind that the BLE functionality is still very experimental.
There is really not very much right now. You should keep in mind that the BLE functionality is still very experimental.
--
You are right. I have tried almost all demos and tutorials before, but few is successful. I'll test very carefully again later and try to figure out why the phone can't transfer data to device via ble.
--
--
Seems i am facing another problem, hope you can help me.
My phone display "Unsupported Bluetooth Advertisements", too. But it did run well by online AI Companion
Than, if I switch to Build -> APP (QR code), my problem happen after APK running .
Problem:
There was no BT device after Button "Scan" pushed even use your BLE_workshop example.
Have any idea??
--
Yes. There is a bug in the build process, which has an easy workaround. Drag a normal Buetooth component into your design. You do not need to do anything with the component, and it does not matter whether you take the BluetootClient or the BluetoothServer. Build you app again, and now it should work.
--
댓글 없음:
댓글 쓰기