IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
| Source at commit 79c9e3c1341fb475ea45b802ac1e5a9d4ce62aa8 created 7 years 3 months ago. By Werner Almesberger, atusb/Makefile (f, b): swap mask and copper layers for better visualization | |
|---|---|
| 1 | Protocol specification |
| 2 | ====================== |
| 3 | |
| 4 | Messages |
| 5 | -------- |
| 6 | |
| 7 | <open TCP session> |
| 8 | +[greeting] |
| 9 | -message |
| 10 | |
| 11 | SPEC |
| 12 | +driver_spec |
| 13 | -message |
| 14 | |
| 15 | RESET |
| 16 | +[comment] |
| 17 | -message |
| 18 | |
| 19 | RESET_RF |
| 20 | +[comment] |
| 21 | -message |
| 22 | |
| 23 | TEST |
| 24 | +[comment] |
| 25 | -message |
| 26 | |
| 27 | SLP_TR 0|1 0|1 |
| 28 | +[comment] |
| 29 | -message |
| 30 | |
| 31 | CLKM freq_mhz |
| 32 | +[comment] |
| 33 | -message |
| 34 | |
| 35 | SET register value |
| 36 | +[comment] |
| 37 | -message |
| 38 | |
| 39 | GET register |
| 40 | +value |
| 41 | -message |
| 42 | |
| 43 | WRITE length raw-data |
| 44 | +[comment] |
| 45 | -message |
| 46 | |
| 47 | READ |
| 48 | +length raw-data |
| 49 | -message |
| 50 | |
| 51 | SETRAM addr value |
| 52 | +[comment] |
| 53 | -message |
| 54 | |
| 55 | GETRAM addr |
| 56 | +value |
| 57 | -message |
| 58 | |
| 59 | WAIT timeout_ms |
| 60 | +value |
| 61 | -message |
| 62 | |
| 63 | |
| 64 | Message format |
| 65 | -------------- |
| 66 | |
| 67 | Commands are not case-sensitive. Messages and comments consist of printable |
| 68 | ASCII characters and spaces. |
| 69 | |
| 70 | Whitespace separating words is always exactly one space character. |
| 71 | Lines end with a * single newline, without trailing whitespace. |
| 72 | Numeric values are in C notation, i.e., 64, 0100, and 0x40 would all |
| 73 | represent the same value. |
| 74 | |
| 75 | "raw-data" is a string of binary data of the indicated length. The other |
| 76 | formatting conventions remain valid after this string, i.e., it must be |
| 77 | followed by a single newline. |
| 78 | |
| 79 | The device is implicitly opened when establishing a TCP session. The |
| 80 | device is implicitly closed when closing the TCP session. |
| 81 | |
| 82 | |
| 83 | Asynchrous interrupt notification |
| 84 | --------------------------------- |
| 85 | |
| 86 | The WAIT command is not answered until an interrupt or until a timeout. |
| 87 | A timeout value of 0 means infinite. WAIT returns the value of the |
| 88 | IRQ_STATUS register. If WAIT times out before receiving an interrupt, |
| 89 | it returns 0. |
| 90 | |
