To add a device codec to the server ChirpStack follow the steps:
-
Go to the "devices" folder
-
Go to the folder with the target device name
-
Go to the "scripts" folder and open the file with current version of the script
-
Select the file content and copy to clipboard
-
Open the ChirpStack server in a browser and go to the "Device-profiles" menu
- Click on the target device profile name
- Go to the "CODEC" tab
- Select "Custom JavaScript codec functions" in the "Payload codec" field
- Paste the content of the script file in the Decode function input area
- Click on the "UPDATE DEVICE-PROFILE" button
To View the decoded data follow the steps:
- Go to the "Applications" menu
- Click on the application name, which include the target device
- Click on the device name
- Go to the "DEVICE DATA" tab
Messages received from the device will be displayed in the opened list.
Message content will display, by click on the message. Decoded data will display in objectJSON field.
- Vega Smart-AS0101 - acceleration sensor
- Betar-Vega SGBM-1.6 - small-sized household gas meter
- Betar-Vega SHVE/SGVE - electronic water meter
- Vega GM-2 - modem for Elster gas meters
- Vega Smart-HS0101 - sensor of humidity/temperature/door and window/acceleration
- Vega LM-1 - Tracking device
- Vega M-BUS-1 - M-BUS converter
- Vega M-BUS-2 - M-BUS converter
- Vega Smart-MC0101 - door and window sensor
- Vega Smart-MS0101 - motion sensor
- Vega SH-2 - universal modem
- Vega SI-11 - pulse counter
- Vega SI-12 - pulse counter with two outputs
- Vega SI-12 RELAY - pulse counter with built-in relay
- Vega SI-22 - pulse counter with external antenna
- Vega Smart-SS0102 - smoke sensor
- Vega TD-11 - temperature sensor
- Vega TL-11 - Temperature logger
- Vega TP-11 - 4-20 mA converter
- Vega TS-12 - network tester
- Vega Smart-UM0101 - universal office sensor 5 in 1
- Vega Smart-WB0101 - LoRaWAN button
- Electricity meter CE2726A/CE2727A











