微型机与应用
微型機與應用
미형궤여응용
MICROCOMPUTER & ITS APPLICATIONS
2012年
9期
9-11
,共3页
无线传感器网络%VC6.0%串口通信%CSerialPort类%数据帧
無線傳感器網絡%VC6.0%串口通信%CSerialPort類%數據幀
무선전감기망락%VC6.0%천구통신%CSerialPort류%수거정
WSN%VC6.0%serial port communication%CSerialPort class%data frame
介绍了以VC6.0为开发平台,用无线单片机CC2530进行多节点多参数的低功耗数据采集系统。下位机设计了可灵活扩展的无线数据帧,并设计了采集控制命令,实现广播模式和单目标地址控制两种功能。上位机利用CSerialPort类对串口数据选择性接收,提高了效率和稳定性,可保存和识别随机分配的节点地址。并改进了CSerialPort类可实现十六进制数的发送。
介紹瞭以VC6.0為開髮平檯,用無線單片機CC2530進行多節點多參數的低功耗數據採集繫統。下位機設計瞭可靈活擴展的無線數據幀,併設計瞭採集控製命令,實現廣播模式和單目標地阯控製兩種功能。上位機利用CSerialPort類對串口數據選擇性接收,提高瞭效率和穩定性,可保存和識彆隨機分配的節點地阯。併改進瞭CSerialPort類可實現十六進製數的髮送。
개소료이VC6.0위개발평태,용무선단편궤CC2530진행다절점다삼수적저공모수거채집계통。하위궤설계료가령활확전적무선수거정,병설계료채집공제명령,실현엄파모식화단목표지지공제량충공능。상위궤이용CSerialPort류대천구수거선택성접수,제고료효솔화은정성,가보존화식별수궤분배적절점지지。병개진료CSerialPort류가실현십륙진제수적발송。
Based on VC6.0 platform and CC2530 wireless microcontroller with low cost, a data acquisition and display system for multiple node and parameter is designed. Flexible and extensible wireless data frame is designed on hypogynous machine as well as control command of acquisition, which realizes broadcast mode and single target address control two functions. Serial port data selective read by CSerialPort class is realized on the PC management platform, efficiency and stability is improved, random distribution node address can also be saved and identified, and CSerialPort class is improved to send hex data.