cancel
Showing results for 
Search instead for 
Did you mean: 

How to read ADV data

philippe1
Associate II
Posted on February 02, 2015 at 15:43

I'm trying to read ADV data sent from a sensor device to my BLUENRG device.

I can see the ADV data with a sniffer, but I can't have my device to pass it up to my app.

What HCI command should I send to the BLUENRG device so it returns the ADV data it received from the sensor device?

Thank you for your help.
5 REPLIES 5
Posted on February 03, 2015 at 10:56

Hi,

Hi,

 you could send the following commands:

-ACI_GATT_INIT()

-ACI_GAP_INIT(0x03)

-ACI_GAP_START_GEN_DISC_PROC()

After that, you can see all devices in Advertising and related ADV Data.

Regards,

Graziella

philippe1
Associate II
Posted on February 03, 2015 at 13:39

Thank you for your answer.

This is what I'm actually doing...

After I send those commands, I get a MAC address from the remote sensor.

I'm next issuing a NAME DISCOVER proc and I get the sensor name: OK, that fine.

The problem comes afterwards.

The next message sent by the remote sensor is a ADV frame with some temperature data.

I'm don't receive any data from the BLUENEG chipset.

I sent a ADD SERVICE with a Temperature UUID (OK'ed by the chipset and I get a service handle) and a ADD CHAR to the BLUENRG (OK'ed as well with another handle) and then I send a GET CHAR VAL with the connection handle I got in a previous message and the CHAR handle. 

I get a ''46 Not allowed'' :(

Any hints?

Thanx !

 

Posted on February 03, 2015 at 15:41

Hi,

when you say ''GET CHAR VAL '', which ACI command do you refer?

thanks,

Graziella

philippe1
Associate II
Posted on February 03, 2015 at 16:00

I meant READ CHAR VAL (FD18)

Posted on February 19, 2015 at 13:14

Dear customer,

To understand better your scenario, could you send me the ''History file''?

In any case, you could see the script ''SensorDemo_Central.py'' that you can find under the folder ''..\STMicroelectronics\BlueNRG DK 1.6.0\Application\scripts'' that show how to interact with the SensorDemo (read char, notification and etcc)

Regards,

Graziella Marchese

I meant READ CHAR VAL (FD18)