OpenBikeSensorFirmware icon indicating copy to clipboard operation
OpenBikeSensorFirmware copied to clipboard

Support OBS-lite variant

Open amandel opened this issue 3 years ago • 6 comments

See https://github.com/openbikesensor/OpenBikeSensor_PCB_Board/tree/obs-lite

  • [x] Detect OBS-lite variant via VoltageMeter -> GND
  • [x] Be relaxed is hardware is not found in OBS lite mode
  • [ ] Remove / hide features not supported in OBS lite
  • [ ] ...

amandel avatar Aug 21 '22 10:08 amandel

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Aug 27 '22 08:08 sonarqubecloud[bot]

@opatut - this version should be ready to run on OBS-lite. For now OBS-lite has

  • no / fixed config
  • distance offset is fixed 0
  • name is derived from mac address OpenBikeSensor-lite-XXXX
  • formal reporting is only via BLE (sorry). You can use nRF Connect or hopefully the upcoming SimRa Android version to receive the data
  • serial is today used for debug output only
  • detection of the variant is via GPIO 34 which must be pulled to GND

amandel avatar Aug 27 '22 09:08 amandel

Awesome, just a two days ago I received the 0.1.1 PCB and today I'm going to solder it and try it out.

We should talk about serial output some time. I would suggest trying out protobuf as a platform for generating a binary protocol that can efficiently (within the limits of a background Android app, for example) be streamed, parsed, stored and so on. It should be rather easy to use on the embedded device, as it compiles to C++. We could have a "debug" message type as well, and a tiny python script to read your serial output for debug messages and output them as text on the command line, to help with development ;)

opatut avatar Aug 27 '22 10:08 opatut

Cool, happy to get feedback. My test setup is mostly a classical OpenBikeSensor, I hope I did not miss side effects of not available hardware.

amandel avatar Aug 27 '22 12:08 amandel

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Oct 01 '22 14:10 sonarqubecloud[bot]

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 7 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Dec 03 '22 21:12 sonarqubecloud[bot]

obs lite has a own firmware

amandel avatar Jul 01 '24 19:07 amandel