Skip to content

Example app of the Bosch IoT Lab challenge for the START Hack 2019

Notifications You must be signed in to change notification settings

KevKo1990/iot_lab_challenge_smartphone_example

Repository files navigation

Bosch IoT Lab smartphone example for START hack 2019 challenge

We provide you an example smartphone client to access the ALEN car CAN data streams.

Happy coding with the Bosch IoT Lab challenge!

Helpful information to get started

Available documentation
Config
  • In assets/config.json is the IP address of the ALEN box specified
Technical information
Car Simulation
REST/WS IP-Address 192.168.8.10 130.82.239.210
MQTT Broker 82.165.25.152:1883 82.165.25.152:1884
SSID HUAWEI-2D17 STARTHack2019
WLAN Password Wa1z3gouASQ5! STARTgoescoding
SFTP Server (Port 22) 82.165.25.152 82.165.25.152
SFTP User ftp_read -
SFTP Password ftp_read -
  • Empatica E4 connect portal: ask our team!
REST queries
REST queries
Query Description Examples
/list Lists all available signals {"gateway":{"signals":["speed", "acceleration", "steering_wheel_angle",...]}}
/signal/'signal_name' Provides detailed information (e.g. description and last value) on a single signal.

signal_name = a signal name from signal list
{"signal":{"definition":{"name":"speed","unit":"Unit_PerCent","description":"in km/h"},"measurement":{"value":83.13725490196077,"utc":1550761385086735000}}
/signal/'signal_name'/value Provides last value on a single signal.

signal_name = a signal name from signal list
{"measurement":{"value":83.13725490196077,"utc":1550761385086735000}}
Websocket
  • Websocket connection is established with the Java WebSocket library: https://github.com/TooTallNate/Java-WebSocket
  • Example implementations are the CANWebsocketClient and in LogFragment the CANDataClient class.
  • IP_Adress/ws to open the Websocket
Websocket events
Event Description Examples
onOpen send on onOpen event a message on which signals and on which interval the websocket should receive messages

signals = list of signal names

samplerate = interval in ms

withtimestamp = boolean if values should have a timestamp when the signal was last changed
{"signals":["speed", "acceleration", "steering_wheel_angle",...], "samplerate":250, "withtimestamp":true}
onMessage(String) The event that receives incoming messages Without timestamp: {"signals": {"speed":{"value":234.32, "utc":0}, "acceleration":{"value": 21.21, "utc":0}, "steering_wheel_angle":{"value":432,26, "utc":0}, ...}}

With timestamp: {"signals": {"speed":{"value":234.32, "utc":1551865379474022000}, "acceleration":{"value": 21.21, "utc":1551865379535070000}, "steering_wheel_angle":{"value":432,26, "utc":1551865379535070000}, ...}}
Biometric sensors

Ask our team to borrow the devices!

Empatica E4
Firstbeat
Ideas
"The observing car"
"The emphatic car"
"The caretaking car"

More information about the event:

About

Example app of the Bosch IoT Lab challenge for the START Hack 2019

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages