CN111767239B - One-master multi-slave power bus signal transmission method and device - Google Patents

One-master multi-slave power bus signal transmission method and device Download PDF

Info

Publication number
CN111767239B
CN111767239B CN202010908689.3A CN202010908689A CN111767239B CN 111767239 B CN111767239 B CN 111767239B CN 202010908689 A CN202010908689 A CN 202010908689A CN 111767239 B CN111767239 B CN 111767239B
Authority
CN
China
Prior art keywords
slave
arbitration
hand
numerical value
receiving
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.)
Active
Application number
CN202010908689.3A
Other languages
Chinese (zh)
Other versions
CN111767239A (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.)
Shenzhen Anglo American Technology Co ltd
Original Assignee
Shenzhen Anglo American 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 Shenzhen Anglo American Technology Co ltd filed Critical Shenzhen Anglo American Technology Co ltd
Priority to CN202010908689.3A priority Critical patent/CN111767239B/en
Publication of CN111767239A publication Critical patent/CN111767239A/en
Application granted granted Critical
Publication of CN111767239B publication Critical patent/CN111767239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/14Handling requests for interconnection or transfer
    • G06F13/36Handling requests for interconnection or transfer for access to common bus or bus system
    • G06F13/362Handling requests for interconnection or transfer for access to common bus or bus system with centralised access control

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Small-Scale Networks (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

The invention relates to the technical field of power bus communication, in particular to a method and a device for transmitting a power bus signal of one master and multiple slaves, wherein the method comprises the following steps: sending a communication control command to the slave; receiving a corresponding grade of return code current returned by a slave according to a preset instruction, wherein the preset instruction comprises online response, different numerical value intervals and hand raising arbitration; judging whether the slave machine has hand raising arbitration or abnormal numerical value interval according to the grade of the echo current; if yes, sending a specific data query instruction to the slave machine with the hand raising arbitration or the abnormal numerical value interval, and receiving a digital signal returned by the slave machine. The invention effectively solves the problems of low efficiency and reliability of power bus signal transmission and unstable power supply by combining the analog quantity and the digital quantity in the slave loop information process.

Description

One-master multi-slave power bus signal transmission method and device
Technical Field
The invention relates to the technical field of power bus communication, in particular to a method and a device for transmitting a power bus signal with one master and multiple slaves.
Background
The main multi-slave power bus product with the communication and power supply functions on the market at present is a transmitted digital signal, and specific digital information is transmitted in a waveform mode.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method and a device for transmitting a power bus signal with one master and multiple slaves, aiming at solving the problems of low efficiency and reliability of power bus signal transmission and unstable power supply.
In order to solve the technical problems, the invention adopts the following technical scheme:
in a first aspect, a method for transmitting a power bus signal of one master and multiple slaves is provided, which includes:
sending a communication control command to the slave;
receiving a corresponding grade of return code current returned by a slave according to a preset instruction, wherein the preset instruction comprises online response, different numerical value intervals and hand raising arbitration;
judging whether the slave machine has hand raising arbitration or abnormal numerical value interval according to the grade of the echo current;
if yes, sending a specific data query instruction to the slave machine with the hand raising arbitration or the abnormal numerical value interval, and receiving a digital signal returned by the slave machine.
The communication control instruction is an online slave machine number retrieval instruction, a slave machine state query instruction or a slave machine data query instruction, wherein the online slave machine number retrieval instruction corresponds to online response, the slave machine state query instruction corresponds to holding arbitration, and the slave machine data query instruction corresponds to different numerical value intervals.
The code-returning current is divided into 16 grades, wherein grade 1 to grade 2 correspond to online response, grade 3 to grade 14 correspond to different numerical value intervals, and grade 15 to grade 16 correspond to hand-holding arbitration.
Wherein, the code-returning current is an analog quantity of 1 pulse.
Wherein the returned digital signal is 8 pulses.
In a second aspect, a master-multi-slave power bus signal transmission device is provided, which includes:
the sending module is used for sending a communication control command to the slave machines or sending a specific data query command to the slave machines with hand raising arbitration or abnormal numerical value intervals;
the receiving module is used for receiving the return code current of the slave machine at the corresponding grade returned according to a preset instruction, wherein the preset instruction comprises online response, different numerical value intervals and hand raising arbitration, and is also used for receiving a digital signal returned by the slave machine;
and the judging module is used for judging whether the slave machine has the hand raising arbitration or the numerical value interval abnormity according to the grade of the return code current.
The invention has the beneficial effects that:
the invention provides a method and a device for transmitting signals of a power bus with one master and multiple slaves, wherein the method comprises the following steps: sending a communication control command to the slave; receiving a corresponding grade of return code current returned by a slave according to a preset instruction, wherein the preset instruction comprises online response, different numerical value intervals and hand raising arbitration; judging whether the slave machine has hand raising arbitration or abnormal numerical value interval according to the grade of the echo current; if yes, a specific data query instruction is sent to the slave machine with the hand raising arbitration or the abnormal numerical value interval, and the digital signal returned by the slave machine is received.
Drawings
The detailed structure of the invention is described in detail below with reference to the accompanying drawings
Fig. 1 is a flow chart of a method for transmitting a master-slave power bus signal according to an embodiment of the present invention;
fig. 2 is a diagram of slave echo current data structure according to an embodiment of the present invention;
FIG. 3 is an illustration of slave loop current level setting provided by an embodiment of the present invention;
FIG. 4 is a block diagram of a master-slave power bus signaling apparatus according to an embodiment of the present invention;
fig. 5 is a hardware connection diagram of a master-slave power bus signal transmission apparatus according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating the physical level definition of a master-slave power bus signaling apparatus according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating the definition of the digital signal bits 0 and 1 of a master multi-slave power bus signaling apparatus according to an embodiment of the present invention;
fig. 8 is a slave loop code pulse definition diagram of a master-slave power bus signal transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order to explain technical contents, structural features, and objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
Referring to fig. 1, in a first aspect, a method for transmitting a power bus signal of a master multiple slaves is provided, including:
step S101, sending a communication control command to the slave.
And S102, receiving the return code current of the slave at the corresponding grade returned according to a preset instruction, wherein the preset instruction comprises online response, different numerical value intervals and hand raising arbitration. Specifically, the online response means that the slave on the bus replies to the query instruction sent by the host; the hand-lifting arbitration means that when the slave computer is abnormal and needs to communicate with the host computer, a hand-lifting signal can be sent out autonomously, and after the bus receives the hand-lifting signal, the bus can inquire and position the address of the hand-lifting signal quickly.
Step S103, judging whether the slave machine has the hand raising arbitration or the numerical value interval abnormity according to the grade of the return code current.
And step S104, if yes, sending a specific data query instruction to the slave machine with the hand raising arbitration or the abnormal numerical value interval, and receiving a digital signal returned by the slave machine.
The invention has the beneficial effects that:
the invention provides a method and a device for transmitting signals of a power bus with one master and multiple slaves, wherein the method comprises the following steps: sending a communication control command to the slave; receiving a corresponding grade of return code current returned by a slave according to a preset instruction, wherein the preset instruction comprises online response, different numerical value intervals and hand raising arbitration; judging whether the slave machine has hand raising arbitration or abnormal numerical value interval according to the grade of the echo current; if yes, a specific data query instruction is sent to the slave machine with the hand raising arbitration or the abnormal numerical value interval, and the digital signal returned by the slave machine is received.
The communication control instruction is an online slave machine number retrieval instruction, a slave machine state query instruction or a slave machine data query instruction, wherein the online slave machine number retrieval instruction corresponds to online response, the slave machine state query instruction corresponds to holding arbitration, and the slave machine data query instruction corresponds to different numerical value intervals.
Specifically, as shown in fig. 2, when the communication control command is a slave status query command, the master allocates one bit to each slave, and the slave gives a presence response (level 1 or level 2 as agreed) according to its presence status. When the communication control command is a slave data query command, the master allocates one bit to each slave, and the slave replies different currents for data return according to the value interval acquired by the slave.
It should be noted that the communication control command is composed of three bytes, which are a control byte, an address byte, and a check code, and when the master sends the communication control command to the slaves, the return code current returned by each slave is an analog quantity of 1 pulse. When the host sends a specific data query command to the slave, the slave returns a digital quantity of 8 pulses to meet the requirement of higher numerical precision.
Further, referring to fig. 3, the code-return current is divided into 16 levels, wherein a level 1 to a level 2 correspond to online response, a level 3 to a level 14 correspond to different value intervals, and a level 15 to a level 16 correspond to hand-holding arbitration.
Wherein, the code-returning current is an analog quantity of 1 pulse.
Wherein the returned digital signal is 8 pulses.
Referring to fig. 4, fig. 4 is a block diagram of a power bus signaling apparatus with multiple masters and slaves according to an embodiment of the present invention, and a second aspect of the present invention provides a power bus signaling apparatus with multiple masters and slaves, including:
the sending module 10 is used for sending a communication control command to the slave machines or sending a specific data query command to the slave machines with hand raising arbitration or abnormal numerical value intervals;
the receiving module 20 is configured to receive a return code current of a corresponding level returned by the slave according to a preset instruction, where the preset instruction includes an online response, different value intervals and a hand raising arbitration, and is further configured to receive a digital signal returned by the slave;
and the judging module 30 is used for judging whether the slave machine has the hand raising arbitration or the numerical value interval abnormity according to the level of the return code current.
Referring to fig. 5, fig. 5 is a hardware connection diagram of a master-slave power bus signal transmission apparatus according to an embodiment of the present invention, which can implement the above-described master-slave power bus signal transmission method, and includes a master 100, two power buses 200 connected to the master 100, and a plurality of slaves 300 connected to the two power buses 200.
It is understood that the master 100 can control each slave 300 in real time, including scanning the online status of each slave 300 in real time and collecting data of each slave 300 in real time.
Wherein the two power buses 200 include a power communication line 210 and a ground line 220.
Wherein the number of the slave machines 300 is not more than 254.
Further, as shown in fig. 6, all the signals transmitted by the host 100 are digital signals, and three different levels are set during transmission: VH, VM1, VL, where VH is the main level of the power bus, VM1 is the M level sent by the host 100, VL is the 0 level, and the 0/1 signal sent by the host is distinguished by both.
The slave 300 replies in response to the signal sent by the master 100 at the level of VM1, and the slave replies with different currents as required for replying data, as shown in fig. 6, the interval from VM1 to VMn is the interval of bus voltage formed by replying with different currents.
Specifically, the digital signal bits 0 and 1 transmitted by the host 100 are defined as shown in fig. 7, and one byte is composed of 11 bits, which are a start code (0), an 8-bit data code, a parity code, and a stop code (1), respectively.
More specifically, as shown in fig. 8, the slave 300 returns the code level to VM, and the slave 300 starts to return the current signal when the bus level is VM.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (6)

1. A method for transmitting a master-to-multiple slave power bus signal, comprising:
sending a communication control command to the slave;
receiving a return code current of a corresponding grade returned by a slave according to a preset instruction, wherein the preset instruction comprises an online response, different numerical value intervals and a hand-lifting arbitration, the slave on an online response finger bus replies to an inquiry instruction sent by a host, the hand-lifting arbitration finger can independently send a hand-lifting signal when the slave is abnormal and needs to communicate with the host, and the bus can quickly inquire and position the address of the hand-lifting signal after receiving the hand-lifting signal;
judging whether the slave machine has hand raising arbitration or abnormal numerical value interval according to the grade of the echo current;
if yes, sending a specific data query instruction to the slave machine with the hand raising arbitration or the abnormal numerical value interval, and receiving a digital signal returned by the slave machine.
2. The method according to claim 1, wherein the communication control command is an online slave number search command, a slave status query command, or a slave data query command, wherein the online slave number search command corresponds to an online response, the slave status query command corresponds to a hands-off arbitration, and the slave data query command corresponds to different value ranges.
3. The method as claimed in claim 1, wherein the code current is divided into 16 levels, wherein level 1 to level 2 correspond to online responses, level 3 to level 14 correspond to different value ranges, and level 15 to level 16 correspond to hand-held arbitration.
4. The method of claim 1, wherein the code-return current is an analog of 1 pulse.
5. The method of claim 1, wherein the returned digital signal is 8 pulses.
6. A master-slave power bus signal transfer apparatus, comprising:
the sending module is used for sending a communication control command to the slave machines or sending a specific data query command to the slave machines with hand raising arbitration or abnormal numerical value intervals;
the receiving module is used for receiving the echo current of the slave machine at the corresponding level returned according to a preset instruction, wherein the preset instruction comprises an online response, different numerical value intervals and a hand-lifting arbitration, and is also used for receiving a digital signal returned by the slave machine, the slave machine on the online response finger bus replies to an inquiry instruction sent by the host machine, the hand-lifting arbitration finger can independently send a hand-lifting signal when the slave machine is abnormal and needs to communicate with the host machine, and the bus can quickly inquire and position the address of the hand-lifting signal after receiving the hand-lifting signal;
and the judging module is used for judging whether the slave machine has the hand raising arbitration or the numerical value interval abnormity according to the grade of the return code current.
CN202010908689.3A 2020-09-02 2020-09-02 One-master multi-slave power bus signal transmission method and device Active CN111767239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010908689.3A CN111767239B (en) 2020-09-02 2020-09-02 One-master multi-slave power bus signal transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010908689.3A CN111767239B (en) 2020-09-02 2020-09-02 One-master multi-slave power bus signal transmission method and device

Publications (2)

Publication Number Publication Date
CN111767239A CN111767239A (en) 2020-10-13
CN111767239B true CN111767239B (en) 2021-01-01

Family

ID=72729276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010908689.3A Active CN111767239B (en) 2020-09-02 2020-09-02 One-master multi-slave power bus signal transmission method and device

Country Status (1)

Country Link
CN (1) CN111767239B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1296245A (en) * 1999-12-02 2001-05-23 王殊 Two-bus communication method and fire alarm system using same
CN2524242Y (en) * 2001-12-24 2002-12-04 张明亮 Super anti-interfere intellectual signal reversing circuits for fire disaster determiner
CN103530969A (en) * 2013-11-01 2014-01-22 浙江爱德电子有限公司 Fire alarm controller loop unit and control method thereof
EP2713680A1 (en) * 2012-09-27 2014-04-02 Vossloh-Schwabe Deutschland GmbH Method for the determination of the availability of a bus-line and communication control unit

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102006055887A1 (en) * 2006-11-27 2008-05-29 Beckhoff Automation Gmbh Communication system with a master-slave structure
CN103530997B (en) * 2013-11-01 2016-05-11 浙江爱德电子有限公司 Fire alarm control system and control method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1296245A (en) * 1999-12-02 2001-05-23 王殊 Two-bus communication method and fire alarm system using same
CN2524242Y (en) * 2001-12-24 2002-12-04 张明亮 Super anti-interfere intellectual signal reversing circuits for fire disaster determiner
EP2713680A1 (en) * 2012-09-27 2014-04-02 Vossloh-Schwabe Deutschland GmbH Method for the determination of the availability of a bus-line and communication control unit
CN103530969A (en) * 2013-11-01 2014-01-22 浙江爱德电子有限公司 Fire alarm controller loop unit and control method thereof

Also Published As

Publication number Publication date
CN111767239A (en) 2020-10-13

Similar Documents

Publication Publication Date Title
EP0221303B1 (en) Automatic i/o address assignment
US10169282B2 (en) Bus serialization for devices without multi-device support
EP1877911B1 (en) I2c slave/master interface enhancement using state machines
US20080178011A1 (en) Method and apparatus for usb/otg connection providing active hnp requests and saving host power
CN112100102B (en) Interface management circuit, graphic signal generator and USB TYPE-C patch cord
EP2842293B1 (en) Usb 3.0 link layer timer adjustment to extend distance
CN110635982B (en) Double-host communication method and system on communication bus, industrial control gateway and storage medium
CN102339267A (en) I2C address translation
CN111488304B (en) Interface switching circuit
CN111767239B (en) One-master multi-slave power bus signal transmission method and device
CN111435927A (en) Fast link turnaround using MIPI D-PHY
CN103412838A (en) Expansion system, communication method, address configuration method, equipment and device
CN110740085B (en) Communication method, communication device and terminal based on parallel operation system
CN103178580A (en) Interface circuit used for cascade connection and series battery management and method thereof
KR20210075878A (en) I3c hub promoting backward compatibility with i2c
CN205219137U (en) Multi -axis motion control of bus type robot ware
CN111813723B (en) Power bus data transmission method and device and computer readable storage medium
CN114157641B (en) Automatic generation system and method for control equipment address based on pulse width communication
CN110850770B (en) Multi-host quick judgment and quitting method
CN113596189A (en) Parallel addressing method, battery pack and parallel addressing system
CN216850741U (en) Laser optical module control circuit and laser
TWI776180B (en) Electronic system
CN118051462A (en) Serial communication bus system with dynamic address table and its control method
US8307145B2 (en) Method and system for connecting multiple IDE devices to a USB apparatus using a single USB-to-IDE adapter
CN116578519A (en) Communication method, device, equipment and medium

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