Part Number: DLPNIRNANOEVM
My issue is that I do not undersetand how to retrieve the data using the BLE characteristics. In request , the guide says that I must indicate intent to read without sending any data. I do not understand how to do it.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Kyle Rakos:
The part that i am talking about is the table J-5 in Section J: Bluetooth Communications
In reply to brais.cgaldo:
In reply to Hirak Biswas:
I am capable to receive the reference data but not the spectrum data. I followed the same proccess but I cannot obtain the spectrum calibration data. It may be a bug into the firmware.
The most important issue is that when I write a 5 to manifest the intent to read, occurs a BLE error communication and I am not capable to read the correspondent characteristic.
It sounds like you are having issues reading the multi-packet information returned from the GCIS service (UUID 0x53455204-444C- 5020-4E49- 52204E616E6F). Is that correct?
Receiving the spectrum calibration coefficients requires the following steps:
Here is a log from lightBlue when I executed the previous steps
12:23:04.960 — Characteristic (4348410D-444C-5020-4E49-52204E616E6F) wrote new value: <00>12:23:05.104 — Characteristic (4348410D-444C-5020-4E49-52204E616E6F) read: (null)12:23:05.105 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <00900000 00>12:23:05.106 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <0174706c 00480000 00532866 23662329 00030000>12:23:05.107 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <02000300 000020db 98cc85b8 23c0d704 77fb90dd>12:23:05.107 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <03af3f51 c94c4a9d 1a17bfa3 d9007989 1d9c404e>12:23:05.107 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <04bd5dc1 4be6edbf 5cfeba71 252c2fbf 00000000>12:23:05.107 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <05000000 00000000 00000000 00000000 00000000>12:23:05.108 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <06000000 00000000 00000000 00000000 00000000>12:23:05.108 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <07000000 00000000 00000000 00000000 00000000>12:23:05.164 — Characteristic (4348410E-444C-5020-4E49-52204E616E6F) notified: <08000000 00000000 00000000>
This data should be interpreted and repackaged as described in the NIRscan Nano User's Guide table J-9: Bluetooth Multiple Packet Structure. It should then be passed into the appropriate spectrum library function(s) for usage.
Note that reading many of the calibration and scan data over BLE uses this same construct, with different notification and read-request UUIDs to subscribe and write to.
In reply to Eric Pruett:
No, I do not have any issue reading the information because I do this steps and no data is retrieved from the device. I write a 0x00 in the Request Spectrum Calibration Coefficients Characteristic from GCIS and no information is retrieved. Furthemore, it cause a BLE error communication between my android phone and the NIRSCAN NANO.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.