This is a repository with an example of a connector. It contains a notebook that connects to the B-ON platform and submits mocked TCU data.
- Install python
3.12. - Install poetry:
pip install poetry==2.1.2. - Install poetry dependencies:
poetry install.
- Get the
certificatesfolder from B-ON. Put it in the repository root. - Get the connector metadata from B-ON:
B_ON_MQTT_ENDPOINT,TENANT,THING_IMEI.
- Start the jupyter lab:
poetry run jupyter-lab. - Open the notebook
b-on_connector.ipynb. - Update the connector metadata in the notebook:
B_ON_MQTT_ENDPOINT,TENANT,THING_IMEI. - Optionally change the values for position, odometer and battery.
- Run the notebook:
Run > Run All Cells
| Status message | Details | MQTT topic | Message parameters | Other details |
|---|---|---|---|---|
| VehicleACChargeCurrent | This message is used to transmit the current flow on the vehicle’s AC side. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/acChargeCurrent |
Signal( |
Scaling factor: 100 |
| VehicleACChargeVoltage | This message is used to transmit the voltage present on the vehicle’s AC side. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/acChargeVoltage |
Signal( |
Scaling factor: 10 |
| VehicleACCurrentRealized | This message is used to transmit the charge power currently realized by the vehicle. The value transmitted here is not including any derating but is referring to the value set in the respective command message. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/chargingPowerRealized |
Signal( |
|
| VehicleAmbientTemperature | This message is used to transmit the temperature of vehicle’s outside environment temperature sensor. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/ambientTemperature |
Signal( |
Scaling factor: 10 |
| VehicleBatteryTemperature | This message is used to transmit the temperature of vehicle’s battery pack. | {TENANT}/vehicleStatus/{THING_IMEI}/battery/batteryTemperature |
Signal( |
Scaling factor: 10 |
| VehicleCabinTemperature | This message is used to transmit the temperature of vehicle’s driver cabin. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/cabinTemperature |
Signal( |
Scaling factor: 10 |
| VehicleChargePlugStatus | This message is used to transmit the state of the vehicle’s charge plug/socket. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/chargePlugStatus |
Signal( |
|
| VehicleChargingDCPowerMax | This message is used to transmit the charge power realizable by the vehicle at the moment. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/chargingDCPowerMax |
Signal( |
|
| VehicleDCChargeCurrent | This message is used to transmit the current flow on the vehicle’s DC side. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/dcChargeCurrent |
Signal( |
Scaling factor: 100 |
| VehicleDCChargeVoltage | This message is used to transmit the voltage present on the vehicle’s DC side. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/dcChargeVoltage |
Signal( |
Scaling factor: 100 |
| VehicleIgnitionStatus | This message is used to transmit the state of the vehicle’s ignition. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/ignitionStatus |
Signal( |
|
| VehicleOdometer | This message is used to transmit the odometer value. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/odometer |
Signal( |
Scaling factor: 10 |
| VehicleOnlineStatus | This message is used to transmit the vehicle’s connectivity state to the backend. This message shall be sent at least every 15 minutes to act as a keep-alive message for the backend. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/onlineStatus |
Signal( |
|
| VehiclePositionStatus | This message is used to transmit the vehicle’s location. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/positionStatus |
Signal( |
|
| VehiclePreconditioningStatus | This message is used to transmit information about the vehicle’s preconditioning. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/preconditioningStatus |
Signal( |
|
| VehicleStateOfCharge | This message transmits the current state of charge of the vehicle’s battery. | {TENANT}/vehicleStatus/{THING_IMEI}/battery/stateOfCharge |
Signal( |
Scaling factor: 10 |
| VehicleVINStatus | This message transmits the current VIN of the vehicle the telematic unit is connected to. Since in some cases telematic units can be switched between vehicles, this message is used to signal that to the backend, allowing the status messages reported by the telematic unit to be associated with the correct vehicle. | {TENANT}/vehicleStatus/{THING_IMEI}/vehicle/vinStatus |
Signal( |
- Open the B-ON platform and log in.
- Explore the Vehicle assets and their data.