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