The ARM-Linux IoT server is built based on the XSCALE PXA270 processor platform and the open source Linux system. The 51-chip microcomputer is used to connect peripheral devices such as temperature and humidity sensing module and LED lamp, and the Up-Tech embedded experiment box based on XSCALE PXA270 processor is used as the core server operation platform. Firstly, the communication design between ARM-Linux system setup, daemon and CGI program of embedded device is introduced. Then, the design and implementation of iQuery class library and AJAX technology used in Web server construction and network program design are introduced in detail.
The Internet of Things (IoT) is an extension of Internet applications. It is an emerging networking technology. Its core is the communication of information between objects and objects, and it is also the interaction control between objects. Internet of Things technology mainly uses various sensor devices, such as wireless technology, radio frequency identification (RFID) technology, various types of sensors and other technical devices to pass various information in the physical world, such as temperature, light intensity, location and other information through the network. Transmission, to achieve the purpose of information exchange between things and things.
To make it easy for people to access IoT information, monitor and control all types of sensor nodes and electrical equipment, a friendly user interface is a prerequisite. The B/S-based solution is the first choice for building systems with its client-side versatility. This paper will design and develop a general IoT server based on ARM processor platform and Linux embedded operating system. On the hardware platform, it will use UPTECH embedded development experiment box based on XSCALEPXA270 processor, 51 single chip microcomputer and various sensing controls. equipment. The ARM LinuX system is used on this embedded device, and the server is built under the embedded Linux system. The B/S architecture is adopted, and the BOA is used as the WEB server to realize remote information transmission and intelligent interaction through CGI communication.
1 system architecture
In order to highlight the low power consumption, low cost, high service level and high processing efficiency of the modern IoT server system, the server will run on the UP-Tech embedded device based on XSCALE PXA270 processor, and use 51 MCU to connect various transmissions. Sense control equipment.
The ARM Linux operating system with the 2.6.28 kernel was ported to the UP-Tech embedded device. On the Linux system, a daemon is written to communicate with the 51 MCU to communicate with various sensing control devices on the Linux system. The Boa WEB server is ported on Linux to build an interactive user interface. Enables users to view or control various sensing control devices in real time by accessing the page through a browser.
The system architecture is shown in Figure 1.
Figure 1 System Architecture
2 IoT data acquisition and processing subsystem design
2.1 Data acquisition system based on 51 single chip microcomputer
In the aspect of IoT terminal equipment, 51 single-chip microcomputers are used to connect through its rich external expansion interface and temperature sensor, humidity sensor, and LED lamp. The development mode of "C language + driver library" is adopted in the software. Through such a development mode, not only the development efficiency can be improved, but also the information collection and processing of multiple sensors can be well performed. In connection with the ARM-Linux embedded platform, the UART virtual serial port is used to communicate with the embedded platform.
The basic implementation functions of this system are as follows:
(1) connecting each sensing module, obtaining information transmitted by the sensor through the input and output interface and recording;
(2) Set a timer to collect information of each sensing device and control the state of the device within a specified unit time. Synthesize their information and status into a data packet and send it through the virtual serial port;
(3) Litong virtual serial port communication, detecting the control signals sent from the ARM-Linux platform at all times;
(4) Analyze the data packet transmitted from the serial port, check whether the data source is legal, and then control the single chip and each control module according to a specific control code.
2.2 Data Processing System Based on ARM-Linux Platform
ARM-Linux platform refers to the use of open source Linux kernel after tailoring to specific requirements, after cross-compilation to get a Linux kernel that can run on ARM processor, and also customize a Linux root file system, the entire system capacity is controlled in several hundred KB to tens of MB. The system is mainly composed of three parts: BootLoader, ARM-Linux kernel, and Linux root file system.
On embedded devices, the main data processing system is implemented by a daemon. The daemon is responsible for receiving and processing the information sent by the MCU; on the one hand, accepting the query control request from the WEB server.
On the IoT server side, the request from the client access is received and verified by the server, and the request query and control instructions are passed to the daemon. The daemon receives the request from the server, and then sends a request query to the MCU after verification. Control instruction.
The communication process of the daemon is divided into two parts. The first part is the daemon to inform the CGI program of the server to update the data. The second part is to send the instruction control to the daemon by the server CGI program, and the control program is executed after the daemon listens.
[7 Working Modes Flashlight]: Headlight (4-6hrs) -High, Medium and Flashing, Side White Lamp (4-7hrs) - High and Medium, Side Red Light (6-7hrs) - Flashing and Slow-flashing; Press the switch to change working mode and long press 3s to change working LED.Its beam can be focused that throws light up to an impressive 700 feet
[Car Emergency Escape Tool]: Features with window breaker break the stuck window and the seat belt cutter to cut the jammed seat belt; bring safe escape in emergencies, having a self defense Led Flashlight tactical can help you get out of most sticky situations
[HANDS-FREE]: With a powerful magnet on the side of the flashlight head, you could attach it to the car or other metallic surface to use as a Work Light, Camping Lamp or emergency warning light
[Reliable and Necessary]: Flashlight is water resistant & shock resistant for use under the most rugged, emergency condition.It comes with a weather resistant anodized aluminum alloy body, easy to grip, tail with a compass for outdoors; Not just for auto emergencies, also great for working, camping, or hiking as it's designed to withstand lots of abuse
[Rechargeable Emergency Power Bank]: This Solar Flashlight has a built-in 2000mAh 18650 battery, could be charged with included USB Cable (4-5hrs) or Solar Power (30hrs), using the USB cable to connect your phone with the flashlight (The battery needs to be greater than 20% )and charging your phone for emergency
Solar Powered Flashlight,Solar Powered Torch,Solar Rechargeable Flashlight,Solar Rechargeable Torch
Ningbo Wason Lighting Technology Co.,Ltd , https://www.wasonlight.com