![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This is code is part of a Technion course project in advanced IoT, implementing a device to read and transmit sensors data from a Formula racing car built by students at Technion - Israel Institute of Technology.
Fork of DISCO-L072CZ-LRWAN1_LoRa_PingPong by
This is code is part of a Technion course project in advanced IoT, implementing a device to read and transmit sensors data from a Formula racing car built by students at Technion - Israel Institute of Technology.
How to install
- Create an account on Mbed: https://os.mbed.com/account/signup/
- Import project into Compiler
- In the Program Workspace select "Formula_Nucleo_Reader"
- Select a Platform like so:
- Click button at top-left
- Add Board
- Search "B-L072Z-LRWAN1" and then "Add to your Mbed Compiler"
- Finally click "Compile", if the build was successful, the binary would download automatically
- To install it on device simply plug it in to a PC, open device drive and drag then drop binary file in it
Transmitter/Transmitter.h@12:02d779e8c4f6, 2018-05-19 (annotated)
- Committer:
- wardm
- Date:
- Sat May 19 11:41:10 2018 +0000
- Revision:
- 12:02d779e8c4f6
- Parent:
- SX1276GenericPingPong/GenericPingPong.h@11:9d7409ebfa57
Code for Technion Formula car sensors reader transmit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Helmut64 | 0:c43b6919ae15 | 1 | #ifndef __SX1276PINGPONG_H__ |
Helmut64 | 0:c43b6919ae15 | 2 | #define __SX1276PINGPONG_H__ |
Helmut64 | 0:c43b6919ae15 | 3 | |
wardm | 12:02d779e8c4f6 | 4 | int Transmitter(void); |
wardm | 12:02d779e8c4f6 | 5 | |
Helmut64 | 0:c43b6919ae15 | 6 | /* |
Helmut64 | 0:c43b6919ae15 | 7 | * Callback functions prototypes |
Helmut64 | 0:c43b6919ae15 | 8 | */ |
Helmut64 | 0:c43b6919ae15 | 9 | /*! |
Helmut64 | 0:c43b6919ae15 | 10 | * @brief Function to be executed on Radio Tx Done event |
Helmut64 | 0:c43b6919ae15 | 11 | */ |
bcostm | 11:9d7409ebfa57 | 12 | void OnTxDone(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:c43b6919ae15 | 13 | |
Helmut64 | 0:c43b6919ae15 | 14 | /*! |
Helmut64 | 0:c43b6919ae15 | 15 | * @brief Function to be executed on Radio Rx Done event |
Helmut64 | 0:c43b6919ae15 | 16 | */ |
bcostm | 11:9d7409ebfa57 | 17 | void OnRxDone(void *radio, void *userThisPtr, void *userData, uint8_t *payload, uint16_t size, int16_t rssi, int8_t snr ); |
Helmut64 | 0:c43b6919ae15 | 18 | |
Helmut64 | 0:c43b6919ae15 | 19 | /*! |
Helmut64 | 0:c43b6919ae15 | 20 | * @brief Function executed on Radio Tx Timeout event |
Helmut64 | 0:c43b6919ae15 | 21 | */ |
bcostm | 11:9d7409ebfa57 | 22 | void OnTxTimeout(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:c43b6919ae15 | 23 | |
Helmut64 | 0:c43b6919ae15 | 24 | /*! |
Helmut64 | 0:c43b6919ae15 | 25 | * @brief Function executed on Radio Rx Timeout event |
Helmut64 | 0:c43b6919ae15 | 26 | */ |
bcostm | 11:9d7409ebfa57 | 27 | void OnRxTimeout(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:c43b6919ae15 | 28 | |
Helmut64 | 0:c43b6919ae15 | 29 | /*! |
Helmut64 | 0:c43b6919ae15 | 30 | * @brief Function executed on Radio Rx Error event |
Helmut64 | 0:c43b6919ae15 | 31 | */ |
bcostm | 11:9d7409ebfa57 | 32 | void OnRxError(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:c43b6919ae15 | 33 | |
Helmut64 | 0:c43b6919ae15 | 34 | /*! |
Helmut64 | 0:c43b6919ae15 | 35 | * @brief Function executed on Radio Fhss Change Channel event |
Helmut64 | 0:c43b6919ae15 | 36 | */ |
bcostm | 11:9d7409ebfa57 | 37 | void OnFhssChangeChannel(void *radio, void *userThisPtr, void *userData, uint8_t channelIndex); |
Helmut64 | 0:c43b6919ae15 | 38 | |
Helmut64 | 0:c43b6919ae15 | 39 | /*! |
Helmut64 | 0:c43b6919ae15 | 40 | * @brief Function executed on CAD Done event |
Helmut64 | 0:c43b6919ae15 | 41 | */ |
bcostm | 11:9d7409ebfa57 | 42 | void OnCadDone(void *radio, void *userThisPtr, void *userData); |
Helmut64 | 0:c43b6919ae15 | 43 | |
bcostm | 11:9d7409ebfa57 | 44 | #endif // __MAIN_H__ |