Webserver only w/o any other functions, single thread. Running on STM32F013+W5500
Dependencies: NTPClient W5500Interface Watchdog device_configuration eeprom_flash mbed-rpc-nucleo mbed-rtos mbed
Fork of F103-Serial-to-Ethernet by
README.md@39:083cf93121a9, 2016-06-14 (annotated)
- Committer:
- olympux
- Date:
- Tue Jun 14 21:25:04 2016 +0000
- Revision:
- 39:083cf93121a9
- Parent:
- 38:f8735ae519aa
- Child:
- 40:c966abbe2d62
New features; ; - Set current time; - Set on/off time for DigitalOut 0 and 1; - Auto on/off do0, do1
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
olympux | 36:dc6f079777bb | 1 | # Features |
olympux | 36:dc6f079777bb | 2 | |
olympux | 36:dc6f079777bb | 3 | Forked of F103_NNIO_RPC rev36:3055e4 |
olympux | 36:dc6f079777bb | 4 | Firmware for NNIO modules based on STM32F103RBT6 and W5500. |
olympux | 36:dc6f079777bb | 5 | |
olympux | 36:dc6f079777bb | 6 | - TCP/UDP server for controlling and monitoring using NNIO v2.0 and RPC protocols. |
olympux | 36:dc6f079777bb | 7 | - UDP server for discovering and configuring. |
olympux | 36:dc6f079777bb | 8 | |
olympux | 39:083cf93121a9 | 9 | # Usage |
olympux | 39:083cf93121a9 | 10 | |
olympux | 39:083cf93121a9 | 11 | ## Set RTC for timed Digital Ouputs |
olympux | 39:083cf93121a9 | 12 | |
olympux | 39:083cf93121a9 | 13 | Use TCP client or UDP to send configuration to the module: |
olympux | 39:083cf93121a9 | 14 | |
olympux | 39:083cf93121a9 | 15 | Set the current_time variable |
olympux | 39:083cf93121a9 | 16 | |
olympux | 39:083cf93121a9 | 17 | ``` |
olympux | 39:083cf93121a9 | 18 | /Time/write abcdef |
olympux | 39:083cf93121a9 | 19 | ``` |
olympux | 39:083cf93121a9 | 20 | |
olympux | 39:083cf93121a9 | 21 | where abcdef is time from 00:00am in seconds. |
olympux | 39:083cf93121a9 | 22 | |
olympux | 39:083cf93121a9 | 23 | Run RPC SetTime() function to execute set_current_time() to set current time to the current_time variable |
olympux | 39:083cf93121a9 | 24 | |
olympux | 39:083cf93121a9 | 25 | ``` |
olympux | 39:083cf93121a9 | 26 | /SetTime/run x |
olympux | 39:083cf93121a9 | 27 | ``` |
olympux | 39:083cf93121a9 | 28 | |
olympux | 39:083cf93121a9 | 29 | ## Set On/Off time for Digital Outputs |
olympux | 39:083cf93121a9 | 30 | |
olympux | 39:083cf93121a9 | 31 | ``` |
olympux | 39:083cf93121a9 | 32 | /do0OnTime/write abcdef |
olympux | 39:083cf93121a9 | 33 | /do0OffTime/write abcdef |
olympux | 39:083cf93121a9 | 34 | ``` |
olympux | 39:083cf93121a9 | 35 | |
olympux | 39:083cf93121a9 | 36 | where abcdef is time in seconds, start from 00:00am. Check it by sending to read |
olympux | 39:083cf93121a9 | 37 | |
olympux | 39:083cf93121a9 | 38 | ``` |
olympux | 39:083cf93121a9 | 39 | /do0OnTime/read x |
olympux | 39:083cf93121a9 | 40 | /do0OffTime/read x |
olympux | 39:083cf93121a9 | 41 | ``` |
olympux | 39:083cf93121a9 | 42 | |
olympux | 39:083cf93121a9 | 43 | |
olympux | 36:dc6f079777bb | 44 | # Releases |
olympux | 34:32299b819067 | 45 | |
olympux | 38:f8735ae519aa | 46 | ## v2.0.0 (04/06/2016) |
olympux | 38:f8735ae519aa | 47 | |
olympux | 38:f8735ae519aa | 48 | New features |
olympux | 38:f8735ae519aa | 49 | |
olympux | 38:f8735ae519aa | 50 | - RPCVariable |
olympux | 38:f8735ae519aa | 51 | - RPCFunction |
olympux | 36:dc6f079777bb | 52 | |
olympux | 36:dc6f079777bb | 53 | Improvements |
olympux | 34:32299b819067 | 54 | |
olympux | 36:dc6f079777bb | 55 | - Removed private mbed-rpc |
olympux | 36:dc6f079777bb | 56 | - Updated to latest mbed-rtos, NTPClient, Watchdog, W5500Interface and mbed. |
olympux | 36:dc6f079777bb | 57 | |
olympux | 37:94b847fea94e | 58 | Bug fixes |
olympux | 37:94b847fea94e | 59 | |
olympux | 37:94b847fea94e | 60 | - Had to compile from source as eeprom library failed when using the compiled mbed library |
olympux | 37:94b847fea94e | 61 | |
olympux | 36:dc6f079777bb | 62 | ## v1.1.1 (07/02/2015) |
olympux | 36:dc6f079777bb | 63 | |
olympux | 36:dc6f079777bb | 64 | Improvements |
olympux | 36:dc6f079777bb | 65 | |
olympux | 36:dc6f079777bb | 66 | - Updated RPC names |
olympux | 34:32299b819067 | 67 | |
olympux | 36:dc6f079777bb | 68 | ## v1.1 (24/01/2015) |
olympux | 36:dc6f079777bb | 69 | |
olympux | 36:dc6f079777bb | 70 | New features |
olympux | 36:dc6f079777bb | 71 | |
olympux | 36:dc6f079777bb | 72 | - Process RPC-style command in tcp client, similar to TCP/UDP server. |
olympux | 36:dc6f079777bb | 73 | |
olympux | 36:dc6f079777bb | 74 | Improvements |
olympux | 34:32299b819067 | 75 | |
olympux | 36:dc6f079777bb | 76 | - Control command is able to be processed by both TCP and UDP. |
olympux | 36:dc6f079777bb | 77 | - Use only one network output buffer for both RPC-style and NNIO protocols. |
olympux | 36:dc6f079777bb | 78 | - Automatically reset after setting network configuration or setting TCP server for auto update mode. |
olympux | 36:dc6f079777bb | 79 | - RPC object name is 16 chars max. |
olympux | 36:dc6f079777bb | 80 | |
olympux | 36:dc6f079777bb | 81 | |
olympux | 36:dc6f079777bb | 82 | ## v1.0 (06/01/2014) |
olympux | 36:dc6f079777bb | 83 | |
olympux | 36:dc6f079777bb | 84 | New features |
olympux | 36:dc6f079777bb | 85 | |
olympux | 36:dc6f079777bb | 86 | - RPC command replies as following object_name:reply_value |
olympux | 36:dc6f079777bb | 87 | |
olympux | 36:dc6f079777bb | 88 | Improvements |
olympux | 36:dc6f079777bb | 89 | |
olympux | 36:dc6f079777bb | 90 | - Modified: clean code in my_eeprom_funcs and main.cpp |
olympux | 34:32299b819067 | 91 | |
olympux | 36:dc6f079777bb | 92 | ## v0.1 (29/12/2014) |
olympux | 34:32299b819067 | 93 | |
olympux | 36:dc6f079777bb | 94 | Initial |
olympux | 34:32299b819067 | 95 | |
olympux | 36:dc6f079777bb | 96 | - Imported F103_NNIO rev27:22f289beceb8 |
olympux | 36:dc6f079777bb | 97 | - process_control_command() with return value. 0 if NNIO protocol or RPC protocol without reply; length of RPC outbut buffer; or -1 if RPC failed. |
olympux | 36:dc6f079777bb | 98 | - TCP server now checks to return data to client. |
olympux | 36:dc6f079777bb | 99 | - use device description instead of device config code in Discovery command. |
olympux | 36:dc6f079777bb | 100 | - working with ConfigurationTool v2.0 and AlarmMonitoring v1.1. |
olympux | 35:f5c98e2d6aad | 101 | |
olympux | 36:dc6f079777bb | 102 |