CN105701052A - Communication device and communication method used for serial port communication - Google Patents

Communication device and communication method used for serial port communication Download PDF

Info

Publication number
CN105701052A
CN105701052A CN201610078133.XA CN201610078133A CN105701052A CN 105701052 A CN105701052 A CN 105701052A CN 201610078133 A CN201610078133 A CN 201610078133A CN 105701052 A CN105701052 A CN 105701052A
Authority
CN
China
Prior art keywords
module
bus
communication
geocoding
line
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
CN201610078133.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.)
Hefei Midea Intelligent Technologies Co Ltd
Original Assignee
Hefei Hualing Co Ltd
Midea Group 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 Hefei Hualing Co Ltd, Midea Group Co Ltd filed Critical Hefei Hualing Co Ltd
Priority to CN201610078133.XA priority Critical patent/CN105701052A/en
Publication of CN105701052A publication Critical patent/CN105701052A/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/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4009Coupling between buses with data restructuring
    • G06F13/4018Coupling between buses with data restructuring with data-width conversion
    • 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
    • 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/0022Multibus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a communication device and communication method used for serial port communication. The device comprises a main module and at least two slave modules, the main module communicates with a control device of equipment provided with the communication device, the main module is connected with a first bus and a second bus, the first end of each slave module is connected with the first bus, the second end of each slave module is connected with the second bus, and an address code of each slave module is unique. The method can be applied to household equipment to achieve one-to-many communication, long-distance communication can be achieved, and use experience of users is further improved.

Description

