Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DIS #19

Closed
microbuilder opened this issue Mar 5, 2017 · 9 comments
Closed

Update DIS #19

microbuilder opened this issue Mar 5, 2017 · 9 comments

Comments

@microbuilder
Copy link
Contributor

The DIS service should be updated to make .setSerial and .setFirmwareRev internal/private.

  • .setSerial should be populated with the unique device ID from the nRF52
  • .setFirmwareRev should be populated with:
    • ARDUINO_BSP_VERSION
    • BOOTLOADER_VERSION
    • SD_NAME
    • SD_VERSION
    • For example, Firmware Version should be set to 0.2,0.5,S132,11.2, which uses 17 bytes

The following characteristics should remain public and accessible to end users, but with the following defaults values

  • Model: Feather52
  • Software Rev: --
  • Hardware Rev: --
  • Manufacturer: Adafruit Industries
@hathach
Copy link
Member

hathach commented Mar 6, 2017

For Firmware version

  • ARDUINO_BSP_VERSION : usually is 3 number e.g 0.2.0 Do you purposely drop the least number ???
  • SD Version is 2.0.1 ( 11.2 is SDK version)

For Software_Rev and Hardware_Rev default values is NULL which mean it is not populated in the DIS

@hathach
Copy link
Member

hathach commented Mar 6, 2017

Maybe SD_Version is integrated into SD_NAME as well, and have the bootloader to be 3 number to be consistent e.g 0.4.5,0.5.0,S132v2.0.1 ??

@microbuilder
Copy link
Contributor Author

OK, let's do this: `0.5,S132,2.0.1,0.4.5' = 20 chars ... I prefer another ',' to the 'v' to be consistent, and then they are in a logical order:

  • Bootloader version
  • SoftDevice Family
  • SoftDevice Version
  • BSP Version

@hathach
Copy link
Member

hathach commented Mar 6, 2017

no problems, I think bootloader should also be 3 number since we couldn't change 0.5 -> 0.6 since nordic API() use that to indicate whether it is in DFU or not. When we change our customized code, we likely to increase from 0.5.0 to 0.5.1 or so.

PS: the BSP is likely to increase to 0.10.10 so it is 22-24 bytes ??

@hathach
Copy link
Member

hathach commented Mar 6, 2017

I think we should also make the OTA DIS to be consistent as well for now, it is

  • Manufacturer = Adafruit Industries
  • Model = Bluefruit Feather52 --> drop to simply Feather52 only
  • There is no firmware rev now, it should contain only bootloader + SD e.g 0.5.0,S132,2.0.1 (omit the Arduino BSP version)

@microbuilder
Copy link
Contributor Author

Ack, you're right. OK ... the BSP actually isn't SUPER important since that only goes into user code anyway, the bootloader and SD are the most important since those are hard coded and can't be easily changed by the user.

Lets just display:

  • BOOTLOADER (x.x.xx)
  • SD Family (S132)
  • SD Version (xx.xx.xx)

So: x.x.xx,Sxxx,xx.xx.xx = 20 bytes

@hathach
Copy link
Member

hathach commented Mar 6, 2017

Got it, then

  • we should change Model in application to Bluefruit Feather52 as well ??
  • ARDUINO BSP VERSION can be default value for Software Chars. User can change it if they like :)

@microbuilder
Copy link
Contributor Author

Arduino BSP as default 'Software Char' seems like a good idea, yes.

hathach added a commit that referenced this issue Mar 6, 2017
@hathach
Copy link
Member

hathach commented Mar 6, 2017

default values here https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/master/libraries/Bluefruit52Lib/src/services/BLEDis.cpp#L43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants