5d
来自Jack's Lab
(版本间的差异)
(→Disable GPRS) |
|||
第58行: | 第58行: | ||
16 appmd5 28a011de19210e | 16 appmd5 28a011de19210e | ||
</source> | </source> | ||
+ | |||
+ | <br><br> | ||
+ | |||
+ | == Setup RTC == | ||
+ | |||
+ | <source lang=bash> | ||
+ | [root@mcuzone root]#date -s 2017.01.05-18:38:48 | ||
+ | Thu Jan 5 18:38:48 CST 2017 | ||
+ | [root@mcuzone root]#hwclock -w | ||
+ | [root@mcuzone root]#hwclock -r | ||
+ | Thu Jan 5 18:38:56 2017 0.000000 seconds | ||
+ | </source> | ||
+ | |||
+ | <br><br> |
2017年1月5日 (四) 18:40的版本
1 First Tuning
1.1 Disable GPRS
net_type 网络类型:
- 0 - GPRS
- 1 - RS485 等
[root@mcuzone root]#cd /app [root@mcuzone /app]#sqlite3 ./gatherdb.db SQLite version 3.10.0 2016-01-06 11:01:07 Enter ".help" for usage hints. sqlite> select * from t_base_define; sqlite> .head on sqlite> .mode column sqlite> select * from t_base_define; f_id f_config_name f_config_value ---------- -------------- -------------- 1 primary_server 122.5.18.174 2 primary_dns 219.146.0.130 3 primary_port 9011 4 second_server 219.146.0.130 5 second_dns 219.146.0.130 6 second_port 9027 7 gateway_id 37060001 8 net_type 0 9 md5_key 863CA654 10 aes_key d41d8cd98f00b2 11 collect_mode 0 12 collect_cycle 15 13 report_mode 0 14 beat_cycle 2 15 svr_num 0001 16 appmd5 28a011de19210e sqlite> update t_base_define set f_config_value='1' where f_config_name='net_type'; sqlite> sqlite> select * from t_base_define; f_id f_config_name f_config_value ---------- -------------- -------------- 1 primary_server 122.5.18.174 2 primary_dns 219.146.0.130 3 primary_port 9011 4 second_server 219.146.0.130 5 second_dns 219.146.0.130 6 second_port 9027 7 gateway_id 37060001 8 net_type 15 9 md5_key 863CA654 10 aes_key d41d8cd98f00b2 11 collect_mode 0 12 collect_cycle 1 13 report_mode 0 14 beat_cycle 2 15 svr_num 0001 16 appmd5 28a011de19210e
2 Setup RTC
[root@mcuzone root]#date -s 2017.01.05-18:38:48 Thu Jan 5 18:38:48 CST 2017 [root@mcuzone root]#hwclock -w [root@mcuzone root]#hwclock -r Thu Jan 5 18:38:56 2017 0.000000 seconds