BLE Nano 2 with HM-10

lukeman gravatar image

asked 2017-09-13 13:17:42 +0200

Hi guys,

I am trying to connect my BLE Nano 2 with HM-10(as a Peripheral device) using Arduino Central_test program.But the problem is it is not pairing with it,but detecting HM-10.How to proceed after this??

edit retag flag offensive close delete report spam

Comments

You need to provide some more details to get some help. an you link to the application you are testing this with? Are you getting any error codes on any of the devices? Are you able to connect? Is it working with other devices (phone, etc.)?

Jørgen Holmefjord ( 2017-09-14 11:26:12 +0200 )editconvert to answer

We want BLE nano 2 as a central device and HM10 as peripheral device.... want them to communicate using uart profile.... we are working in Arduino IDE and using Central test example.... till now we are able to connect to HM10 as peripheral and NANO 2 as central..... and NANO 2 was able to detect all services and characterstics.... So when we tried to send some "char" to NANO from hm10 using serial moniter..... we are receving that "char" in notify callback event..... but we are not able to find how to send data from NANO 2 to HM10.... Can you please Help on that.

Lukeman ( 2017-09-14 13:02:13 +0200 )editconvert to answer

Please post a direct link to the code of the example, or upload the code here. Are you trying to send the data over serial or BLE?

Jørgen Holmefjord ( 2017-09-14 15:30:23 +0200 )editconvert to answer

/* Copyright (c) 2016 RedBear

   Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
   to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
   and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

   The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM ...
(more)
Lukeman ( 2017-09-15 08:44:15 +0200 )editconvert to answer

This is the arduino code we are using and trying to send data between two device (Nano 2 and HM10 in half or full duplex mode) over BLE

Lukeman ( 2017-09-15 08:45:31 +0200 )editconvert to answer

If you want to send data from the client to server (central to peripheral), you need to write the RX characteristics of the server. See the this line for details on how to write to chars.

Jørgen Holmefjord ( 2017-09-18 20:14:11 +0200 )editconvert to answer