Andrew Boyson
/
iot
Backing up an unused program in case of future need
explanation.txt@8:45a0205a298f, 2018-12-06 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Dec 06 11:40:19 2018 +0000
- Revision:
- 8:45a0205a298f
- Parent:
- 6:be97d38e0b01
Backing up
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 3:accba7e07a0d | 1 | 1 9600 |
andrewboyson | 3:accba7e07a0d | 2 | 1 O 14400 |
andrewboyson | 3:accba7e07a0d | 3 | 2 19200 |
andrewboyson | 3:accba7e07a0d | 4 | 2 O 28800 |
andrewboyson | 3:accba7e07a0d | 5 | 4 38400 |
andrewboyson | 3:accba7e07a0d | 6 | 4 O 57600 |
andrewboyson | 3:accba7e07a0d | 7 | 8 74880 |
andrewboyson | 3:accba7e07a0d | 8 | 8 O 115200 |
andrewboyson | 3:accba7e07a0d | 9 | 16 153600 |
andrewboyson | 3:accba7e07a0d | 10 | 16 O 230400 |
andrewboyson | 3:accba7e07a0d | 11 | 32 307200 |
andrewboyson | 3:accba7e07a0d | 12 | 32 O 460800 |
andrewboyson | 3:accba7e07a0d | 13 | 64 614400 |
andrewboyson | 3:accba7e07a0d | 14 | 64 O 921600 |
andrewboyson | 3:accba7e07a0d | 15 | |
andrewboyson | 3:accba7e07a0d | 16 | |
andrewboyson | 0:09f915e6f9f6 | 17 | main module |
andrewboyson | 0:09f915e6f9f6 | 18 | =========== |
andrewboyson | 0:09f915e6f9f6 | 19 | Calls each module's init routines then loops through each module's main routines. |
andrewboyson | 0:09f915e6f9f6 | 20 | |
andrewboyson | 3:accba7e07a0d | 21 | uart module |
andrewboyson | 3:accba7e07a0d | 22 | =========== |
andrewboyson | 3:accba7e07a0d | 23 | Queues characters received through an interrupt for retrieval at leisure. |
andrewboyson | 3:accba7e07a0d | 24 | Sends characters queued for transmission every scan |
andrewboyson | 3:accba7e07a0d | 25 | |
andrewboyson | 0:09f915e6f9f6 | 26 | esp module |
andrewboyson | 0:09f915e6f9f6 | 27 | ========== |
andrewboyson | 0:09f915e6f9f6 | 28 | Raw character talking to the ESP 8266. |
andrewboyson | 3:accba7e07a0d | 29 | Sends strings and data to the ESP. |
andrewboyson | 0:09f915e6f9f6 | 30 | Receives characters from the ESP and treats the following cases: |
andrewboyson | 0:09f915e6f9f6 | 31 | '\n' -> sends a completed line |
andrewboyson | 0:09f915e6f9f6 | 32 | '+IPD,id,len:' -> reads in length bytes to the relevant id's input buffer |
andrewboyson | 0:09f915e6f9f6 | 33 | '>' -> sends the data to the id specified |
andrewboyson | 0:09f915e6f9f6 | 34 | otherwise -> adds to the current line |
andrewboyson | 0:09f915e6f9f6 | 35 | |
andrewboyson | 0:09f915e6f9f6 | 36 | at module |
andrewboyson | 0:09f915e6f9f6 | 37 | ========= |
andrewboyson | 0:09f915e6f9f6 | 38 | Sends commands |
andrewboyson | 0:09f915e6f9f6 | 39 | Depends on the esp module. |
andrewboyson | 0:09f915e6f9f6 | 40 | |
andrewboyson | 0:09f915e6f9f6 | 41 | wifi module |
andrewboyson | 0:09f915e6f9f6 | 42 | =========== |
andrewboyson | 0:09f915e6f9f6 | 43 | Starts the esp module; doing the auto baud rate detection and logging in if needed. |
andrewboyson | 0:09f915e6f9f6 | 44 | Depends on the at module. |
andrewboyson | 0:09f915e6f9f6 | 45 | |
andrewboyson | 0:09f915e6f9f6 | 46 | ntp module |
andrewboyson | 0:09f915e6f9f6 | 47 | ========== |
andrewboyson | 0:09f915e6f9f6 | 48 | Sends periodic time requests. |
andrewboyson | 0:09f915e6f9f6 | 49 | Handles received time responses and sets the system time. |
andrewboyson | 0:09f915e6f9f6 | 50 | Depends on the at module. |
andrewboyson | 0:09f915e6f9f6 | 51 | |
andrewboyson | 6:be97d38e0b01 | 52 | 1-wire |
andrewboyson | 6:be97d38e0b01 | 53 | ====== |
andrewboyson | 6:be97d38e0b01 | 54 | Measured: |
andrewboyson | 6:be97d38e0b01 | 55 | |
andrewboyson | 6:be97d38e0b01 | 56 | 480uS reset |
andrewboyson | 6:be97d38e0b01 | 57 | 30uS presence pulse starts |
andrewboyson | 6:be97d38e0b01 | 58 | 120uS presence pulse length |
andrewboyson | 6:be97d38e0b01 | 59 | |
andrewboyson | 6:be97d38e0b01 | 60 | 10uS write 1 |
andrewboyson | 6:be97d38e0b01 | 61 | 70uS write 0 |
andrewboyson | 6:be97d38e0b01 | 62 | 240uS between writes |
andrewboyson | 6:be97d38e0b01 | 63 | |
andrewboyson | 6:be97d38e0b01 | 64 | 10uS read high |
andrewboyson | 6:be97d38e0b01 | 65 | 30uS read low |
andrewboyson | 6:be97d38e0b01 | 66 | |
andrewboyson | 0:09f915e6f9f6 | 67 | server module |
andrewboyson | 0:09f915e6f9f6 | 68 | ============= |
andrewboyson | 0:09f915e6f9f6 | 69 | Responds to http requests |
andrewboyson | 0:09f915e6f9f6 | 70 | Depends on the at module. |
andrewboyson | 0:09f915e6f9f6 | 71 | |
andrewboyson | 0:09f915e6f9f6 | 72 | support modules |
andrewboyson | 0:09f915e6f9f6 | 73 | =============== |
andrewboyson | 0:09f915e6f9f6 | 74 | io - inputs and outputs |
andrewboyson | 0:09f915e6f9f6 | 75 | log - provides logging |
andrewboyson | 0:09f915e6f9f6 | 76 | time - maintains the system time |