[go: up one dir, main page]

CN104298643A - Device for data transmission between smart device and embedded device - Google Patents

Device for data transmission between smart device and embedded device Download PDF

Info

Publication number
CN104298643A
CN104298643A CN201410527580.XA CN201410527580A CN104298643A CN 104298643 A CN104298643 A CN 104298643A CN 201410527580 A CN201410527580 A CN 201410527580A CN 104298643 A CN104298643 A CN 104298643A
Authority
CN
China
Prior art keywords
interface
embedded device
smart machine
data transmission
data
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
CN201410527580.XA
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.)
Suzhou Industrial Park Institute of Services Outsourcing
Original Assignee
Suzhou Industrial Park Institute of Services Outsourcing
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 Suzhou Industrial Park Institute of Services Outsourcing filed Critical Suzhou Industrial Park Institute of Services Outsourcing
Priority to CN201410527580.XA priority Critical patent/CN104298643A/en
Publication of CN104298643A publication Critical patent/CN104298643A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

本发明公开了一种智能设备与嵌入式设备进行数据传输的装备,包括智能设备(10)、嵌入式设备(20)、数据线,所述智能设备(10)设有普通I/O接口,所述嵌入式设备(20)设有串行接口(200),所述数据线一端连接普通I/O接口,所述数据线另一端连接串行接口(200),所述智能设备(10)和嵌入式设备(20)之间具有串口通信协议。本发明采用智能设备的普通I/O接口,可以为并行I/O接口,通过数据线与传统的嵌入式设备连接,并定义了一套的数据传输协议格式保证数据传输的正确性,进而实现了现有技术中带有普通I/O接口的智能设备与传统的采用串行接口进行通信的嵌入式设备之间进行直接的数据传输。

The invention discloses equipment for data transmission between an intelligent device and an embedded device, comprising an intelligent device (10), an embedded device (20), and a data line. The intelligent device (10) is provided with a common I/O interface, The embedded device (20) is provided with a serial interface (200), one end of the data line is connected to a common I/O interface, the other end of the data line is connected to the serial interface (200), and the smart device (10) There is a serial port communication protocol with the embedded device (20). The present invention adopts the ordinary I/O interface of the smart device, which can be a parallel I/O interface, is connected with the traditional embedded device through the data line, and defines a set of data transmission protocol format to ensure the correctness of data transmission, and then realizes It realizes the direct data transmission between the smart device with common I/O interface in the prior art and the traditional embedded device which adopts serial interface for communication.

Description

A kind of smart machine and embedded device carry out the equipment of data transmission
Technical field:
The present invention relates to areas of information technology, be specifically related to the equipment that a kind of smart machine and embedded device carry out data transmission.
Background technology:
Embedded device is primarily of flush bonding processor, associated support hardware and embedded software equipment composition, and it is " device " that can work independently that integrate software and hardware.Flush bonding processor is primarily of a single-chip microcomputer or microcontroller composition.Associated support hardware comprises the fetch equipment etc. of display card, storage medium, communication apparatus, IC-card or credit card.Embedded device is different from general computer disposal equipment, and it does not possess jumbo storage medium as hard disk, and mostly uses flash memory as storage medium.Embedded software comprises hardware-related bottom software, operating equipment, graphical interfaces, communications protocol, database equipment, standardization browser and application software etc.
Tradition embedded device considers the problem of cost and power consumption, and under normal conditions, data transmission adopts serial line interface to carry out.Serial line interface refers to that data one ground order transmits, and is characterized in that communication line is simple, as long as a pair transmission line just can realize two-way communication, such as, can directly utilize telephone wire as transmission line, thus greatly reduce cost, be specially adapted to telecommunication, but transfer rate is slower.Article one, each bit data of information is called serial communication by the communication modes transmitted in order by turn.The feature of serial communication is: the transmission of data bit, and step-by-step order is carried out, and minimum need transmission line can complete; Cost is low but transfer rate is slow; The distance of serial communication can from several meters to a few km.
At present, smart machine externally carries out data transmission and usually uses WIFI, bluetooth or NFC etc., and such as, emerging panel computer generally wirelessly communicates with the equipment of periphery.Although some smart machine of the prior art is with I/O interface, directly cannot communicate with the serial line interface of traditional embedded device.Therefore, the develop rapidly of making rapid progress along with smart machine, the embedded device that smart machine and traditional employing serial line interface carry out communicating cannot realize direct data and transmit.
Summary of the invention:
Technical matters solved by the invention: the embedded device carrying out communicating with the smart machine of common I/O interface and traditional employing serial line interface in prior art cannot realize direct data and transmit.
The invention provides following technical scheme: a kind of smart machine and embedded device carry out the equipment of data transmission, comprise smart machine, embedded device, data line, described smart machine is provided with common I/O interface, described embedded device is provided with serial line interface, described data line one end connects common I/O interface, the described data line other end connects serial line interface, has serial communication protocol between described smart machine and embedded device.
The present invention adopts the common I/O interface of smart machine, it can be Parallel I/O interface, be connected with traditional embedded device by data line, and define the correctness that a set of Data Transport Protocol form ensures data transmission, and then achieve in prior art and carry out carrying out direct data transmission between the embedded device that communicates with the smart machine of common I/O interface and traditional employing serial line interface.
As a further improvement on the present invention, described smart machine is panel computer.Part panel computer of the prior art has interfaces for external devices, and such as, the panel computer of Android brand, has the USB interface of external equipment; The panel computer of apple brand has special purpose interface; Only a few panel computer has HDMI.The interface of above-mentioned all kinds of panel computer by being connected with traditional embedded device with its data line adapted, and ensures by serial communication protocol the correctness that between panel computer and embedded device, data are transmitted.
As a further improvement on the present invention, described data line is that serial line interface turns common I/O interface data wire.As preferably, described data line is that serial line interface turns USB interface data line.Smart machine of the prior art, comprises panel computer, and the I/O interface on it generally includes USB interface, therefore the preferred serial line interface of data line in the present invention turns USB interface data line.
Accompanying drawing illustrates:
Below in conjunction with accompanying drawing, the present invention is described further:
Fig. 1 is the structural representation that a kind of smart machine of the present invention and embedded device carry out the equipment of data transmission.
Symbol description in figure:
10-smart machine; 100-USB interface;
20-embedded device; 200-serial line interface;
30-serial line interface turns USB interface data line.
Embodiment:
As shown in Figure 1, a kind of smart machine and embedded device carry out the equipment of data transmission, comprise smart machine 10 (preferred panel computer), embedded device 20, serial line interface turn USB interface data line 30.
Described smart machine 10 is provided with usb 1 00, and described embedded device 20 is provided with serial line interface 200.
Described serial line interface turns the USB interface that USB interface data line 30 one end connects smart machine 10, and the other end that described serial line interface turns USB interface data line 30 connects serial line interface 200.
Between described smart machine 10 and embedded device 20, there is serial communication protocol.
The command format of described serial communication protocol is as following table:
The status format of described serial communication protocol is as following table:
Order and the parameter of described serial communication protocol are as follows:
Smart machine controls equipment and sends startup command: allow embedded device control panel start data transmission.
Command word: 0x81
Parameter: 1-button 1 (Hard); 2-button 2 (Middle); 3-button 3 (Soft)
Smart machine controls equipment and sends query State order: whether inquiry embedded device control panel receives related command or current state.
Command word: 0x82
Parameter: 1-order, 2-current operating state
After smart machine controls equipment transmission startup command, embedded device control panel sends working condition order:
Command word: 0x01
Parameter: 0-embedded device stirs and terminates; 1-sensor 1 is abnormal; 2-sensor 2 is abnormal;
Embedded device control panel sends query State order: inquiry smart machine controls equipment and whether receives related command:
Command word: 0x02
Parameter: 1-order
The status number of described serial communication protocol is as follows:
0-successfully receive orders
1-crc is not right, and data transmission has problem.
2-command word is illegal, and data transmission is correct.
3-do not need the order responded not receive any order bag data
4-the state that returns of embedded device control panel just at work
The host-host protocol particular content of described serial communication protocol is as follows:
The reliability that data are transmitted and integrality is guaranteed by 2 terrace works (order-state).After main frame sends order, from machine return state, if status data is invalid or in 1 second, countless certificate returns, main frame can pass through to send query State order, in secondary acquisition state.
Such as, smart machine controls equipment and sends startup command:
Packet is: 0x5A, 0x81,0x2,0xDD.
If embedded device control panel return state packet: 0xA5,0x0,0xA5.This shows that embedded device control panel successfully receives this order.
If embedded device control panel return state packet: 0xA5,0x01,0xA6.If the return state of order bag is not 0, smart machine controls equipment to be needed to resend this order.Can learn abnormal cause according to status number, if state is 0x1, this shows that the data that embedded device control panel receives are not right.
If countless certificate returns in 1 second, or the state data packets CRC returned is not right, and smart machine controls equipment and sends querying command: 0x5A, 0x82,0x1,0xDD.
Main frame attempts acquisition state 5 times, if do not have data to return, thinks from machine and quits work; If status data is not right, think transmission abnormality.
Such as, after smart machine controls equipment transmission startup command, embedded device control panel sends working condition order:
Packet is: exception reported by 0x5A, 0x01,0x2,0x5D sensor 2.
If smart machine controls equipment return state packet: 0xA5,0x80,0x25.This shows that smart machine controls to equip successfully to receive this order.
Above content is only better embodiment of the present invention, and for those of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, this description should not be construed as limitation of the present invention.

