Skip to content

Support for handling vectors and scalars #281

@kkasper

Description

@kkasper

Feature Request Template


1. Is your feature request related to a problem? Please describe.

Example: "I’m frustrated when […]"

Provide a clear and concise description of the problem you’re facing:

I have a BLE device which needs higher data rate parsing. Since BLE data channel packets have a relatively high overhead (10-14 bytes) if the payload is small (2 bytes), you can make your data transfer more efficient by sending multiple values in a single packet (up to 255 bytes).
Currently, you can parse your BLE packet using the custom javascript parser (which is great, by the way), but the dashboard expects an array of scalars, where each value is intended for a different dashboard component.

2. Describe the solution you’d like

Example: "I’d like the software to [...]"

Explain what you’d like to see happen:

I'd like to be able to parse a BLE (and serial but the implementation would be identical) packet and assign some subset of values to one component, and other subsets arbitrarily to other components.

Suppose a BLE packet which contains 120 16-bit accelerometer values, an 8-bit humidity reading, and an 8-bit temperature reading with the following format:

[0xAccel1_Byte1, 0xAccel1_Byte2, 0xAccel2_Byte1, 0xAccel2_Byte2, ... , 0xAccel120_Byte1, 0xAccel120_Byte2, 0xHumidByte, 0xTempByte]

It would be good to be able to return an array with mixed scalar/vector values, something like:

[HumidValue, TempValue, [Accel1, Accel2, ..., Accel120] ]

and have it plot to the dashboard. There will be issues with assigning timestamps to each point in the supposed Accelerometer value array, likely you will need to also supply discrete time values for each point or to specify a time interval between points.

3. Describe alternatives you’ve considered

Example: "I’ve thought about using [...] instead."

List any alternative solutions or features you’ve considered:

Writing a data collector/parser/visualizer like this in MATLAB or Python is fine and what I currently do, but Serial Studio has a nice, approachable GUI, runs standalone, and my undergrads can use it with little training. I think this would be a good feature to add to its already impressive capabilities.

Maybe I have missed in the documentation/my attempts if this is possible, but I may be able to write this feature with some pointing in the right direction.

4. Additional context

Example: "Here’s a screenshot of the problem: [...]"

Include any other context, screenshots, or examples that might help explain your request:

BLE Data Packet Structure

Image

Important Notes

  • Feature requests are treated with lower priority than bug fixes.
  • I am an open-source developer. I provide this software as-is and cannot be responsible for long-term maintenance or personalized service. The source code is available freely, and if the issue is urgent, you’re encouraged to fix it yourself or hire someone (including myself) to do so.
  • If you urgently need a specific enhancement, you’re welcome to support the project by donating at this link. Donations help prioritize feature development.

Thank you for contributing to the improvement of this software!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions