echemi logo
Product
  • Product
  • Supplier
  • Inquiry
    Home > Active Ingredient News > Drugs Articles > Electric device adopts Zui new Bluetooth Technology

    Electric device adopts Zui new Bluetooth Technology

    • Last Update: 2012-07-02
    • Source: Internet
    • Author: User
    Search more information of high quality chemicals, good prices and reliable suppliers, visit www.echemi.com
    Abstract: in view of the application of wireless communication technology in valve electric device, this paper analyzes the application characteristics of various common wireless communication technology, and puts forward a solution based on Bluetooth technology In addition, it simply analyzes three implementation forms of Bluetooth protocol stack, and chooses embedded model as the implementation form of Bluetooth wireless communication This paper focuses on the hardware system structure and software flow of Bluetooth handheld operator, and realizes the wireless remote control operation of valve electric device with Bluetooth communication module Key words: valve electric device; Bluetooth; kc02 1 Bluetooth protocol stack implementation form Bluetooth protocol specification follows open system interconnection (OSI) model There are three different implementation models of Bluetooth protocol stack according to the way of encapsulation: resident, embedded and fully embedded They are respectively for products with different functions and resources For the embedded model, the Bluetooth protocol stack is located in the Bluetooth module, and the application program runs on the host independently, and communicates with the Bluetooth module through the adaptation protocol The embedded model does not need the host to process the Bluetooth upper layer protocol, reduces the host's software load and code length, reduces the development difficulty, and is a good choice for devices with limited memory In this design, the embedded model is selected in the implementation form of Bluetooth protocol stack By using the kc02 Bluetooth module of Nanjing Guochun Electronic Technology Co., Ltd., the communication reliability is guaranteed and the code amount of CPU is reduced Bluetooth application system design uses Bluetooth wireless communication in the industrial field The hardware design of the system is divided into two parts: valve electric device and hand-held operator 2.1 valve electric device the valve electric device realizes the control function of the valve body The whole embedded system is built with lpc2292 as the core, and the industrial kc02 module is used as the Bluetooth module Lpc2292 is a high performance industrial microprocessor based on arm7tdmi-s of NXP company Its processor core is a 32-bit RISC architecture, which has a high-density 16 bit instruction set and very low power consumption Kc02 Bluetooth module is a Bluetooth communication module which can exchange data and communicate voice It is small in size, 17.8mm in length and 15.2mm in width; it has a working voltage of 3.3V, and has UART, SPI and USB serial interfaces In this design, the UART of the processor is used to connect with the Bluetooth module 2.2 handheld operator the function of the handheld operator is to search for the slave Bluetooth, and operate the valve electric device after the master slave Bluetooth establishes the link, and synchronously display the screen content of the valve electric device The system structure is based on 8-bit AVR single-chip ATmega128L, including four parts: button, LCD, main Bluetooth module and power processing The main Bluetooth module of kc02 is connected with MCU through serial port The hand-held operator uses battery to supply power to the whole embedded system through power conversion chip amsi1117 2.3 software flow of hand-held operator: after the hand-held operator is reset, the initialization operation of each underlying hardware is carried out first, and then the corresponding operation is carried out according to the received key command In hardware design, PD4 of MCU is connected with the link status port of Bluetooth module, and pd7 is connected with the reset pin of Bluetooth module 3 The valve electric device in the industrial field is usually an array At this time, the key to establish the communication between the hand-held operator and the valve electric device is to query and link the Bluetooth node correctly The process is completed by the MCU of hand-held operator operating the main Bluetooth module through the adaptation protocol Because there may be multiple valves with Bluetooth wireless communication function in the industrial field, the connection between the hand-held operator and the valve electric device can be divided into physical link and logical link The logical link is a subset of the physical link Only when the physical link is established between the hand-held operator and the valve electric device, and the hand-held operator receives the command to confirm the link, can the logical link be established At this time, the hand-held operator enters the state of operating the electric device of the valve and displaying synchronously The valve electric device can only passively receive the search and link of the hand-held operator, and the upper program will give a prompt for the operator to judge the link status of the Bluetooth network when processing the link status 4 System function data exchange function: the handheld operator collects the real-time status of the valve electric device by the way of query and response Every 100ms, the hand-held operator will issue a query command, and the valve electric device will package the current status as 1 frame and 6 characters data to the hand-held operator Since the transmitted data will not contain 0xff and 0xFE, it can be used as the start and end flags of 1 frame data The hand-held operator removes the start mark and end mark by the same data format to analyze a frame of data, and synchronously displays the status of the valve electric device When the hand-held operator and the valve electric device enter the synchronous setting state of the valve parameters, the data frame length is not fixed, and the data exchange is carried out according to the information required by the display page in front of the book Link disconnection prompt: when the link between the hand-held operator and the valve electric device is disconnected due to external disturbance or distance increase, the hand-held operator will give the link disconnection prompt, and the valve electric device will jump out of the Bluetooth wireless operation state and return to the local operation mode In conclusion, in view of the actual engineering requirements of introducing Bluetooth wireless technology into valve electric device, this paper analyzes its feasibility, and realizes the actual software and hardware system, which has certain reference value for the application of wireless technology in industrial field For details, please click:/
    This article is an English version of an article which is originally in the Chinese language on echemi.com and is provided for information purposes only. This website makes no representation or warranty of any kind, either expressed or implied, as to the accuracy, completeness ownership or reliability of the article or any translations thereof. If you have any concerns or complaints relating to the article, please send an email, providing a detailed description of the concern or complaint, to service@echemi.com. A staff member will contact you within 5 working days. Once verified, infringing content will be removed immediately.

    Contact Us

    The source of this page with content of products and services is from Internet, which doesn't represent ECHEMI's opinion. If you have any queries, please write to service@echemi.com. It will be replied within 5 days.

    Moreover, if you find any instances of plagiarism from the page, please send email to service@echemi.com with relevant evidence.