以微控制器為核心的停車(chē)場(chǎng)管理功能板設(shè)計(jì)
02H,52H,48H,30H,31H,32H,33H,34H,35H,36H,37H,38H,39H,03H,03H,25H,13H,
12H,30H,03H,29H,03H上位機(jī)接收到數(shù)據(jù)后,發(fā)送返回如下:
允許通過(guò)發(fā)送: 02H,52H,50H,03H,03H,25H,13H,12H,30H,01H,24H,03H
不允許通過(guò)發(fā)送: 02H,52H,51H,03H,03H,25H,13H,12H,30H,01H,25H,03H
要求單片機(jī)再次發(fā)送數(shù)據(jù)發(fā)送:02H,52H,52H,03H,03H,25H,13H,12H,30H,01H,26H,03H
上位機(jī)設(shè)置單片機(jī)時(shí)間:假設(shè)當(dāng)前時(shí)間為2003/5/13,早上9點(diǎn)42分20秒,上位機(jī)發(fā)送數(shù)據(jù):02H,52H,54H,03H,05H,13H,09H,42H,20H,01H,2EH,03H。單片機(jī)數(shù)據(jù)接收正確,返回狀態(tài):02H,52H,49H,48H,00H,E5H,03H ;單片機(jī)數(shù)據(jù)接收錯(cuò)誤,請(qǐng)求重發(fā):02H,52H,49H,49H,00H,E6H,03H。
上位機(jī)查詢單片機(jī)狀態(tài):假設(shè)當(dāng)前時(shí)間為2003/5/13 早上9點(diǎn)42分20秒,上位機(jī)發(fā)送數(shù)據(jù):02H,52H,53H,03H,05H,13H,09H,42H,20H,01H,2DH,03H;單片機(jī)返回狀態(tài):02H,52H,49H,48H,00H,E5H,03H(48H表示無(wú)故障,其它依次類(lèi)推)。上位機(jī)查詢單片機(jī)最后一次記錄的卡號(hào)和時(shí)間:假設(shè)當(dāng)前時(shí)間為:2003/5/13,早上9點(diǎn)42分20秒,單片機(jī)最后一次記錄處理卡號(hào)的時(shí)間是:2003/5/12,下午16點(diǎn)30分59秒,上位機(jī)發(fā)送數(shù)據(jù):02H,52H,52H,03H,05H,13H,09H,42H,20H,01H,2CH,03H;單片機(jī)返回:02H,52H,48H,30H,31H,32H,33H,34H,35H,36H,37H,38H,39H,03H,05H,13H,09H,
42H,20H,03H,2FH,03H。
四、結(jié)語(yǔ)
目前使用的停車(chē)場(chǎng)管理系統(tǒng)硬件復(fù)雜、體積較大,而且價(jià)格昂貴,出現(xiàn)故障時(shí)很難檢查和維護(hù)?;赑89c58核心的停車(chē)場(chǎng)管理功能板結(jié)構(gòu)簡(jiǎn)單,本文作者的創(chuàng)新點(diǎn)是在硬件和軟件設(shè)計(jì)過(guò)程中充分開(kāi)發(fā)了P89c58的功能,達(dá)到了最高的性價(jià)比;在軟件設(shè)計(jì)方面考慮較周到, 使通訊順暢、功能齊全、管理人性化,并且性能穩(wěn)定、監(jiān)測(cè)數(shù)據(jù)準(zhǔn)確。實(shí)際試驗(yàn)后效果很好。
評(píng)論