tag:blogger.com,1999:blog-89878749563391212.post11955824372185183..comments2024-03-25T17:53:11.127-07:00Comments on Android-er: Connect HM-10 (BLE Module) to Android device, with BluetoothLeGatt sample projectUnknownnoreply@blogger.comBlogger20125tag:blogger.com,1999:blog-89878749563391212.post-48794116277733544732018-12-03T06:08:56.396-08:002018-12-03T06:08:56.396-08:00I faced the problem of not finding any BLE devices...I faced the problem of not finding any BLE devices using Android 8.<br />Based on the comment of Eunchan Park, I was able to adapt the file for the usage on my device.<br /><br />Here's my "updated" BLE GATT sample:<br />https://github.com/schollp/BLEGattAndroid8Anonymoushttps://www.blogger.com/profile/01851825637188958405noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-21620416530737806792018-08-17T07:24:49.716-07:002018-08-17T07:24:49.716-07:00Art Dahm, Andr.oid Eric, Eunchan Park... thanks!Art Dahm, Andr.oid Eric, Eunchan Park... thanks!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-68655984660967922032018-06-30T05:26:33.452-07:002018-06-30T05:26:33.452-07:00Eunchan Park, you saved my day ... thank you :)Eunchan Park, you saved my day ... thank you :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-76595223535568098212018-06-04T01:59:56.136-07:002018-06-04T01:59:56.136-07:00Can someone explain me what I exactly have to do w...Can someone explain me what I exactly have to do with the Update "As Android updated, start Bluetooth LE scan by calling startScan(ScanCallback callback) or startScan(List filters, ScanSettings settings, ScanCallback callback)"? I don´t have any idea what I´ve to change. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-8650995850439631452018-05-31T07:57:39.457-07:002018-05-31T07:57:39.457-07:00Try using serial Bluetooth terminal app since Hm-...Try using serial Bluetooth terminal app since Hm-10 is BLE - Low Energy device. Anonymoushttps://www.blogger.com/profile/13432108756481468122noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-86339803211595391002018-05-31T07:55:44.656-07:002018-05-31T07:55:44.656-07:00Use the serial Bluetooth terminal app from appstor...Use the serial Bluetooth terminal app from appstore then you can get paired else yours module is not good.since HM-10 is a BLE i.e Low Energy is different from other Bluetooth devices your module can get connected only the apps having for scanning Bluetooth LE (Low Energy) Anonymoushttps://www.blogger.com/profile/13432108756481468122noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-8448439548145470062018-01-29T09:50:22.893-08:002018-01-29T09:50:22.893-08:00I am considering using an HM-10 BLE module to cap...I am considering using an HM-10 BLE module to capture, or receive, the data from a VR remote controller named ACGAM R1, which is a 4.0 bluetooth device. So far, I have not been able to get the HM-10 to even detect the ACGAM presence. Honestly, I thought it would but no I am convinced I am missing something and have no clue what it is. - Do you have an idea why is this happening ? - I found your post very interesting, trying to find an answer to my question. Thank you for your time in advance.Anonymoushttps://www.blogger.com/profile/15538685481648859204noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-38359661650573308022017-08-30T07:39:16.282-07:002017-08-30T07:39:16.282-07:00from some moment, we need to put extra code for us...from some moment, we need to put extra code for using scanning BT.<br />That is "ACCESS_COARSE_LOCATION"<br />So, You need to put some code.<br />1. in your AndroidManifest.xml file, add this line <br /><br /><br /><br />2. in the DeviceScanActivity.java, add this code inside of onCreate method<br />int MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION = 1;<br /> ActivityCompat.requestPermissions(this,<br /> new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},<br /> MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);<br /><br />it will be look like this<br />public void onCreate(Bundle savedInstanceState) {<br /> super.onCreate(savedInstanceState);<br /> getActionBar().setTitle(R.string.title_devices);<br /> mHandler = new Handler();<br /> int MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION = 1;<br /> ActivityCompat.requestPermissions(this,<br /> new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},<br /> MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);<br /><br />nd I also found that I needed to add the bluetooth device in advance.<br />I mean, after I registered the bluetooth by using the native android bluetooth configuration window.<br />I think becuase I needed to put the pincode but this sample application doesn't open any window for putting pincode.<br />anyway, I am now able to connect the device.<br /><br />...chanshttps://www.blogger.com/profile/01762165897255024834noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-67681009814163437352017-06-05T02:03:06.680-07:002017-06-05T02:03:06.680-07:00Thanks Lazar, just added remark on the post text.Thanks Lazar, just added remark on the post text.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-29002917021890862702017-06-04T22:53:02.447-07:002017-06-04T22:53:02.447-07:00By some new standards you will have to request per...By some new standards you will have to request permission to get users location in order for this code to work.Lazarnoreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-70925973576687812332017-05-14T04:13:33.638-07:002017-05-14T04:13:33.638-07:00how to extract incoming data from the app, i am tr...how to extract incoming data from the app, i am trying to plot a graph from the incoming data Anonymoushttps://www.blogger.com/profile/04389149713590014189noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-31009010002557039912017-02-02T20:59:55.801-08:002017-02-02T20:59:55.801-08:00Do you have send and receive code for the arduino?...Do you have send and receive code for the arduino? Assume I was able to connect the android device to the bluetooth le module, how can I send data from it? (P.S response is not necessary only sending data to the bluetooth module only to be received by the arduino atmega)Anonymoushttps://www.blogger.com/profile/09887351746013861594noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-82902090920331383552016-07-14T23:36:37.727-07:002016-07-14T23:36:37.727-07:00Hello Marvia Edith,
Actually it is a example code...Hello Marvia Edith,<br /><br />Actually it is a example code of Android <a href="https://developer.android.com/samples/BluetoothLeGatt/index.html" rel="nofollow">HERE</a>, with little modification as shown in the post.<br /><br />I'm preparing my step-by-step example <a href="http://android-er.blogspot.com/2016/06/bluetooth-le-gatt-example-step-by-step.html" rel="nofollow">HERE</a>Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-2853677719361533712016-07-14T17:42:36.541-07:002016-07-14T17:42:36.541-07:00This tutorial is very helpful, do you have the pro...This tutorial is very helpful, do you have the project in github or something?Marvia Edithhttps://www.blogger.com/profile/16286008206892147612noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-29545025275389919522016-07-12T14:21:40.034-07:002016-07-12T14:21:40.034-07:00Great tutorial! However, when I run the app (with ...Great tutorial! However, when I run the app (with the modifications) and scan the HM-10 is not even visible. When I try to connect in regular Bluetooth settings it is visible but says that it is not ready to pair. Do you happen to know how I can fix this?<br />Thanks in advanced.dylankhttps://www.blogger.com/profile/01587052431907288057noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-32834940763234498232016-02-02T03:01:17.231-08:002016-02-02T03:01:17.231-08:00THANK YOU SO MUCH,
I just deleted Serial.available...THANK YOU SO MUCH,<br />I just deleted Serial.available() from loop and it works perfect.<br />Thank you again.Anonymoushttps://www.blogger.com/profile/15843509173478785889noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-69796014452349944242016-02-01T09:58:38.787-08:002016-02-01T09:58:38.787-08:00hello Matúš Pohančeník,
In your code, the Arduino...hello Matúš Pohančeník,<br /><br />In your code, the Arduino check Serial.available() in every one second, so that it will response slowly.<br /><br />Second, as I remember, Serial.available() check number of bytes available to read, without read. So the data is still available, and always available.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-37218482835010233462016-02-01T06:24:31.308-08:002016-02-01T06:24:31.308-08:00Do you think there is a diference, when I'm se...Do you think there is a diference, when I'm sending data from arduino in loop like this<br /><br /><br />void setup() {<br /> Serial.begin(9600);<br />}<br /><br />void loop()<br />{ <br /> if (Serial.available()) {<br /> Serial.println("sending");<br /> <br /> }<br /> delay(1000); <br />}<br /><br />or did you make any changes at the HM modul by At commands? I am very new at this, so I don't understand details much.Please If you can help me...Anonymoushttps://www.blogger.com/profile/15843509173478785889noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-55918881200715244822016-01-29T00:56:23.940-08:002016-01-29T00:56:23.940-08:00hello Matúš Pohančeník,
it work for me, as shown ...hello Matúš Pohančeník,<br /><br />it work for me, as shown in the videos.Erikhttps://www.blogger.com/profile/04983894331825656853noreply@blogger.comtag:blogger.com,1999:blog-89878749563391212.post-90176035938360484332016-01-29T00:15:06.623-08:002016-01-29T00:15:06.623-08:00Did it work properly for you? I have tried your mo...Did it work properly for you? I have tried your modification, but It's not receiving data. Only If I use app HMBLE from Google play before, than it's working fine. Looks like there is some truble with creating comunication between Android device and HM-10.Do you have some advice for me please?Anonymoushttps://www.blogger.com/profile/15843509173478785889noreply@blogger.com