-
Notifications
You must be signed in to change notification settings - Fork 513
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
Fix msom usb + ble setup names #2732
Conversation
#endif // defined(MODULE_FUNCTION) && MODULE_FUNCTION != 2 // MOD_FUNC_BOOTLOADER | ||
|
||
#define PRODUCT_SERIES "Mseries" | ||
#define PRODUCT_SERIES "M SoM" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This/these were specifically chosen with the "Series" text. Are we breaking convention?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nick specifically requested this change here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing from Series to some other convention is OK.
My main concern is the space. This constant is used for the BLE advertising name BleGap::setDeviceName
and the Wi-Fi setup SSID fetch_or_generate_setup_ssid
(is that still a thing in modern devices?). I'm not sure what issues we introduce with BLE and Wi-Fi stacks if we add a space in the name.
I think it would be safer to define PRODUCT_SERIES as MSoM.
@@ -81,7 +81,7 @@ | |||
#endif // PLATFORM_ID != PLATFORM_BORON | |||
|
|||
#if PLATFORM_ID == PLATFORM_ESOMX | |||
#define PRODUCT_SERIES "Eseries" | |||
#define PRODUCT_SERIES "E SoM X" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likewise ESoMX would be safer for PRODUCT_SERIES
spaces in ble and wifi are fine - we need to be consistent in our product messaging mostly (so I'm assuming these follow the existing B SoM definitions?) |
The PR changes the product reported in USB enumeration while the USB list command remains "M SoM". I am assuming setup takes the system USB enumeration string and the CLI sanitizes this already to "M SoM". As reported before running this branch:
After running this branch:
|
The only limitation is that the string must fit in the 20 character max for BLE advertising name. This includes a trailing serial number added by default. I tested this PR and can see the string
Bsom advertises as It reports
@mrlambchop Do we want to change the bsom USB and BLE names as well? |
4089a4e
to
d03ae6f
Compare
Superseded by #2753 |
Problem
Msom setup shows the wrong name:
Mseries
. It should beM SoM
Same for P2 BLE setup.
Solution
Fix the hardcoded USB + BLE setup strings
Steps to Test
Build + flash branch. Setup msom on setup.particle.io, name should show as
M SoM
Example App
tinker
References
Links to the Community, Docs, Other Issues, etc..
Completeness