Communicator and communication means for serial communication
Technical field
The present invention relates to hardware technology, be specifically related to a kind of communicator for serial communication and communication means。
Background technology
Serial line interface (abbreviation serial ports) is a kind of can to go out accepting to be converted to continuous print serial data stream from the parallel data character of CPU, simultaneously can by device that the converting serial data streams of acceptance is parallel data character apparatus for controlling of supply such as CPU。
At present, serial ports is the most frequently used interface of communication between module, but the serial ports being currently used on household electrical appliance is essentially all man-to-man, it is impossible to realizes one-to-many such as primary module and communicates from module with multiple。
It addition, prior art exists Serial Peripheral Interface (SPI) (SerialPeripheralInterface, be called for short spi) bus and i2c (Inter-IntegratedCircuit) bus is expansible realizes one-to-many。But, spi bus and i2c bus cannot be applied on housed device, and the communication distance that reason is two buses is short, are not suitable for the communication of slightly distance, and then cannot promote the use of on housed device。
Summary of the invention
For defect of the prior art, the invention provides a kind of communicator for serial communication and communication means, it is possible to be applied on housed device and realize one-to-many, and then promote user's experience。
First aspect, the present invention provides a kind of communicator for serial communication, including:
Primary module, described primary module communicates with the control device of this communicator corresponding device;
At least two is from module, and described primary module is connected to the first bus and the second bus;
Each the first end from module connects described first bus, and the second end connects described second bus, and each unique from the geocoding of module。
Alternatively, described first bus is Tx line, and the second bus is Rx line;
Each from the first end of module by Rx line connect described first bus, the second end by Tx line connect described second bus。
Alternatively, the second bus that described primary module connects is constantly in output state;
The Tx line that each the second end from module connects is in high-impedance state at one's leisure, is in output state when sending data。
Second aspect, the present invention provides a kind of housed device, including controlling device, also includes any of the above-described described communicator, described control device and described communication。
Alternatively, described housed device is refrigerator。
The third aspect, the present invention provides a kind of communication means based on any of the above-described described communicator, including: described primary module with described from module communicate time, the described primary module transmission first information, the described first information includes the geocoding from module;
All from the module described first information of reception, and judge that whether the geocoding of oneself is identical with the geocoding that the described first information includes;
If having one to judge that the geocoding of oneself is identical with the geocoding that the described first information includes from module, then should perform corresponding operating from module according to the described first information, and obtain operating result, described operating result was sent described primary module。
Alternatively, if from module, at least one judges that the geocoding that oneself geocoding and the described first information include differs, then this information is abandoned。
Alternatively, described from module acquisition operating result, by the described operating result described primary module of transmission, particularly as follows:
The described Tx line configuring this second end from module from module is output state, and by the Tx line of this second end from module, described operating result is sent described primary module, and,
After described operating result is sent completely, this is configured to high-impedance state from the Tx line of the second end of module。
Alternatively, described method also includes: the described primary module access frequency that device is arranged that controls according to communicator corresponding device, the cycle is with described from module communication。
As shown from the above technical solution, the communicator for serial communication of the present invention and communication means, communicator arranges a primary module communicated with the control device of equipment, and by the first bus communicate with primary module respectively with the second bus multiple from module, and ensure each unique from the geocoding of module, and then realize the serial communication of one-to-many, above-mentioned communicator can realize the communication of slightly distance, it is usable on housed device, and then promotes user's experience preferably。
Further, the communication means of the present invention can realize primary module and the communication from module, and can maintain longer-distance communication, promotes user's experience, can promote the use of on housed device。
Accompanying drawing explanation
The structural representation of the communicator that Fig. 1 provides for one embodiment of the invention;
The schematic flow sheet of the communication means that Fig. 2 provides for one embodiment of the invention。
Detailed description of the invention
Below in conjunction with accompanying drawing, the detailed description of the invention of invention is further described。Following example are only for clearly illustrating technical scheme, and can not limit the scope of the invention with this。" first ", " second " that use in the embodiment of the present invention is only clearer explanation present context, does not have specific meanings, does not also limit any content。
Fig. 1 illustrates the structural representation of the communicator that one embodiment of the invention provides, as it is shown in figure 1, the communicator of the present embodiment includes: primary module 11 and at least two are from module 12;Wherein, primary module 11 communicates with the control device (not shown) of this communicator corresponding device;And this primary module 11 is connected to the first bus 11a and the second bus 11b;Each the first end 12a from module 12 connects described first bus 11a, and the second end 12b connects described second bus 11b, and each geocoding from module 12 is unique。
For example, in one implementation, the first bus 11a can be Tx line, and the second bus 11b can be Rx line;
Each from the first end 12a of module 12 by Rx line connect described first bus 11a, the second end 12b by Tx line connect described second bus 11b。
In a particular application, the second bus 11b that primary module 11 connects is constantly in output state;The Tx line that each the second end 12b from module 12 connects is in high-impedance state at one's leisure, is in output state when sending data。
As it is shown in figure 1, Rx and the Tx that primary module (Master) connects is as module bus, respectively it is connected to from module above-mentioned to Rx and Tx, and has the geocoding (in such as Fig. 1 from module 0x01,0x02,0x03,0x04) of oneself。The Tx bus of primary module is unanimously in output state, and the Tx line respectively connected from the second end of module is in high-impedance state at one's leisure, when sending data, is in output state。
The communicator of the present embodiment arranges a primary module communicated with the control device of equipment, and by the first bus communicate with primary module respectively with the second bus multiple from module, and ensure each unique from the geocoding of module, and then realize the serial communication of one-to-many, above-mentioned communicator can realize the communication of slightly distance, it is usable on housed device, and then promotes user's experience preferably。
On the other hand, the present invention also provides for a kind of housed device, including controlling device, may also include above-mentioned arbitrarily described communicator further, and described control device can with described communication。
For example, this housed device can be the housed device such as refrigerator, air-conditioning。
Fig. 2 illustrates the schematic flow sheet of the communication means that one embodiment of the invention provides, as in figure 2 it is shown, the communication means of the present embodiment comprises the steps:
201, described primary module with described from module communicate time, described primary module send the first information, the described first information includes the geocoding from module;
202, all from the module described first information of reception, and judge that whether the geocoding of oneself is identical with the geocoding that the described first information includes;
If 203 exist one judges that the geocoding of oneself is identical with the geocoding that the described first information includes from module, then should perform corresponding operating from module according to the described first information, and obtain operating result, described operating result was sent described primary module。
In the optional implementation of one, in aforesaid step 203 described from module obtain operating result, by described operating result send described primary module, can particularly as follows:
The described Tx line configuring this second end from module from module is output state, and by the Tx line of this second end from module, described operating result is sent described primary module, and,
After described operating result is sent completely, this is configured to high-impedance state from the Tx line of the second end of module。
In a particular application, the method shown in above-mentioned Fig. 2 also includes following not shown step 204:
If 204 at least one judge that the geocoding that oneself geocoding and the described first information include differs from module, then abandon this information。
That is, it is illustrated below at once complete communication process: the communication every time of the communication means of above-mentioned communicator is initiated by primary module, each receives information (first information described above) from module, and the address in this information was compared with the address being somebody's turn to do from module, if it is identical, then resolve above-mentioned information, and carry out subsequent treatment;If differing, then can abandon this information。
Special instruction, in information address with this from module's address identical from module, the instruction requirement that can include according to information, complete corresponding operating, and this result is exported by the Tx of the second end, before transmission, from module, the Tx of this second end should be configured as output to state;After information is sent completely, this is never overstated and the Tx of this second end is configured to high-impedance state and then a sign off。
It addition, in implementing process, described method also includes not shown step 205:
205, the described primary module access frequency that device is arranged that controls according to communicator corresponding device, the cycle is with described from module communication。
That is, primary module is according to functional requirement, once accesses each from module。Terminate after institute's module accesses one time。Additionally, the device that controls of equipment can by the frequency of intervalometer timer control access。Such as, having 4 RFID reader in refrigerator, refrigerator master control accesses each reader successively by serial ports, obtains the food information of its identification, and after all having communicated, this refrigerator master control obtains all foods information of storage in refrigerator。
The communication means of the present embodiment can realize primary module and the communication from module, and can maintain longer-distance communication, promotes user's experience, can promote the use of on housed device。
In the description of the present invention, describe a large amount of detail。It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details。In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description。
Similarly, it is to be understood that, one or more in order to what simplify that disclosure helping understands in each inventive aspect, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes。But, the method for the disclosure should not explained in reflecting an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim。More precisely, as the following claims reflect, inventive aspect is in that all features less than single embodiment disclosed above。Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention。
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments。Such as, in the following claims, the one of any of embodiment required for protection can mode use in any combination。
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination。The present invention will be described rather than limits the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment without departing from the scope of the appended claims。In the claims, any reference marks that should not will be located between bracket is configured to limitations on claims。Word " comprises " and does not exclude the presence of the element or step not arranged in the claims。Word "a" or "an" before being positioned at element does not exclude the presence of multiple such element。The present invention by means of including the hardware of some different elements and can realize by means of properly programmed computer。In the unit claim listing some devices, several in these devices can be through same hardware branch and specifically embody。Word first, second and third use do not indicate that any order。Can be title by these word explanations。
Last it is noted that various embodiments above is only in order to illustrate technical scheme, it is not intended to limit;Although the present invention being described in detail with reference to foregoing embodiments, it will be understood by those within the art that: the technical scheme described in foregoing embodiments still can be modified by it, or wherein some or all of technical characteristic is carried out equivalent replacement;And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme, it all should be encompassed in the middle of the claim of the present invention and the scope of description。

