ble_uart_controller_test's People
Forkers
helenmelonz sachinsurfs progamercode magneval irenezzhang zagadaga andrewpearson1 pradipupa frankaosmanble_uart_controller_test's Issues
Misleading code, lack of documentation
Got here from your Adafruit blog post at https://learn.adafruit.com/bluefruit-le-connect/controller.
The rxCallback() function's second parameter is simply named "len", which suggests it's the length of the buffer. If my investigations are correct, this is misleading. Can you confirm the following:
- the rxCallback() function is ALWAYS provided a 20-byte buffer
- the second parameter might more accurately be named "validLen", to indicate the number of bytes of data was received for this packet
- For supported commands, is the data packet defined as:
struct {
uint8_t CommandIndicator; // must be ASCII '!'
uint8_t CommandType; // one of Q, A, G, M
uint8_t CommandSpecificData; //
uint8_t CRC; // specifically, CRC being always at offset 19, thus requiring 20 bytes always
} OPTION_A;
- For supported commands, is the data packet instead defined as:
struct {
uint8_t CommandIndicator; // must be ASCII '!'
uint8_t CommandType; // one of Q, A, G, M
union {
struct {
uint8_t float_x[4]; // must be cast to a float, stored little-endian
uint8_t float_y[4]; // must be cast to a float, stored little-endian
uint8_t float_z[4]; // must be cast to a float, stored little-endian
uint8_t float_w[4]; // must be cast to a float, stored little-endian
uint8_t CRC; // specifically, offset == 19
} QuaternionData;
struct {
uint8_t float_x[4]; // must be cast to a float, stored little-endian
uint8_t float_y[4]; // must be cast to a float, stored little-endian
uint8_t float_z[4]; // must be cast to a float, stored little-endian
uint8_t CRC; // specifically, offset == 15
} AccelerometerData;
// ….
};
} OPTION_B;
This is important, as the sample code has some errors, either way....
Thanks!
Header file not found / missing?
Where would the header file "Adafruit_BLE_UART.H" be found?
I've installed the Adafruit nRF52 BSP v0.9.3 from https://www.adafruit.com/package_adafruit_index.json.
I then selected board "Adafruit nRF52840 Feather Express".
When attempting to compile this, the header is not found.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.