Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

121
Views
BLE Read sensor data through raspberry pi

I am trying to build an iot platform that takes the sensor data via smartwatch and pass to Raspberry pi (BLE Gateway) and sends to webserver. I used https://github.com/noble/noble JS, able to connect to watch and can see the characteristics and services but cannot get the data. This is how I wrote

const  noble = require('@abandonware/noble')
noble.on('stateChange', async (state) => {
 if (state === 'poweredOn') {
     await noble.startScanningAsync([], false);
 } else {
     noble.stopScanningAsync();
  }
});
noble.on('discover', async (peripheral) => {
 console.log(peripheral.id)
 if (peripheral.id === "xxxxxxxxxx") peripheral.connectAsync(() => {

     peripheral.discoverServices(['fff0'], async (e, services) => {
    
         services[0].discoverCharacteristics(['fff7'], async (e, characteristics) => {
             const chara = characteristics[0]
      
             chara.once('read', (data) => {
                  console.log(data);
              })
             chara.once('notify', async function (isNotification) {
                 console.log('Notification', isNotification);
             })

             chara.readAsync(async (error, data) => {
                 console.log(data);
             })

         })
     })
  })
})

I contacted the watch manufacturer and they told me that I have to pass the 16 byte data, so for example to get the battery i need to pass

   0x13 AA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CRC

But they never told me how to pass or which language to use. They told me to go through BLE protocol but this is bit confusing. Anyone has any idea, how this can be done? Do I need to use python to pass the 16-byte command and get response. Thank you

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!