Claims (9)

1. the communicator for serial communication, it is characterised in that including:
Primary module, described primary module communicates with the control device of this communicator corresponding device;
At least two is from module, and described primary module is connected to the first bus and the second bus;
Each the first end from module connects described first bus, and the second end connects described second bus, and each unique from the geocoding of module。
2. device according to claim 1, it is characterised in that described first bus is Tx line, the second bus is Rx line;
Each from the first end of module by Rx line connect described first bus, the second end by Tx line connect described second bus。
3. device according to claim 2, it is characterised in that the second bus that described primary module connects is constantly in output state;
The Tx line that each the second end from module connects is in high-impedance state at one's leisure, is in output state when sending data。
4. a housed device, including controlling device, it is characterised in that also includes the arbitrary described communicator of the claims 1 to 3, described control device and described communication。
5. housed device according to claim 4, it is characterised in that described housed device is refrigerator。
6. the communication means based on the arbitrary described communicator of the claims 1 to 3, it is characterised in that including:
Described primary module with described from module communicate time, described primary module send the first information, the described first information includes the geocoding from module;
All from the module described first information of reception, and judge that whether the geocoding of oneself is identical with the geocoding that the described first information includes;
If having one to judge that the geocoding of oneself is identical with the geocoding that the described first information includes from module, then should perform corresponding operating from module according to the described first information, and obtain operating result, described operating result was sent described primary module。
7. method according to claim 6, it is characterised in that if from module, at least one judges that the geocoding that oneself geocoding and the described first information include differs, then abandon this information。
8. method according to claim 6, it is characterised in that described from module acquisition operating result, by the described operating result described primary module of transmission, particularly as follows:
The described Tx line configuring this second end from module from module is output state, and by the Tx line of this second end from module, described operating result is sent described primary module, and,
After described operating result is sent completely, this is configured to high-impedance state from the Tx line of the second end of module。
9. method according to claim 6, it is characterised in that described method also includes: the described primary module access frequency that device is arranged that controls according to communicator corresponding device, the cycle is with described from module communication。
CN201610078133.XA 2016-02-02 2016-02-02 Communication device and communication method used for serial port communication Pending CN105701052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610078133.XA CN105701052A (en) 2016-02-02 2016-02-02 Communication device and communication method used for serial port communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610078133.XA CN105701052A (en) 2016-02-02 2016-02-02 Communication device and communication method used for serial port communication

Publications (1)

Publication Number Publication Date
CN105701052A true CN105701052A (en) 2016-06-22

Family

ID=56221954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610078133.XA Pending CN105701052A (en) 2016-02-02 2016-02-02 Communication device and communication method used for serial port communication

Country Status (1)

Country Link
CN (1) CN105701052A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106677581A (en) * 2016-12-16 2017-05-17 宁夏鑫华源智能立体停车设备制造有限公司 Stereo parking equipment control method based on I2C serial bus control
CN107911273A (en) * 2017-12-18 2018-04-13 合肥华凌股份有限公司 Communication system, communication means and the household electrical appliance of household electrical appliance
CN108123862A (en) * 2017-12-18 2018-06-05 合肥华凌股份有限公司 Communication system, communication means and the household electrical appliance of household electrical appliance
CN108055185B (en) * 2017-12-18 2020-08-04 合肥华凌股份有限公司 Communication system and communication method of household appliance and household appliance

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731383A (en) * 2005-08-29 2006-02-08 杭州华为三康技术有限公司 A system and method for equipment management
US20080114914A1 (en) * 2006-11-14 2008-05-15 Harris Corporation Low power distribution system for an unattended ground sensor system
CN101834912A (en) * 2010-04-20 2010-09-15 南京航空航天大学 Device for dynamically allocating slave addresses in pair of multistandard serial communications and use method
CN103425611A (en) * 2013-05-20 2013-12-04 万高(杭州)科技有限公司 Serial communication method for field of metering
CN104317765A (en) * 2014-10-20 2015-01-28 成都广达电子股份有限公司 Serial communication based one-to-many communication system and implementation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731383A (en) * 2005-08-29 2006-02-08 杭州华为三康技术有限公司 A system and method for equipment management
US20080114914A1 (en) * 2006-11-14 2008-05-15 Harris Corporation Low power distribution system for an unattended ground sensor system
CN101834912A (en) * 2010-04-20 2010-09-15 南京航空航天大学 Device for dynamically allocating slave addresses in pair of multistandard serial communications and use method
CN103425611A (en) * 2013-05-20 2013-12-04 万高(杭州)科技有限公司 Serial communication method for field of metering
CN104317765A (en) * 2014-10-20 2015-01-28 成都广达电子股份有限公司 Serial communication based one-to-many communication system and implementation method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106677581A (en) * 2016-12-16 2017-05-17 宁夏鑫华源智能立体停车设备制造有限公司 Stereo parking equipment control method based on I2C serial bus control
CN107911273A (en) * 2017-12-18 2018-04-13 合肥华凌股份有限公司 Communication system, communication means and the household electrical appliance of household electrical appliance
CN108123862A (en) * 2017-12-18 2018-06-05 合肥华凌股份有限公司 Communication system, communication means and the household electrical appliance of household electrical appliance
WO2019119740A1 (en) * 2017-12-18 2019-06-27 合肥华凌股份有限公司 Communication system and communication method for household appliance, and household appliance
CN108055185B (en) * 2017-12-18 2020-08-04 合肥华凌股份有限公司 Communication system and communication method of household appliance and household appliance

Similar Documents

Publication Publication Date Title
US11665007B2 (en) PoE powered device with link layer startup processor
CN105701052A (en) Communication device and communication method used for serial port communication
US8018892B1 (en) All-in-one wireless network device
CN107111588A (en) The data transfer of PCIe protocol is used via USB port
CN108292990A (en) Communication system and communication means
CN104838636A (en) Ethernet over USB interfaces with full-duplex differential pairs
CN105425669B (en) Communication interface circuit, control method thereof and household appliance applying communication interface circuit
CN107391419A (en) Support the universal serial bus hub equipment of more main frames and automobile-used main frame
CN108111382A (en) Communicator and its communication means based on I3C buses
CN105818762B (en) Intelligent central control system and its startup method for automobile
US10033546B2 (en) Method and system for reprogramming
CN105308585A (en) Method for communicating data, communication controller and circuit arrangement
CN103998880A (en) Household appliance with a USB device and method for operating a household appliance
CN204117142U (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN104239175A (en) Debugging system, debugging method and debugging device for chip
CN105607940A (en) Method for transmitting information from BDK to UEFI BIOS in ARM platform
CN104092661B (en) The communication means and device of virtual machine serial ports
CN102445981B (en) Data transmission system and data transmission method
CN105491419B (en) A kind of combination tv and data sharing method
CN109862083A (en) A kind of Activiation method of internet of things equipment, device and equipment
CN108055212B (en) Method and device compatible with PSE chip
US20160212772A1 (en) Wireless ethernet network controlling method and wireless ethernet network system
CN115303203A (en) Debugging board of vehicle-mounted controller, vehicle-mounted controller mainboard and vehicle
CN100511051C (en) Share connection expansion method of controller and device thereof
CN106897237A (en) The method and apparatus switched by BIOS controlling bus equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20180207

Address after: 230601 Building No. 198, building No. 198, Mingzhu Avenue, Anhui high tech Zone, Anhui

Applicant after: Hefei Midea Intelligent Technology Co., Ltd.

Address before: 230601 Hefei economic and Technological Development Zone, Fairview Road, Anhui

Applicant before: Hefei Hualing Co., Ltd.

Applicant before: Midea Group Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160622