:::
PM2.5空污監測器實作

回學校後不能上傳資料

discuss pic 2016-08-04 14:41:19
老師您好,我是參加5/13第1梯回娘家7/22
回到學校後設定卻不能傳上去
出現以下錯誤訊息
Arduino:1.6.9 (Windows 7), 板子:"Arduino/Genuino Uno"

C:\Users\MD-500\Downloads\PM250722\pm2.5new\Arduino蝔?K\1050513\LED4_Buzzer_DHT22_ESP8266_Relay_air1_sample\LED4_Buzzer_DHT22_ESP8266_Relay_air1_sample.ino:2:17: fatal error: DHT.h: No such file or directory

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

監控出現
SEND: AT
RECEIVED: OK after AT Command
Data ready to sent!
Send AT+CWMODE=1
SEND: AT+CWJAP="TN-Computer-bridge","computer123"
Waiting for 15 second to connect network .....
SEND: AT+ CIPMUX=0
Raw Signal Value (0-1023): 128.00 - Voltage: 0.63 - Dust Density: 7.14 ug/m3
SEND: AT+CIPSTART="TCP","pm25.tn.edu.tw",80
SEND: AT+CIPSEND=93
SEND: AT+CIPCLOSE
RECEIVED: Error
Exit2

是否哪裡出錯
明明就已經改學校ssid與密碼了

discuss pic 2016-08-04 18:21:37
錯誤輸出有寫出問題原因:DHT.h: No such file or directory
DHT 程式庫找不到(沒裝)!
安裝方法老師上課講義有寫喔!
PS:很多人回家編譯後,應該都卡在這兒!
discuss pic 2016-08-04 22:29:05
Sorry,沒有再通知,已經有增加 3-3 回校安裝步驟,畫面如下,請參考,若還有其他問題還請告知,感謝。

discuss pic 2016-08-08 12:15:19
tea
老師您好
回校後已有連上學校wifi但是無法接收資料...不知是否哪裡設定錯誤?
SEND: AT
RECEIVED: OK after AT Command
Data ready to sent!
Send AT+CWMODE=1
SEND: AT+CWJAP=有出現學校wifi名稱
Waiting for 15 second to connect network .....
SEND: AT+ CIPMUX=0
SEND: AT+CIPSTART="TCP","pm25.tn.edu.tw",80
SEND: AT+CIPSEND=94
SEND: AT+CIPCLOSE
RECEIVED: Error
Exit2


discuss pic 2016-08-08 13:36:09
鄭老師好:
我是8月上課的學員,回學校後一直出現如上信息,無法上傳,可否幫我查一下下??
編譯上傳訊息:
D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino:234:14: warning: multi-character character constant [-Wmultichar]

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino: In function 'boolean connectWiFi()':

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino:67:34: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino: In function 'void updateSensor(float)':

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino:117:32: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino:130:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino:134:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino: In function 'void setup()':

D:\????雯蝞﹦???PM2.5\Arduino蝔?1050722\csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps\LED4_Buzzer_DHT22_ESP8266_Relay_air2_csps.ino:166:26: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]


草稿碼使用了 13,898 bytes (43%) 的程式儲存空間。上限為 32,256 bytes。
全域變數使用了 816 bytes (39%) 的動態記憶體,剩餘 1,232 bytes 給區域變數。上限為 2,048 bytes 。

序列埠監控信息:

SEND: AT

RECEIVED: OK after AT Command

Data ready to sent!

Send AT+CWMODE=1

SEND: AT+CWJAP="@@@@@@","@@@@@@@@@"

Waiting for 15 second to connect network .....

SEND: AT+ CIPMUX=0

SEND: AT+CIPSTART="TCP","pm25.tn.edu.tw",80

SEND: AT+CIPSEND=93

SEND: AT+CIPCLOSE

RECEIVED: Error

Exit2


discuss pic 2016-08-08 16:28:28
弘毅老師好
剛剛跟你通完電話,如果真的都沒改就好了,那一定要記得,中元普渡要拜一下喔!呵呵
discuss pic 2016-09-09 21:05:29
老師您好
回校後已有連上學校wifi但是最近卻開始無法接收資料...不知是否哪裡設定錯誤?

SEND: AT
fale
SEND: AT+CIPSTART="TCP","pm25.tn.edu.tw",80
SEND: AT+CIPSEND=95
SEND: AT+CIPCLOSE
RECEIVED: Error
Exit2





SEND: AT
RECEIVED: OK after AT Command
Data ready to sent!
Send AT+CWMODE=1
SEND: AT+CWJAP=有出現學校wifi名稱
Waiting for 15 second to connect network .....
SEND: AT+ CIPMUX=0
SEND: AT+CIPSTART="TCP","pm25.tn.edu.tw",80
SEND: AT+CIPSEND=94
SEND: AT+CIPCLOSE
RECEIVED: Error
Exit2
discuss pic 2016-09-12 15:49:13
目前發現只要一開始就出現fale的情況,如下
SEND: AT
fale
....
....
不管後面的錯誤是甚麼,應該就是wifi相關的接線,接觸不良,導致送AT給esp8266,得不到OK的回應,檢查一下接線,甚至用小起子壓一下杜邦母頭旁,露出金屬的方形小孔,讓接頭更緊,請試試看。
discuss pic 2016-09-13 08:16:23
佩純老師好
    不好意思,漏回應你的訊息,看訊息,設備都有正常,我有發布新的程式,看一下公佈欄說明更新一下!如果還是不行,就麻煩拿到中心,我們一起來檢測看看。
discuss pic 2016-09-14 09:09:54
tea
盛南老師好
設備前陣子傳送資料正常,就也沒去動它,但9/6之後傳送又不正常,感謝您的回覆,我再試試,如果不行再麻煩您了,謝謝。
discuss pic 2016-09-29 09:52:49
盛南老師,求救:幾天前開始無法傳資料了,序列埠監控視窗裡只有框框和XX。
discuss pic 2016-10-31 19:46:10
鮑率要改成2400,看有甚麼訊息,在傳上來,或乾脆有來中心的時候再來找我喔!

搜尋

