Electric device adopts zui new Bluetooth technology

Abstract: In view of the application of wireless communication technology in valve electric devices, the application characteristics of various common wireless communication technologies are analyzed, and a solution based on Bluetooth technology is proposed. In addition, the three implementation forms of the Bluetooth protocol stack are simply analyzed, and the embedded model is selected as the implementation form of Bluetooth wireless communication. The hardware system structure and software flow of the Bluetooth handheld operator are introduced, and the wireless remote control operation of the valve electric device with the Bluetooth communication module is realized.

Key words: valve electric device; Bluetooth; KC02
1 Bluetooth protocol stack implementation
The Bluetooth protocol specification follows the Open System Interconnection (OSI) model.
The Bluetooth protocol stack has three different implementation models in terms of encapsulation—hosted, embedded, and fully embedded—for products with different capabilities and resources.
For the embedded model, the Bluetooth protocol stack is located in the Bluetooth module, and the application runs separately on the host and communicates with the Bluetooth module through the adaptation protocol. The embedded model does not require the host to handle the Bluetooth upper layer protocol, which reduces the software load and code length of the host, reduces the development difficulty, and is a good choice for devices with limited memory. This design selects the embedded model in the implementation form of the Bluetooth protocol stack. By using the KC02 Bluetooth module of Nanjing Guochun Electronic Technology Co., Ltd., the communication reliability is ensured and the code amount of the CPU is reduced.
2 Bluetooth application system design
Bluetooth wireless communication is used in industrial sites, and the hardware design of the system is divided into two parts: valve electric device and handheld operator.
2.1 Valve electric device
The valve electric device realizes the control function of the valve body. The entire embedded system is built with LPC2292 as the core, and the Bluetooth module uses the industrial grade KC02 module.
The LPC2292 is a high performance industrial grade microprocessor based on the ARM7TDMI-S from NXP. Its processor core is a 32-bit RISC architecture with a high-density 16-bit instruction set and extremely low power consumption.
The KC02 Bluetooth module is a Bluetooth communication module for data exchange and voice communication. It is small in size, 17.8mm long and 15.2mm wide. It operates at 3.3V and has UART, SPI and USB serial interfaces. In this design, the UART of the processor is connected to the Bluetooth module.
2.2 Handheld Operator
The function of the handheld operator is to search from the Bluetooth, and after the master-slave Bluetooth establishes the link, operate the valve electric device and simultaneously display the valve motor device screen content. Its system structure is based on 8-bit AVR microcontroller ATmega128L, including buttons, LCD, main Bluetooth module and power processing. KC02 The main Bluetooth module is connected to the MCU through the serial port. The handheld operator uses a battery and is powered by the power conversion chip AMSI1117 to power the entire embedded system.
2.3 Handheld Operator Software Process
After the handheld operator is reset, the initial operations of the underlying hardware are first performed, and then the corresponding operations are performed according to the received key commands.
In the hardware design, the PD4 of the microcontroller is connected to the link status port of the Bluetooth module, and the PD7 port is connected to the RESET pin of the Bluetooth module.
3 Bluetooth node link process
The valve electric devices in the industrial field are usually an array, and the correct completion of the query and link of the Bluetooth node at this time is the key to establishing communication between the handheld operator and the valve electric device. This process is performed by the handheld operator MCU operating the master Bluetooth module through an adaptation protocol.
Since there may be multiple valves in the industrial field with Bluetooth wireless communication functions, the links between the handheld operator and the valve electric device are divided into physical links and logical links. Where the logical link is a subset of the physical link, the physical link is established only after the handheld operator establishes a physical link with the valve motor and the handheld operator receives the command to confirm the link. At this time, the hand-held operator enters the state in which the valve electric device is operated and synchronized. The valve electric device can only passively receive the search and link of the handheld operator, and the upper program gives a prompt for the operator to judge the link state of the Bluetooth network when processing the link state.
4 system function
Data exchange function: The handheld operator collects the real-time status of the valve electric device by means of query response. Every 100ms, the handheld operator will issue one query command, and the valve motor will pack the current status into 1 frame and 6 characters of data and upload it to the handheld operator. Since the transmitted data does not contain 0xff and 0xfe, it can be used as the start and end of the 1-frame data.
The handheld operator removes the start and end flags by the same data format and parses out one frame of data, and simultaneously displays the state of the valve motor. When the handheld operator and the valve electric device enter the synchronous setting state of the valve parameters, the data frame length is not fixed, and data is exchanged according to the information required to display the page in front of the book. Link disconnection prompt: When the link between the handheld operator and the valve electric device is disconnected due to external disturbance or distance increase, the handheld operator gives a link disconnection prompt, and the valve electric device jumps out of the Bluetooth wireless operation state, and returns to Local operating mode.
Conclusion
In view of the actual engineering requirements of introducing Bluetooth wireless technology into valve electric devices, this paper analyzes its feasibility and realizes the actual software and hardware system, which has certain reference value for wireless technology application in industrial field.
For more information, please click: /

Anti-Ulcerative

Ulcers is commonly known as gastric ulcer and duodenal ulcer, the formation of ulcers is closely related with gastric acid or pepsin digestion. Ulcer disease is a chronic disease, its seizures were cyclical, episodes and remission of alternating appear, and the onset of abdominal pain has a certain rule. The main cause of ulcers include: 1. Helicobacter pylori infection 2. Bad diet 3. Mental factors 4. Drug stimulation. Many patients with gastric ulcer who have taken non-steroidal anti-inflammatory drug history, these drugs will stimulate our gastric mucosa, causing damage, then it will cause ulcer disease over time. The current anti-ulcer drug is mainly focused on reducing gastric acid and enhance the protective effect of gastric mucosa. In recent years,the research and development of anti-ulcer drug progress is faster, effective drugs have been listed, sales are also rising.

Antiulcer Drugs,Anti-Ulcerative Agent,Treatment For Stomach Ulcers,Treating Stomach Ulcers,Stomach Ulcer Medicine

Taizhou Volsen Chemical Co., Ltd. , https://www.volsenchem.com