电子器件
電子器件
전자기건
JOURNAL OF ELECTRON DEVICES
2014年
1期
103-107
,共5页
单总线%Linux%嵌入式系统%分层%分离
單總線%Linux%嵌入式繫統%分層%分離
단총선%Linux%감입식계통%분층%분리
the 1-Wwire bus%Linux%embedded system%stratification%separation
单总线是一些传感器和低速器件与主机通信常用一种总线协议,如智能温度传感器DS18B20,A/D转换芯片等。随着物联网的发展,这些传感器的应用将越来越广泛,而这些接口没有与内核紧密联系,内核无法进行统一管理,稳定性和可靠性无法得到保证。在符合Linux内核设备模型[2]的前提下,实现一个稳定的单总线接口,将整个控制器分为顶层设备接口、核心层、底层硬件接口由上到下3个部分;同时对驱动和设备分离、顶层设备接口和具体硬件操作分离。
單總線是一些傳感器和低速器件與主機通信常用一種總線協議,如智能溫度傳感器DS18B20,A/D轉換芯片等。隨著物聯網的髮展,這些傳感器的應用將越來越廣汎,而這些接口沒有與內覈緊密聯繫,內覈無法進行統一管理,穩定性和可靠性無法得到保證。在符閤Linux內覈設備模型[2]的前提下,實現一箇穩定的單總線接口,將整箇控製器分為頂層設備接口、覈心層、底層硬件接口由上到下3箇部分;同時對驅動和設備分離、頂層設備接口和具體硬件操作分離。
단총선시일사전감기화저속기건여주궤통신상용일충총선협의,여지능온도전감기DS18B20,A/D전환심편등。수착물련망적발전,저사전감기적응용장월래월엄범,이저사접구몰유여내핵긴밀련계,내핵무법진행통일관리,은정성화가고성무법득도보증。재부합Linux내핵설비모형[2]적전제하,실현일개은정적단총선접구,장정개공제기분위정층설비접구、핵심층、저층경건접구유상도하3개부분;동시대구동화설비분리、정층설비접구화구체경건조작분리。
1-Wire Bus is a bus protocol which connects some sensors and low-speed devices with the host,such as the smart temperature sensor DS18B20,A/D chip,and so on. With the development of the internet of things,the ap-plication of these sensors will become more widespread,but their interfaces are not closely linked with the kernel, the kernel can not unify the management,so stability and reliability may not be guaranteed. In line with the premise of the Linux kernel device model,a stable 1-Wire interface is given. the controller will be divided into three parts, top-level device interface, the core layer and the underlying hardware interface;menuwhile the driver and the device,the top-level device interface and the specific hardware are seperated in operations.