錯誤訊息
未知: Array and string offset access syntax with curly braces is deprecated 在檔案中的第 /include/functions.encoding.php 列 40
未知: Array and string offset access syntax with curly braces is deprecated 在檔案中的第 /include/functions.encoding.php 列 40
未知: Array and string offset access syntax with curly braces is deprecated 在檔案中的第 /include/functions.encoding.php 列 73
未知: Function get_magic_quotes_gpc() is deprecated 在檔案中的第 /class/libraries/vendor/xoops/xmf/src/Request.php 列 119
未知: Function get_magic_quotes_gpc() is deprecated 在檔案中的第 /class/libraries/vendor/xoops/xmf/src/Request.php 列 119
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 57
通知: Undefined index: op 在檔案中的第 /modules/tad_discuss/function.php 列 63
已棄用
資料庫語法
0.004084 - SET SQL_BIG_SELECTS = 1
0.018227 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '1') ORDER BY conf_order ASC
0.008575 - SELECT sess_data, sess_ip FROM session WHERE sess_id = '2dbpiju6tgeegkhph9ir40m5m1'
0.008200 - SELECT * FROM modules WHERE dirname = 'tad_discuss'
0.022410 - SELECT COUNT(*) FROM group_permission WHERE (`gperm_modid` = '1' AND (`gperm_groupid` = '3') AND `gperm_name` = 'module_read' AND `gperm_itemid` = '13')
0.006971 - SELECT * FROM config WHERE (`conf_modid` = '13') ORDER BY conf_order ASC
0.014626 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '5') ORDER BY conf_order ASC
0.008532 - SELECT COUNT(*) FROM banner
0.003693 - SELECT * FROM banner LIMIT 1, 1
0.010700 - UPDATE banner SET impmade = 1270721 WHERE bid = 2
0.003606 - SELECT * FROM config WHERE (`conf_modid` = '0' AND `conf_catid` = '3') ORDER BY conf_order ASC
0.007117 - SELECT DISTINCT gperm_itemid FROM group_permission WHERE gperm_name = 'block_read' AND gperm_modid = 1 AND gperm_groupid IN (3)
0.001743 - SELECT b.* FROM newblocks b, block_module_link m WHERE m.block_id=b.bid AND b.isactive=1 AND b.visible=1 AND m.module_id IN (0,13) AND b.bid IN (1,2,3,4,5,6,7,8,9,10,11,18,15,16,20,19,58,60,61,73,72,74,71,76,75,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,111,109,110,112,113,114,115,116,117,118,119,120,121,122,123) ORDER BY b.weight, m.block_id
0.010623 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'system_block_search.tpl') ORDER BY tpl_refid
0.003064 - SELECT * FROM modules WHERE dirname = 'tadtools'
0.000873 - SELECT * FROM config WHERE (`conf_modid` = '4') ORDER BY conf_order ASC
0.000821 - select * from tad_discuss where DiscussID='18'
0.008918 - SELECT COUNT(*) FROM group_permission WHERE (`gperm_modid` = '13' AND (`gperm_groupid` = '3') AND `gperm_name` = 'forum_read' AND `gperm_itemid` = '1')
0.007761 - update tad_discuss set `Counter`=`Counter`+1 where `DiscussID`='18'
0.002888 - select * from `tad_discuss_board` where `BoardID` = '1'
0.007981 - select * from tad_discuss where DiscussID='18' or ReDiscussID='18' order by ReDiscussID , DiscussDate
0.006335 - select * from tad_discuss where DiscussID='18' or ReDiscussID='18' order by ReDiscussID , DiscussDate LIMIT 0, 20
0.003001 - SELECT * FROM users WHERE uid = '14'
0.004423 - SELECT * FROM smiles
0.005950 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='18' order by sort
0.000827 - SELECT * FROM users WHERE uid = '5'
0.001707 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='19' order by sort
0.001209 - SELECT * FROM users WHERE uid = '2'
0.003035 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='21' order by sort
0.003145 - SELECT * FROM users WHERE uid = '16'
0.002817 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='39' order by sort
0.003685 - SELECT * FROM users WHERE uid = '17'
0.003708 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='40' order by sort
0.003158 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='41' order by sort
0.004303 - SELECT * FROM users WHERE uid = '11'
0.002060 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='56' order by sort
0.004060 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='57' order by sort
0.006318 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='58' order by sort
0.000849 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='59' order by sort
0.000759 - SELECT * FROM users WHERE uid = '21'
0.000383 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='61' order by sort
0.008836 - select * from `tad_discuss_files_center` where `col_name`='DiscussID' and `col_sn`='65' order by sort
0.006639 - SELECT COUNT(*) FROM group_permission WHERE (`gperm_modid` = '13' AND (`gperm_groupid` = '3') AND `gperm_name` = 'forum_post' AND `gperm_itemid` = '1')
0.007217 - select `tt_theme`,`tt_use_bootstrap`,`tt_bootstrap_color`,`tt_theme_kind` from `tadtools_setup` where `tt_theme`='school2015'
0.005970 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_discuss_discuss.tpl') ORDER BY tpl_refid
0.007406 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'tad_discuss_bootstrap.tpl') ORDER BY tpl_refid
0.007617 - SELECT f.*, s.tpl_source FROM tplfile f LEFT JOIN tplsource s ON s.tpl_id=f.tpl_id WHERE (`tpl_tplset` = 'default' AND `tpl_file` = 'system_notification_select.tpl') ORDER BY tpl_refid
0.006541 - SELECT * FROM modules WHERE dirname = 'tad_themes'
0.001518 - SELECT * FROM config WHERE (`conf_modid` = '3') ORDER BY conf_order ASC
0.000669 - select `tt_bootstrap_color` from tadtools_setup where `tt_theme`='school2015'
0.000348 - select * from tad_themes where `theme_name`='school2015'
0.000469 - select conf_value from config where conf_title ='_MD_AM_DEBUGMODE'
0.009936 - select * from tad_themes_blocks where `theme_id`='7'
0.004940 - select mid from modules where dirname='tad_themes'
0.000895 - desc `tad_themes_data_center` `sort`
0.000144 - select `col_sn`,`data_name`,`data_sort`, `data_value` from `tad_themes_data_center` where `mid`= '3' and `col_name`='theme_id' and `col_sn`='7' order by `sort` , `data_sort`
0.000204 - select conf_value from config where conf_name ='allow_register'
0.001208 - select `mid`, `name`, `dirname` from modules where isactive='1' and hasmain='1' and weight!=0 order by weight
0.000516 - SELECT * FROM modules WHERE dirname = 'tad_blocks'
0.000610 - select conf_value from config where conf_title ='_MD_AM_DEBUGMODE'
0.000206 - select count(*) from priv_msgs where `to_userid` ='0' and `read_msg`=0 group by `to_userid`
0.001826 - select `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group` from tad_themes_menu where of_level='0' and status='1' order by position
0.004055 - select `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group` from tad_themes_menu where of_level='11' and status='1' order by position
0.000335 - select `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group` from tad_themes_menu where of_level='14' and status='1' order by position
0.000150 - select `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group` from tad_themes_menu where of_level='15' and status='1' order by position
0.000348 - select `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group` from tad_themes_menu where of_level='17' and status='1' order by position
0.000466 - select `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group` from tad_themes_menu where of_level='16' and status='1' order by position
0.000352 - select `menuid`, `itemname`, `itemurl`, `target`, `icon`, `link_cate_name`, `link_cate_sn`, `read_group` from tad_themes_menu where of_level='18' and status='1' order by position
0.000568 - select a.* from tad_themes_files_center as a left join tad_themes as b on a.col_sn=b.theme_id where a.`col_name`='slide' and b.`theme_name`='school2015'
0.002193 - SELECT * FROM modules WHERE dirname = 'tad_login'
0.008646 - SELECT * FROM config WHERE (`conf_modid` = '14') ORDER BY conf_order ASC
總計: 71
區塊
搜尋: 沒有快取
總計: 1
額外資訊
包含檔案: 216 檔案
使用記憶體: 7234664 bytes
計時
XOOPS 使用 0.895 秒來載入。
XOOPS Boot 使用 0.321 秒來載入。
Module init 使用 0.034 秒來載入。
XOOPS output init 使用 0.235 秒來載入。
Module display 使用 0.182 秒來載入。
Page rendering 使用 0.121 秒來載入。