CN103426287A - Novel communication control method and device based on mobile device and embedded device - Google Patents

Novel communication control method and device based on mobile device and embedded device Download PDF

Info

Publication number
CN103426287A
CN103426287A CN201210160538XA CN201210160538A CN103426287A CN 103426287 A CN103426287 A CN 103426287A CN 201210160538X A CN201210160538X A CN 201210160538XA CN 201210160538 A CN201210160538 A CN 201210160538A CN 103426287 A CN103426287 A CN 103426287A
Authority
CN
China
Prior art keywords
data
mobile device
device end
embedded device
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201210160538XA
Other languages
Chinese (zh)
Inventor
殷绪成
吴若凡
郝红卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201210160538XA priority Critical patent/CN103426287A/en
Publication of CN103426287A publication Critical patent/CN103426287A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a novel communication control method and a device based on a mobile device and an embedded device. The device mainly comprises two parts: a mobile device terminal and an embedded device terminal. The mobile device terminal comprises an intelligent mobile phone and a tablet computer (the mobile device terminal comprises a USB module and a bluetooth module in hardware). The embedded device terminal comprises a one-chip microcomputer control chip, a sensor module and a communication module (the embedded device terminal comprises a USB module and a bluetooth module in hardware). After the sensor module of the embedded device terminal finishes measurement and acquisition of required data, the one-chip microcomputer control chip processes the data preliminarily and sends the data to the communication module. The communication module sends the data to the mobile device terminal. The mobile device terminal receives, processes and shows the data, and then sends the control information back to the embedded device terminal. The method and the device can provide a convenient and fast communication mode and a data processing mode between the mobile device and the embedded device.

Description

