Jump to content
🌟 NOTIFICATION/Benachrichtigung: Welcome to our New Store! - shelly.com 🌟 ×

Reading Victron Bluetooth advertising protocol in Shelly script


xnd

Recommended Posts

 

Question

Anyone able to implement reading data from Victron devices? It is: Victron Bluetooth advertising protocol

More info:
- https://community.victronenergy.com/questions/187303/victron-bluetooth-advertising-protocol.html
- details: https://community.victronenergy.com/storage/attachments/48745-extra-manufacturer-data-2022-12-14.pdf

I'm able to read that data via script on my Shelly Plus Plug S but that data are encrypted.

Quote

The encryption is done using a **AES-CTR operation**

Shelly scripting environment is very limited and I'm unsuccessful with decrypting that data yet.

 

Thank you

Screen2024-06-17at22_34_21.thumb.png.b8b940518ab0bcb27b606d538bc7ca91.png

 

i'm using basic template for reading BLE data:

let SCAN_DURATION = BLE.Scanner.INFINITE_SCAN;

function scanCB(ev, res) {
  if (ev !== BLE.Scanner.SCAN_RESULT) return;
  if (typeof res.local_name !== 'string') return;
  
  if (res.local_name.indexOf('SmartSolar') < 0) return;
  
  try {
    console.log('== ' + res.local_name);
    const raw_data = res.manufacturer_data['02e1'];
    console.log(String(raw_data));

  } catch (e) {
    console.log('ERR', e);
  }
}

BLE.Scanner.Start({ duration_ms: SCAN_DURATION, active: true }, scanCB);

 

Edited by xnd
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Are there any news about that ? as far as i could find out the shelly script is not able to do aes decryption... anyway if it is possible to transfer the data to nodered for example, it would be possible... i have tested mqtt but i can´t figure out how the rawdata is formatted....

Link to comment
Share on other sites

  • 2 weeks later...

hi everyone, I have also the need to transfer data from viktron devices, like Smartsolar, to eg Homeassiatant through an Shelly 1 plus. 
but first of all, I not see any data in my log when I start this script

My following Setup:

- Victron MPPT BlueSolar 

- Victron Smart Shunt IP65

- Victron Phoenix Inverter 24/1200 (VE Bluetooth Dongle)

- Shelly Plus 1 as BLE Proxy

 HomeAssistant

 

Any ideas

Thanks

Hans

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Erstelle neue...