Claims (4)

1. a smart machine and embedded device carry out the equipment of data transmission, comprise smart machine (10), embedded device (20), data line, described smart machine (10) is provided with common I/O interface, described embedded device (20) is provided with serial line interface (200), it is characterized in that: described data line one end connects common I/O interface, the described data line other end connects serial line interface (200), has serial communication protocol between described smart machine (10) and embedded device (20).
2. a kind of smart machine as claimed in claim 1 and embedded device carry out the equipment of data transmission, it is characterized in that: described smart machine (10) is panel computer.
3. a kind of smart machine as claimed in claim 1 or 2 and embedded device carry out the equipment of data transmission, it is characterized in that: described data line is that serial line interface turns common I/O interface data wire.
4. a kind of smart machine as claimed in claim 3 and embedded device carry out the equipment of data transmission, it is characterized in that: described data line is that serial line interface turns USB interface data line (30).
CN201410527580.XA 2014-10-09 2014-10-09 Device for data transmission between smart device and embedded device Pending CN104298643A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410527580.XA CN104298643A (en) 2014-10-09 2014-10-09 Device for data transmission between smart device and embedded device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410527580.XA CN104298643A (en) 2014-10-09 2014-10-09 Device for data transmission between smart device and embedded device

Publications (1)

Publication Number Publication Date
CN104298643A true CN104298643A (en) 2015-01-21

Family

ID=52318372

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410527580.XA Pending CN104298643A (en) 2014-10-09 2014-10-09 Device for data transmission between smart device and embedded device

Country Status (1)

Country Link
CN (1) CN104298643A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030041205A1 (en) * 2001-07-13 2003-02-27 Wen-Jen Wu USB compound device and the method for implementation thereof
CN203150865U (en) * 2013-04-08 2013-08-21 袁文宇 USB (universal serial bus) extension wire
CN103426287A (en) * 2012-05-23 2013-12-04 殷绪成 Novel communication control method and device based on mobile device and embedded device
CN203631927U (en) * 2013-10-24 2014-06-04 中国南方电网有限责任公司超高压输电公司检修试验中心 Anti-interference performance USB conversion serial port data cable

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030041205A1 (en) * 2001-07-13 2003-02-27 Wen-Jen Wu USB compound device and the method for implementation thereof
CN103426287A (en) * 2012-05-23 2013-12-04 殷绪成 Novel communication control method and device based on mobile device and embedded device
CN203150865U (en) * 2013-04-08 2013-08-21 袁文宇 USB (universal serial bus) extension wire
CN203631927U (en) * 2013-10-24 2014-06-04 中国南方电网有限责任公司超高压输电公司检修试验中心 Anti-interference performance USB conversion serial port data cable

Similar Documents

Publication Publication Date Title
CN102842154B (en) Based on grid equipment inspection device and the method for inspecting of RFID
CN102496814A (en) Intelligent socket and intelligent control system
CN103368619A (en) Mobile terminal and method and device for communication between mobile terminals
CN203984450U (en) Intelligent domestic gateway
CN203590222U (en) RFID/Bluetooth communication switching equipment
CN104980457A (en) Intelligent electric meter system
CN203444484U (en) USB data transmission device
CN204359047U (en) A kind of refrigerator realizing Long-distance Control
CN104298643A (en) Device for data transmission between smart device and embedded device
CN105962559A (en) A smart wristband with fingerprint recognition function
CN203632694U (en) System for realizing data conversion between XBEE devices and Bluetooth devices
JP2014194778A (en) Computer input system and method therefor
CN203287917U (en) Bluetooth wireless transmission-based ultrahigh frequency reading-writing device
CN204189166U (en) A kind of smart machine and embedded device carry out the equipment of data transmission
CN203455846U (en) Bluetooth RFID card-reading apparatus
CN202935897U (en) Sudden-stop lock switch position recognition device of belt conveyor
CN205176734U (en) Intelligent substation operating information's inquiry equipment
CN204406168U (en) A kind of family intelligent control system having self-learning function
CN205301851U (en) Remote intelligent house control system based on thing networking
CN203734667U (en) Bluetooth bridge for realizing long-distance data communication
CN204089852U (en) Based on the CAN protocol communication board of CANBUS
CN203859747U (en) Bluetooth communication card
CN203206489U (en) A home gateway and a home network
CN103139621A (en) Set top box capable of enabling function expansion cards to be inserted
CN202887108U (en) Circuits and system for achieving synchronous input function of computer keyboard and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150121