Novel communication control method and the device of a kind of movement-based equipment and embedded device
Affiliated technical field
The present invention relates to a kind ofly for novel communication and control mode before mobile device and embedded device, is a kind of by carrying out the method and apparatus of Direct Communication and control between mobile device and embedded device.
Background technology
At present, in existing embedded device, be all after embedded device (as single-chip microcomputer equipment) passes through the sensor image data usually, show or return to host computer by Serial Port Line on LCD and carry out operational processes.
Universal along with mobile device in recent years, as big screen intelligent mobile phone, panel computer, Smart Home etc. enter into people's life gradually, embedded device miscellaneous starts " flying into common people house " gradually, along with the development of computer hardware technique is more and more rapider, traditional communication reveals gradually with the drawback of controlling processing mode: the immobilization of legacy equipment, host computer can't move, device upgrade inconvenient, extendability is poor.
People more and more rely on that to take mobile phone and panel computer be main mobile device, and various Cellphone Accessories emerge in an endless stream, and the data that the equipment around going to control by mobile device in addition and Treatment Analysis embedded device return are about to become a kind of emerging pattern.
Summary of the invention
For the drawback that overcomes tradition and the communication of embedded device and control mode with adapt to the requirement of people to mobile device, mobile office, Smart Home now, the invention provides a kind of new communication and control mode, this mode was both improved on the basis of original communication mode, both realized that mobile device carried out wired connection and power supply by USB, realize wireless telecommunications and the control based on bluetooth by expansion simultaneously, facilitated people to use mobile device and embedded device to carry out communication and control.After receiving the data that embedded device transmits, the process of mask data collection and processing, take full advantage of present mobile device arithmetic capability from strength to strength, the processing of complete paired data, analyzes and demonstration.
The technical solution adopted for the present invention to solve the technical problems is: in the original system of embedded device, utilize the communication serial ports of USB module and bluetooth module expanding system, in whole system, the sensor image data, embedded device sends to mobile device end by data with specific format by USB module or bluetooth module, after mobile device reads serial data by USB or blue tooth interface, by mobile device, powerful arithmetic capability is processed and is analyzed, then shown, and return to control command or data to embedded device by USB or blue tooth interface with specific format, after embedded device receives serial data, interrupt, resolution data also carries out next step operation.
In whole communication process, USB module and bluetooth module are being played the part of the role of interim data.In addition, when being connected by the USB module, the USB module has also played the effect that embedded device is powered; And when being connected by bluetooth, embedded device is powered to bluetooth module by the power supply of self.
The invention has the beneficial effects as follows, effectively realize communication and the control of mobile device and embedded device by wired (USB) and wireless (bluetooth) two kinds of patterns, and the collection of data is separated with processing procedure, complete the collection of data, processing and the analysis that mobile device completes data by embedded device, Each performs its own functions, the powerful computing power of mobile device has made up the shortcoming of embedded device computing inconvenience, thereby can simplify structure and the function of embedded device, realize a kind of novel communication and control model of movement-based equipment.
The accompanying drawing explanation
Fig. 1 is specific functional modules structural drawing of the present invention.
Fig. 2 is the process flow diagram that embedded end functions of the equipments of the present invention realize program.
Fig. 3 is the process flow diagram that mobile device end function of the present invention realizes program.
Embodiment
Below, illustrate referring to the drawings embodiments of the present invention.
Fig. 1 is a kind of movement-based equipment of the present invention and the novel communication control method of embedded device and the specific functional modules figure of device, specifically is divided into two parts: mobile device end and embedded device end.
1. the mobile device end comprises smart mobile phone and panel computer.
2. the functional module of embedded device end comprises singlechip control chip, communication module and sensor assembly, and wherein communication module is comprised of USB module and bluetooth module, and sensor assembly is comprised of various concrete sensors.
Fig. 2 is the process flow diagram that embedded device end function of the present invention realizes, in the process realized in function, comprises the following steps.
1. system initialization, single-chip microcomputer powers on to modules after starting, and removes data cachedly, and initializing variable, complete the initialization to the various required variablees of embedded device system program.
2. the configuration communication module, wherein, comprise the parameter configuration of USB module and bluetooth module.The required various I/O pins of configuration communication, and various serial communication parameter.
3. configure each sensor assembly, the sensor measurement module that the configuration embedded device end is used, comprise various variablees and I/O pin that sensor measurement is required, and corresponding systematic parameter.
4. judged whether that mobile device connects, now, embedded device waits for that mobile device is connected by bluetooth or USB, if having equipment to be connected carry out next step; If without connection, proceed to wait for.
5. judge whether to receive data, after connection completes, wait for and receive the data that transmit from connection, also wait for the data that sensor assembly transmits simultaneously.If the data of receiving, carry out next step; If countless certificates, proceed to wait for.
6. whether the data that judgement receives are order data.Usually the data that receive comprise the data that transmit from the mobile device end and the measurement data received from the sensor measurement module.The judgement work of the complete paired data of this step, if the data that transmit from mobile device carry out steps 7; If the data that transmit from the sensor measurement module carry out steps 9.
7. resolve and the processing command data, the control information of transmitting from mobile device is divided into two kinds usually, and a kind of is control command, and another kind is the request msg order.This step completes the form of the control information to receiving and is resolved: remove command header, analyze command format, carry out data check.
8. whether the control information that judgement is parsed is the order of request measurement data.If the order of request measurement data, request msg, the completing of waiting step 10; If not the order of request measurement data is control command, carry out step 2, the configuration communication module.
9. resolve and the processes sensor measurement data, according to the different requirements of different sensors data, resolve measurement data, and to being processed.
10. press the specific format packing data, the measurement data of processing is packed according to the communication format of appointing in advance, be ready to data, wait for the order of mobile device request msg, i.e. step 8.
11. send to communication module, after step 8 and 10 all completes, packed data are sent to communication module, communication module can, according to the mode (USB or bluetooth connect) of current connection, send data.Then carry out step 4.
Fig. 3 is the process flow diagram that mobile device end function of the present invention realizes, in the process realized in function, comprises the following steps.
1. interface forms initialization, start-up routine initialization interface, offer a close friend's of user interactive interface, and carry out initialization to various for the control that shows data, drawing data.
2. communication service initialization, start the communication service thread, and the various parameters of configuration communication service comprise that USB connects thread and is connected thread with bluetooth, usb communication thread and Bluetooth communication thread.
3. judged whether equipment connection, if there is embedded device to pass through USB or bluetooth connection, carry out step 4; If nothing, continue to wait for.
4. send request the measurement data order to communication thread, completed the function of the equipment of sending to by communication thread.
5. judged whether that data import into, after sending request the order of measurement data, waited pending data to import into, if there are data carry out step 6, otherwise continued to wait for.
6. analyzing and processing data, carry out analyzing and processing to the data that receive by the agreement form, extracts corresponding information.
7. whether the data that judgement receives need to return control information, if need to carry out step 8, if do not need, carry out steps 10.
8. process and generate order, according to analyzing the data obtained, generate corresponding control command, and packing.
9. order is sent to communication thread, be responsible for order is sent to embedded device by communication thread.
10. demonstration data, wherein, comprise and show the data message received, and according to information analysis, drafting, the various charts of demonstration.Then carry out step 3.

