CN109887259A - A kind of single wire transmission device and method - Google Patents

A kind of single wire transmission device and method Download PDF

Info

Publication number
CN109887259A
CN109887259A CN201910130289.1A CN201910130289A CN109887259A CN 109887259 A CN109887259 A CN 109887259A CN 201910130289 A CN201910130289 A CN 201910130289A CN 109887259 A CN109887259 A CN 109887259A
Authority
CN
China
Prior art keywords
equipment
single line
drop
host computer
data preparation
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.)
Granted
Application number
CN201910130289.1A
Other languages
Chinese (zh)
Other versions
CN109887259B (en
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.)
Shanghai Shenxiling Microelectronics Technology Co Ltd
Original Assignee
Shanghai Shenxiling Microelectronics Technology Co Ltd
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 Shanghai Shenxiling Microelectronics Technology Co Ltd filed Critical Shanghai Shenxiling Microelectronics Technology Co Ltd
Priority to CN201910130289.1A priority Critical patent/CN109887259B/en
Publication of CN109887259A publication Critical patent/CN109887259A/en
Application granted granted Critical
Publication of CN109887259B publication Critical patent/CN109887259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Dc Digital Transmission (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention provides a kind of single wire transmission device and methods, comprising: host computer, from equipment and single line and described is connected between equipment by the single line host computer;The host computer transmission drop-down reset pulse is described to respond the drop-down reset pulse from equipment and carry out Data Preparation to the single line;The inquiry drop-down pulse that the host computer sends detects described whether complete Data Preparation from equipment to the single line, in the state of the completion Data Preparation from equipment, the host computer sends reading data drop-down pulse and reads the data from equipment to the single line.Hardware resource can be effectively saved through the invention and improves communication efficiency, solve the problems, such as waste of the prior art to hardware resource and software resource.

Description

A kind of single wire transmission device and method
Technical field
The present invention relates to electronics and fields of communication technology, and in particular, to a kind of single wire transmission device and method.
Background technique
Single wire transmission system design be, as generallyd use in temperature monitoring system be company, Dallas monobus Temperature sensor, communication process is complicated, uses two-stage command format;In order to guarantee the accurate of data, it is also provided with 8 data schools Calculating is tested, the difficulty of the software greatly increased write, while wasting the resource of host computer.
In the system design of I2C bus, clock line is needed to connect with two buses of data line with host computer.Two independences There are also the limitation of timing between bus, control logic complexity is considerably increased.And relative to quick single-wire-protocol system, I2C in PCB layout more than line.
In conclusion the prior art all causes the waste of electric energy and resource to hardware resource and software resource.
Summary of the invention
For the defects in the prior art, the object of the present invention is to provide a kind of single wire transmission device and methods.
A kind of single wire transmission device provided according to the present invention, comprising: host computer, from equipment and single line, the host computer And it described is connected between equipment by the single line;
The host computer transmission drop-down reset pulse is described to respond the drop-down reset pulse simultaneously from equipment to the single line Carry out Data Preparation;
The inquiry drop-down pulse that the host computer sends detects described whether complete data preparation from equipment to the single line Work, in the state of the completion Data Preparation from equipment, the host computer, which is sent, reads data drop-down pulse to institute Single line is stated to read the data from equipment.
Preferably, further including external pull-up resistor or built-in pull-up resistor;
One end of the external pull-up resistor connects the single line, and the other end connects VCC and described from equipment, constitutes external Open drain circuit;
One end of the built-in pull-up resistor connects the single line, and the other end is connected inside equipment with VCC described, Constitute built-in open drain circuit.
Preferably, the duration of the drop-down reset pulse is greater than 220us.
Preferably, the inquiry drop-down pulse duration is less than 1us.
Preferably, in the state of the completion Data Preparation from equipment, it is described to be held from the equipment drop-down single line Continuous 2T time, the T are the minimum period from equipment.
A kind of single line transmission method, comprising:
Step 1: host computer sends drop-down reset pulse to single line, and the slave equipment on single line responds the drop-down reset pulse And carry out Data Preparation;
Step 2: the inquiry drop-down pulse that the host computer sends detects described whether complete number from equipment to the single line According to preparation, in the state of the completion Data Preparation from equipment, the host computer, which is sent, reads data drop-down arteries and veins It rushes to the single line to read the data from equipment.
Preferably, the duration of the drop-down reset pulse is greater than 220us.
Preferably, the inquiry drop-down pulse duration is less than 1us.
Preferably, in the state of the completion Data Preparation from equipment, it is described to be held from the equipment drop-down single line Continuous 2T time, the T are the minimum period from equipment.
Preferably, returning to R0==0 R1==0 simultaneously, table in the state of the completion Data Preparation from equipment Show and completes Data Preparation.
Compared with prior art, the present invention have it is following the utility model has the advantages that
Hardware resource can effectively be saved through the invention and improve communication efficiency, solve the prior art to hardware resource and The waste problem of software resource.
Detailed description of the invention
Upon reading the detailed description of non-limiting embodiments with reference to the following drawings, other feature of the invention, Objects and advantages will become more apparent upon:
Fig. 1 is the structure chart of single-wire communication device of the present invention;
Fig. 2 is pulse schematic diagram of the invention;
Fig. 3 is work flow diagram of the invention.
Specific embodiment
The present invention is described in detail combined with specific embodiments below.Following embodiment will be helpful to the technology of this field Personnel further understand the present invention, but the invention is not limited in any way.It should be pointed out that the ordinary skill of this field For personnel, without departing from the inventive concept of the premise, several changes and improvements can also be made.These belong to the present invention Protection scope.
As shown in Figure 1, a kind of single wire transmission device provided by the invention, comprising: host computer, from equipment, single line and pull-up Resistance, host computer and is connected between equipment by single line, and one end of pull-up resistor connects single line, the other end connect VCC and from Equipment constitutes open drain circuit.
Pull-up resistor includes external pull-up resistor R or built-in pull-up resistor Ri, one end connection single line of external pull-up resistor, The other end connects VCC and from equipment, constitutes external open drain circuit;One end of built-in pull-up resistor connects single line, the other end It is being connected inside equipment with VCC, is constituting built-in open drain circuit.
Host computer sends drop-down reset pulse to single line, responds drop-down reset pulse from equipment and carries out data beam worker Make;
Host computer sends inquiry drop-down pulse and detects to single line from whether equipment completes Data Preparation, from equipment In the state of completing Data Preparation, host computer sends reading data drop-down pulse and reads the data from equipment to single line.
In the present embodiment, it can be measurement temperature from equipment, humidity, magnetic field, pressure, speed, acceleration, voltage, and The sensor chip of the physical quantitys such as electric current.
Pull down the duration T of reset pulseresetIt, can also according to the demand of user, at single wire device end greater than 220us It changes, such as 440us, 880us, 1760us etc..Inquire drop-down pulse duration TiniLess than 1us.Data are completed from equipment In the state of preparation, continue the 2T time from equipment drop-down single line, T for from the minimum period of equipment, representative value in 15us, 20us, 25us, 30us, 35us etc..
If not completing physical quantity from equipment, single line would not be pulled down;Otherwise single line will be pulled down, R0 is obtained. If host computer obtains R0==0, upper computer equipment needs are reaffirmed after obtaining R1==0, are shown certain from equipment Data preparation is complete.
As shown in Fig. 2, TbbIt is connected to the time interval of two reading data, representative value is greater than 10us.Host computer sends 19 A reading data drop-down pulse reads data, and data bit weight format is as shown in table 1:
Table 1
On the basis of above-mentioned single wire transmission device, the present invention also provides a kind of single line transmission methods, comprising:
Step 1: host computer sends drop-down reset pulse to single line, and the slave equipment response drop-down reset pulse on single line is gone forward side by side Row Data Preparation;
Step 2: host computer sends inquiry drop-down pulse and detects to single line from whether equipment completes Data Preparation, In the state of equipment completion Data Preparation, host computer sends reading data drop-down pulse and is read to single line from equipment Data.
Preferred embodiment 1
The present invention is implemented host computer and single line temperature device point-to-point connection through single line, and host computer is by sending one Drop-down pulse allows chip temperature to start to work, and temperature transition is completed, and host computer can read the temperature value of chip temperature, entirely Process is quick, scans for and matches without other orders.The time, which is not received, in single wire device continues TresetUs length position When reset pulse, single wire device is without temperature transition process, and power consumption is very low.
Such as Fig. 3, the drop-down pulse of host computer sending time position 500us, chip temperature responds this drop-down pulse, start into Trip temperature conversion, it is all to read temperature value after 0 that host computer, which obtains flag bit R0 and R0,.The wherein C that 17bit temperature is read LISP program LISP is as follows
It is above to implement only by taking chip temperature as an example, and it is not limited to chip temperature.
Specific embodiments of the present invention are described above.It is to be appreciated that the invention is not limited to above-mentioned Particular implementation, those skilled in the art can make a variety of changes or modify within the scope of the claims, this not shadow Ring substantive content of the invention.In the absence of conflict, the feature in embodiments herein and embodiment can any phase Mutually combination.

Claims (10)

1. a kind of single wire transmission device characterized by comprising host computer, from equipment and single line, the host computer and it is described from It is connected between equipment by the single line;
The host computer transmission drop-down reset pulse is described to respond the drop-down reset pulse from equipment and carry out to the single line Data Preparation;
The inquiry drop-down pulse that the host computer sends detected to the single line it is described whether complete Data Preparation from equipment, In the state of the completion Data Preparation from equipment, the host computer, which is sent, reads data drop-down pulse to the single line To read the data from equipment.
2. single wire transmission device according to claim 1, which is characterized in that further include external pull-up resistor or built-in pull-up Resistance;
One end of the external pull-up resistor connects the single line, and the other end connects VCC and described from equipment, constitutes external drain electrode Open-circuit;
One end of the built-in pull-up resistor connects the single line, and the other end connects inside equipment with VCC described, in composition Set open drain circuit.
3. single wire transmission device according to claim 1, which is characterized in that the duration of the drop-down reset pulse is big In 220us.
4. single wire transmission device according to claim 1, which is characterized in that the inquiry drop-down pulse duration is less than 1us。
5. single wire transmission device according to claim 1, which is characterized in that complete Data Preparation from equipment described In the state of, described to continue the 2T time from the equipment drop-down single line, the T is the minimum period from equipment.
6. a kind of single line transmission method characterized by comprising
Step 1: host computer sends drop-down reset pulse to single line, and the slave equipment on single line responds the drop-down reset pulse and goes forward side by side Row Data Preparation;
Step 2: the inquiry drop-down pulse that the host computer sends detects described whether complete data standard from equipment to the single line Standby work, in the state of the completion Data Preparation from equipment, the host computer, which is sent, reads data drop-down pulse extremely The single line is to read the data from equipment.
7. single line transmission method according to claim 6, which is characterized in that the duration of the drop-down reset pulse is big In 220us.
8. single line transmission method according to claim 6, which is characterized in that the inquiry drop-down pulse duration is less than 1us。
9. single line transmission method according to claim 6, which is characterized in that complete Data Preparation from equipment described In the state of, described to continue the 2T time from the equipment drop-down single line, the T is the minimum period from equipment.
10. single line transmission method according to claim 6, which is characterized in that complete data preparation work from equipment described R0==0 R1==0 simultaneously is returned in the state of work, indicates to complete Data Preparation.
CN201910130289.1A 2019-02-21 2019-02-21 Single-wire transmission device and method Active CN109887259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910130289.1A CN109887259B (en) 2019-02-21 2019-02-21 Single-wire transmission device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910130289.1A CN109887259B (en) 2019-02-21 2019-02-21 Single-wire transmission device and method

Publications (2)

Publication Number Publication Date
CN109887259A true CN109887259A (en) 2019-06-14
CN109887259B CN109887259B (en) 2020-09-22

Family

ID=66928713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910130289.1A Active CN109887259B (en) 2019-02-21 2019-02-21 Single-wire transmission device and method

Country Status (1)

Country Link
CN (1) CN109887259B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111476991A (en) * 2020-03-06 2020-07-31 上海申矽凌微电子科技有限公司 Double-point temperature measurement system and method suitable for master-slave single bus communication protocol

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727422A (en) * 2008-10-29 2010-06-09 大唐移动通信设备有限公司 Method and system for controlling unibus equipment
CN202710107U (en) * 2012-07-25 2013-01-30 黄军辉 Single-bus digital temperature and humidity sensor and online real-time monitoring system thereof
CN103823776A (en) * 2014-02-28 2014-05-28 上海晟矽微电子股份有限公司 Unibus in communication with master equipment and slave equipment and communication method
CN104657303A (en) * 2014-10-13 2015-05-27 江苏瑞微电子有限公司 Unibus data communication method
CN106644112A (en) * 2016-11-10 2017-05-10 合肥移顺信息技术有限公司 Field programmable gate array (FPGA)-based industrial field temperature acquisition and alarm method and device
US10108578B2 (en) * 2013-09-11 2018-10-23 Texas Instruments Incorporated Single wire communications interface and protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101727422A (en) * 2008-10-29 2010-06-09 大唐移动通信设备有限公司 Method and system for controlling unibus equipment
CN202710107U (en) * 2012-07-25 2013-01-30 黄军辉 Single-bus digital temperature and humidity sensor and online real-time monitoring system thereof
US10108578B2 (en) * 2013-09-11 2018-10-23 Texas Instruments Incorporated Single wire communications interface and protocol
CN103823776A (en) * 2014-02-28 2014-05-28 上海晟矽微电子股份有限公司 Unibus in communication with master equipment and slave equipment and communication method
CN104657303A (en) * 2014-10-13 2015-05-27 江苏瑞微电子有限公司 Unibus data communication method
CN106644112A (en) * 2016-11-10 2017-05-10 合肥移顺信息技术有限公司 Field programmable gate array (FPGA)-based industrial field temperature acquisition and alarm method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111476991A (en) * 2020-03-06 2020-07-31 上海申矽凌微电子科技有限公司 Double-point temperature measurement system and method suitable for master-slave single bus communication protocol

Also Published As

Publication number Publication date
CN109887259B (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN108063799B (en) Serial distributed analog quantity airborne acquisition system
CN105306154A (en) Emission detection unit based on FPGA (Field Programmable Gate Array) and implementation method thereof
CN105388805A (en) SPI (Serial Peripheral Interface) bus-based measurement control system
CN203720837U (en) Unibus for master-slave device communication
CN203399150U (en) Electric energy meter networking system capable of automatically sending address information
CN109887259A (en) A kind of single wire transmission device and method
CN202738118U (en) Wireless humiture sensor network structure based on ZigBee
CN201503569U (en) South bridge chip power supply circuit
CN201903879U (en) Data collector of SD card
CN202040940U (en) Split type network intelligent temperature controller of central air conditioner
CN203688086U (en) Two-line remote temperature measuring circuit based on digital temperature sensor
CN103442418A (en) High-temperature data collection and synchronous hibernation control method of CC2530 nodes in coal field fire area
CN109256998A (en) Control the method and system and servo motor of current of electric sampling with high precision
CN205228473U (en) Miniature navigational computer based on field programmable gate array
CN205247119U (en) Gradual signal real -time supervision device of low frequency
CN205228671U (en) Temperature measuring apparatus
CN104052160A (en) Collecting device and method of electrical equipment data
CN204389714U (en) A kind of weather monitoring instrument realizing Temperature and Humidity based on SHT2X chip
CN107704417A (en) The method and its communication system to be communicated with equipment under test
CN202661559U (en) Host/device real-time detection circuit with USB interface
CN208835473U (en) A kind of wireless temperature measuring device for switch cabinet
CN206610140U (en) A kind of monitoring system of wind power plant
CN107391401B (en) A kind of method for reading data and system
CN102110039A (en) Method for enabling management module main chip of blade server to work under low-temperature environment
CN109855746A (en) Temperature value transmitting device and its method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant