Skip to content

Commit f266f8a

Browse files
committedMay 6, 2016
Update SDK to 1.5.3
1 parent d3434d3 commit f266f8a

27 files changed

+851
-685
lines changed
 

‎tools/sdk/changelog.txt

+38
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
ESP8266_NONOS_SDK_V1.5.3_16_04_16 Release Note
2+
----------------------------------------------
3+
Optimization:
4+
1. Supported ISSI flash.
5+
2. SmartConfig updated to version 2.5.4, solved the issue that AirKiss may fail in certain cases.
6+
3. libphy.a updated to version 9281.
7+
4. AT updated to version 1.00.
8+
5. Added lwip_open_src_template_proj in ESP8266_NONOS_SDK\examples for open source LWIP.
9+
6. Added peripheral_test in ESP8266_NONOS_SDK\examples.
10+
7. Moved driver_lib folder to be as ESP8266_NONOS_SDK\driver_lib.
11+
8. Added SPI driver, refer to ESP8266_NONOS_SDK\driver_lib\driver\spi_interface.c.
12+
9. Optimized espconn.
13+
10. Optimized DNS function.
14+
11. Optimized mDNS function.
15+
12. Optimized the disconnection when ESP8266 runs as TCP server.
16+
13. Optimized DHCP server: after DHCP release, it will assign the first unused IP to next DHCP client.
17+
14. Removed the limitation of freedom sending unencrypted beacon/probe req/probe resp.
18+
15. Resolved the issue that wifi_station_get_connect_status returned incorrect status when some router restarted.
19+
16. Revised the SSL server crash issue.
20+
21+
Added APIs:
22+
1. WPA2-Enterprise APIs
23+
wifi_station_set_username : set user name for WPA2-Enterprise
24+
wifi_station_clear_username : clear user name for WPA2-Enterprise
25+
2. AT APIs
26+
at_set_escape_character : set escape character for AT commands
27+
28+
AT_V1.0 Release Note:
29+
Optimization:
30+
1. Revised the flash map of AT firmware in no bootmode, please download the bin files according to at\readme.
31+
2. Revised the problem that AT+PING may fail when using some special router.
32+
3. Optimized AT firmware when receiving TCP data with UART flow control.
33+
34+
Added AT commands
35+
1. AT+CIPDOMAIN: for DNS function.
36+
37+
38+
139
ESP8266_NONOS_SDK_V1.5.2_16_01_29 Release Note
240
----------------------------------------------
341

‎tools/sdk/include/at_custom.h

+25
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ typedef void (*at_custom_uart_rx_intr)(uint8* data,int32 len);
3737

3838
typedef void (*at_custom_response_func_type)(const char *str);
3939

40+
typedef void (*at_fake_uart_tx_func_type)(const uint8*data,uint32 length);
41+
4042
extern uint8 at_customLinkMax;
4143

4244
/**
@@ -140,4 +142,27 @@ uint32 at_get_version(void);
140142
* @retval None
141143
*/
142144
void at_register_uart_rx_intr(at_custom_uart_rx_intr rx_func);
145+
/**
146+
* @brief notify at module that has receive data
147+
* @param data: data buffer.
148+
* @param length: data length
149+
* @retval data len,if ok len == length
150+
*/
151+
uint32 at_fake_uart_rx(uint8* data,uint32 length);
152+
153+
/**
154+
* @brief enable fake uart,and register fake uart tx
155+
* @param enable: enable fake uart.
156+
* @param at_fake_uart_tx_func:
157+
* @retval data len,if ok len == length
158+
*/
159+
bool at_fake_uart_enable(bool enable,at_fake_uart_tx_func_type at_fake_uart_tx_func);
160+
161+
/**
162+
* @brief set at escape character
163+
* @param ch: escape character.
164+
* @retval TRUE,if set ok,otherwize FALSE.
165+
*/
166+
bool at_set_escape_character(uint8 ch);
167+
143168
#endif

‎tools/sdk/include/user_interface.h

+3
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,9 @@ sleep_type_t wifi_get_sleep_type(void);
356356
void wifi_fpm_open(void);
357357
void wifi_fpm_close(void);
358358
void wifi_fpm_do_wakeup(void);
359+
typedef void (*fpm_wakeup_cb)(void);
360+
void wifi_fpm_set_wakeup_cb(fpm_wakeup_cb cb);
361+
359362
sint8 wifi_fpm_do_sleep(uint32 sleep_time_in_us);
360363
void wifi_fpm_set_sleep_type(sleep_type_t type);
361364
sleep_type_t wifi_fpm_get_sleep_type(void);

‎tools/sdk/lib/libat.a

4.39 KB
Binary file not shown.

‎tools/sdk/lib/liblwip.a

3.63 KB
Binary file not shown.

‎tools/sdk/lib/libmain.a

3.4 KB
Binary file not shown.

‎tools/sdk/lib/libnet80211.a

40 Bytes
Binary file not shown.

‎tools/sdk/lib/libphy.a

7.76 KB
Binary file not shown.

‎tools/sdk/lib/libpp.a

0 Bytes
Binary file not shown.

‎tools/sdk/lib/libsmartconfig.a

-8.66 KB
Binary file not shown.

‎tools/sdk/lib/libssl.a

52 Bytes
Binary file not shown.

‎tools/sdk/lib/libupgrade.a

-444 Bytes
Binary file not shown.

‎tools/sdk/lwip/include/lwip/app/dhcpserver.h

+13
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,23 @@ enum dhcps_offer_option{
3535
};
3636
#endif
3737

38+
typedef enum {
39+
DHCPS_TYPE_DYNAMIC,
40+
DHCPS_TYPE_STATIC
41+
} dhcps_type_t;
42+
43+
typedef enum {
44+
DHCPS_STATE_ONLINE,
45+
DHCPS_STATE_OFFLINE
46+
} dhcps_state_t;
47+
3848
struct dhcps_pool{
3949
struct ip_addr ip;
4050
uint8 mac[6];
4151
uint32 lease_timer;
52+
dhcps_type_t type;
53+
dhcps_state_t state;
54+
4255
};
4356

4457
typedef struct _list_node{

‎tools/sdk/lwip/include/lwip/app/espconn.h

+9
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,14 @@ enum espconn_level{
127127
ESPCONN_KEEPCNT
128128
};
129129

130+
enum espconn_mode{
131+
ESPCONN_NOMODE,
132+
ESPCONN_TCPSERVER_MODE,
133+
ESPCONN_TCPCLIENT_MODE,
134+
ESPCONN_UDP_MODE,
135+
ESPCONN_NUM_MODE
136+
};
137+
130138
struct espconn_packet{
131139
uint16 sent_length; /* sent length successful*/
132140
uint16 snd_buf_size; /* Available buffer size for sending */
@@ -169,6 +177,7 @@ typedef struct _espconn_msg{
169177
struct espconn *pespconn;
170178
comon_pkt pcommon;
171179
uint8 count_opt;
180+
uint8 espconn_mode;
172181
sint16_t hs_status; //the status of the handshake
173182
void *preverse;
174183
void *pssl;

‎tools/sdk/lwip/include/lwipopts.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@
569569
* IP_DEFAULT_TTL: Default value for Time-To-Live used by transport layers.
570570
*/
571571
#ifndef IP_DEFAULT_TTL
572-
#define IP_DEFAULT_TTL 255
572+
#define IP_DEFAULT_TTL 128
573573
#endif
574574

575575
/**

0 commit comments

Comments
 (0)