Claims (5)

1. the novel communication control method of a movement-based equipment and embedded device should comprise two parts with device, mobile device end and embedded device end, measure and obtain data by embedded device end, then pass to the mobile device end, the mobile device end is processed and is shown data, then returns to control information to embedded device end.
2. mobile device end according to claim 1, is characterized in that, should comprise smart mobile phone and panel computer, and should comprise USB module and bluetooth module on its hardware.
3. embedded device end according to claim 1, is characterized in that, should comprise with lower module:
(3.1) singlechip control chip, for controlling whole embedded system.
(3.2) sensor assembly, be comprised of various different types of sensors, the required data for measuring system.
(3.3) communication module, for connecting embedded device end and mobile device end, and send data to the mobile device end.
4. the communication module of embedded device end according to claim 3, is characterized in that, should comprise USB module and bluetooth module two parts.When the mobile device end connects embedded device end by the USB module, mobile device can provide power supply to embedded device by USB; When using bluetooth to be connected between the two, embedded device is used self Power supply.
5. communication process according to claim 1 is characterized in that:
(5.1) sensor assembly of embedded device end completes measurement and the collection to desired data.
(5.2) the embedded device end singlechip control chip is to sending to the communication module of embedded device end after the data rough handling measured.
(5.3) communication module of embedded device end is responsible for data are sent to the mobile device end connected.
(5.4), after the mobile device termination is received data, data are processed and analyzed, and the data after processing are shown.
(5.5) mobile device end program is returned to USB module or the bluetooth module of control information to mobile device.
(5.6) USB module or bluetooth module are responsible for data are sent to the embedded device end connected.
CN201210160538XA 2012-05-23 2012-05-23 Novel communication control method and device based on mobile device and embedded device Pending CN103426287A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210160538XA CN103426287A (en) 2012-05-23 2012-05-23 Novel communication control method and device based on mobile device and embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210160538XA CN103426287A (en) 2012-05-23 2012-05-23 Novel communication control method and device based on mobile device and embedded device

Publications (1)

Publication Number Publication Date
CN103426287A true CN103426287A (en) 2013-12-04

Family

ID=49650960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210160538XA Pending CN103426287A (en) 2012-05-23 2012-05-23 Novel communication control method and device based on mobile device and embedded device

Country Status (1)

Country Link
CN (1) CN103426287A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298643A (en) * 2014-10-09 2015-01-21 苏州工业园区服务外包职业学院 Device for data transmission between smart device and embedded device
CN104317755A (en) * 2014-10-13 2015-01-28 中国电子科技集团公司第四十一研究所 Wireless program control method applied to signal generator
CN104331386A (en) * 2014-10-09 2015-02-04 苏州工业园区服务外包职业学院 Device for data transmission between intelligent equipment and embedded equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101721202A (en) * 2009-11-18 2010-06-09 常州华中集团有限责任公司 Mobile remote medical monitoring system for health parameters
CN101912279A (en) * 2010-08-23 2010-12-15 秦皇岛市康泰医学系统有限公司 Fetus monitoring method based on intelligent terminal equipment
CN201790808U (en) * 2010-09-21 2011-04-13 河北医科大学 Wrist-worn heart rate monitoring alarm
CN202003471U (en) * 2011-04-15 2011-10-05 湖州师范学院 Human body induction home alarm system based on communication module

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101721202A (en) * 2009-11-18 2010-06-09 常州华中集团有限责任公司 Mobile remote medical monitoring system for health parameters
CN101912279A (en) * 2010-08-23 2010-12-15 秦皇岛市康泰医学系统有限公司 Fetus monitoring method based on intelligent terminal equipment
CN201790808U (en) * 2010-09-21 2011-04-13 河北医科大学 Wrist-worn heart rate monitoring alarm
CN202003471U (en) * 2011-04-15 2011-10-05 湖州师范学院 Human body induction home alarm system based on communication module

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298643A (en) * 2014-10-09 2015-01-21 苏州工业园区服务外包职业学院 Device for data transmission between smart device and embedded device
CN104331386A (en) * 2014-10-09 2015-02-04 苏州工业园区服务外包职业学院 Device for data transmission between intelligent equipment and embedded equipment
CN104317755A (en) * 2014-10-13 2015-01-28 中国电子科技集团公司第四十一研究所 Wireless program control method applied to signal generator
CN104317755B (en) * 2014-10-13 2018-02-16 中国电子科技集团公司第四十一研究所 A kind of wireless program-controlled method applied to signal generator

Similar Documents

Publication Publication Date Title
CN102622136B (en) A kind of multi-point touch system data processing method and device
CN103944982A (en) Data collecting and controlling device and method for heterogeneous sensor network
CN206060825U (en) A kind of device for realizing that multi-joint net mode accesses Internet of Things cloud platform
CN218068838U (en) Device for displaying real-time state parameters of keyboard and mouse
CN103426287A (en) Novel communication control method and device based on mobile device and embedded device
CN106100798A (en) Data transmission device and the method and system of transmission data
CN102946272B (en) Separated type optical testing device based on commonly-used mobile intelligent terminal
CN108039041A (en) A kind of high speed 4G concentrators communication module, power information acquisition system and method
CN104698942A (en) Intelligent control and information management system and method
CN204989857U (en) Remote control device based on pioneer robot
CN202960523U (en) Measurement system based on gait training rectifier
CN204790445U (en) Multichannel synchronizing data collection system based on android system
CN205826852U (en) A kind of electric energy meter data intelligence read-write equipment based on bluetooth communication
CN204612082U (en) For point inspection device and the air-conditioner system of air-conditioner
CN204256197U (en) Indoor environment monitoring system
CN203276264U (en) Equipment for conversion from UART interface to USB dual mode interface
CN105045401A (en) USB interface keyboard and mouse integrated system and design method therefor
CN104022933A (en) Vehicle bus debugging system based on multi-mode signal conversion
CN203166967U (en) Sampling terminal gateway realization based on Bluetooth technology
CN204425408U (en) Based on the intelligent health data acquisition transmitting device of ZigBee radio communication
CN109725621A (en) A kind of secondary bus program based on 1553B bus and CAN bus is in line writing method
CN203840344U (en) Serial data transmission system
CN103294625A (en) Realization of acquisition terminal USB interface module for mobile telephone or handheld computer
CN103297332A (en) Achievement of sampling terminal gateway based on Bluetooth technology
CN208334985U (en) A kind of multi-screen collaboration control system of instrument

Legal Events

Date Code Title Description
DD01 Delivery of document by public notice

Addressee: Wu Ruofan

Document name: Notification of Passing Preliminary Examination of the Application for Invention

C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20131204