CN115987708A - Method, system and storage medium for realizing single-wire protocol of multi-device interaction - Google Patents

Method, system and storage medium for realizing single-wire protocol of multi-device interaction Download PDF

Info

Publication number
CN115987708A
CN115987708A CN202211656353.8A CN202211656353A CN115987708A CN 115987708 A CN115987708 A CN 115987708A CN 202211656353 A CN202211656353 A CN 202211656353A CN 115987708 A CN115987708 A CN 115987708A
Authority
CN
China
Prior art keywords
leaf
information
equipment
address
root
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
CN202211656353.8A
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.)
Shenzhen Videostrong Technology Co ltd
Original Assignee
Shenzhen Videostrong 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 Videostrong Technology Co ltd filed Critical Shenzhen Videostrong Technology Co ltd
Priority to CN202211656353.8A priority Critical patent/CN115987708A/en
Publication of CN115987708A publication Critical patent/CN115987708A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The application relates to the technical field of audio-visual equipment control, in particular to a method, a system and a storage medium for realizing a single-wire protocol of multi-equipment interaction, wherein the method comprises the following steps: acquiring address information of root equipment; acquiring all leaf devices connected with the root device and the connection logic relationship between the leaf devices and the root device; performing address allocation on the leaf equipment according to the connection logic relationship to obtain address information; acquiring a device control instruction, and acquiring initiator information and receiver information according to the device control instruction; searching address information of corresponding root equipment or leaf equipment according to the initiator information, and enabling the root equipment or the leaf equipment corresponding to the initiator information to send interactive information to the leaf equipment corresponding to the receiver information; and if the leaf device corresponding to the receiver information responds to the interactive information, the leaf device corresponding to the receiver is enabled to establish communication connection with the root device or the leaf device corresponding to the initiator information. The method and the device have the effect of conveniently realizing the global control of a plurality of audio-visual devices.

Description

Method, system and storage medium for realizing single-wire protocol of multi-device interaction
Technical Field
The present application relates to the technical field of audiovisual device control, and in particular, to a method, a system, and a storage medium for implementing a single-wire protocol for multi-device interaction.
Background
With the development of science and technology, more and more consumer electronics audio-visual devices have come into the homes of big families, and the lives of people become colorful due to the audio-visual devices such as DVD, digital tablet computers, set top boxes, recordable devices, digital power amplifiers, sound equipment, game equipment and the like.
However, with the increase of the audiovisual devices in the home, the problem is that more and more remote controllers are provided for each different audiovisual device, and different audiovisual devices need to be controlled by different remote controllers, which results in that the user needs to turn on different devices by different remote controllers each time he needs to watch movies, play games, etc., and the operation is very complicated.
Disclosure of Invention
In order to conveniently realize the global control of a plurality of audio-visual devices, the application provides a method, a system and a storage medium for realizing a single-wire protocol of multi-device interaction.
In a first aspect, a method for implementing a single-line protocol of multi-device interaction provided by the present application adopts the following technical solution:
a method for realizing a single-wire protocol of multi-device interaction comprises the following steps:
acquiring address information of root equipment;
acquiring all leaf devices connected with the root device and a connection logic relationship;
performing address allocation on the leaf equipment according to the connection logic relationship to obtain leaf equipment address information of all the leaf equipment;
acquiring a device control instruction, and acquiring initiator information and receiver information according to the device control instruction;
searching address information of the corresponding root device or leaf device according to the initiator information, and enabling the root device or leaf device corresponding to the initiator information to send interactive information to the leaf device corresponding to the receiver information;
and the leaf equipment corresponding to the receiver information responds to the interaction information to establish communication connection.
Preferably, the connection logic relationship includes a first-level association and a multi-level association, and the obtaining of all leaf devices connected to the root device and the connection logic relationship includes the following steps:
acquiring the connection number of the equipment on the leaf equipment;
if the device connection number on the leaf device is 1, the connection logic relationship between the leaf device and the root device is a first-level association;
if the connection number of the equipment on the leaf equipment is 2, the connection logic relationship between the leaf equipment and the root equipment is multi-level association;
in particular, the method comprises the following steps of,
if a leaf device is connected to a leaf device with n levels of associations, the leaf device is n +1 level of associations, n =1,2,3.
Preferably, the address information includes a physical address, the address information of the root device is obtained, and address allocation is performed on the leaf devices according to the connection logical relationship, so as to obtain the address information of the leaf devices of all the leaf devices, which specifically includes:
acquiring an initial physical address of a root device, wherein the initial physical address is represented by multi-bit address data consisting of a plurality of 0;
if the leaf device is a leaf device associated with the root device in a first level, replacing a first bit 0 in the initial physical address with a non-0 number to obtain a new first-level physical address, and distributing the new first-level physical address to a plurality of leaf devices associated in a first level, wherein the first-level physical addresses of the leaf devices are different;
and if the leaf device is a leaf device which is associated with the root device in multiple levels, acquiring a physical address of a parent associated device of the leaf device, replacing a first bit 0 in the physical address with a non-0 number to acquire a new multi-level physical address, and distributing the new multi-level physical address to the leaf device, wherein the parent associated device is characterized by being connected with the leaf device and being associated with one level less than the leaf device.
Preferably, the address information further includes a logical address, obtains root device address information, and performs address allocation on the leaf devices according to the connection logical relationship, so as to obtain leaf device address information of all the leaf devices, and the method specifically includes:
acquiring an initial logical address of root equipment, wherein the initial logical address defaults to 0;
judging the equipment type of the leaf equipment, acquiring a corresponding logical address from a preset logical address allocation table according to the equipment type, and allocating the logical address to the corresponding leaf equipment.
Preferably, the obtaining a corresponding logical address from a preset logical address allocation table according to the device type and allocating the logical address to a corresponding leaf device further includes:
after any leaf device acquires the corresponding logical address, enabling the leaf device to send first broadcast information containing the logical address;
judging whether leaf equipment responds to the first broadcast information and sends confirmation information, wherein the confirmation information is characterized in that when a logic address in the first broadcast information is occupied by other leaf equipment, the leaf equipment on the logic address responds to the first broadcast information currently;
if the confirmation information exists, the leaf equipment sending the first broadcast information resets the logic address according to the equipment type of the leaf equipment, and the steps are repeated;
and if the confirmation information does not exist, the leaf equipment is enabled to occupy the corresponding logical address.
Preferably, after the physical address and the logical address of the leaf device are both allocated, the method further includes the following steps:
causing the leaf device to send out second broadcast information, the second broadcast information comprising a physical address and a logical address;
and associating the physical address and the logical address of the leaf signal according to the second broadcast information and declaring that the corresponding address is occupied.
Preferably, the method further comprises the following steps:
acquiring the number of leaf devices;
judging whether the number of the leaf devices is larger than a preset number or not;
if so, acquiring all historical equipment control instructions, and acquiring common equipment combination information according to a plurality of historical equipment control instructions;
selecting leaf equipment which is adjacently connected with the primary associated equipment in the common equipment combination information, and changing the physical address and the logical address of the leaf equipment into the physical address and the logical address of the equipment associated with the primary.
Preferably, the step of enabling the root device or the leaf device corresponding to the initiator information to send the interaction information to the leaf device corresponding to the receiver information includes:
after the root device or the leaf device corresponding to the initiator sends out the interactive information, judging whether reply information of the leaf device corresponding to the receiver information can be received or not;
if the information can be received, responding according to the interaction information to establish communication connection;
if the leaf device cannot be received, judging whether a physical address and a logical address of the leaf device corresponding to the receiver information exist or not;
if not, generating corresponding first error information;
and if so, generating corresponding second error information.
In a second aspect, the present application provides a system for implementing a single-wire protocol with multiple device interactions, which adopts the following technical solutions:
a single-wire protocol implementation system for multi-device interaction comprises a control bus and a software control module, wherein,
the software control module is used for acquiring the address information of root equipment on the control bus;
acquiring all leaf devices connected with the root device and a connection logic relationship;
performing address allocation on the leaf equipment according to the connection logic relationship to obtain leaf equipment address information of all the leaf equipment;
acquiring a device control instruction, and acquiring initiator information and receiver information according to the device control instruction;
the software control module is further configured to search address information of the corresponding root device or leaf device according to the initiator information, enable the root device or leaf device corresponding to the initiator information to send interaction information to the leaf device corresponding to the recipient information, and enable the leaf device corresponding to the recipient information on the control bus to respond to the interaction information to establish communication connection between a plurality of devices on a single control bus.
In a third aspect, the present application provides a computer storage medium, which adopts the following technical solutions:
a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the single-wire protocol implementation method of multi-device interaction described above.
To sum up, this application includes following beneficial technological effect:
a plurality of devices are connected together through a communication bus, each device is addressed through allocating a logical address and a physical address, and finally a complete single bus protocol is realized through a single-wire heartbeat packet sending and receiving mechanism, so that the HDMI display devices are allowed to mutually command and control without user interference.
Drawings
FIG. 1 is a schematic overall flow diagram of an embodiment of the present application;
fig. 2 is a diagram of a connection relationship and an allocation relationship of physical addresses between devices in an embodiment of the present application;
FIG. 3 is a schematic diagram of a logical address allocation table in an embodiment of the present application;
FIG. 4 is a signal diagram of a communication process in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a boot block and a data block in the embodiment of the present application.
Detailed Description
The present application is described in further detail below with reference to figures 1-5.
The embodiment of the application discloses a method for realizing a single-wire protocol of multi-device interaction.
As shown in fig. 1, a method for implementing a single-wire protocol for multi-device interaction includes the following steps:
and S100, acquiring the address information of the root equipment.
A root device is a terminal having only children and no parents in a network of devices, typically TVs, i.e. the roots in a large third of the network. The parent device and the child device mean that, in a device connected to the device, a device with a later logical relationship is a child device, a device with a earlier logical relationship is a parent device, such as a DVD and a TV, the TV belongs to the parent device of the DVD, and the DVD is a child device of the TV.
The address information includes a physical address and a logical address.
The physical address is such that the bus protocol can properly address each device, and therefore each device needs to have a unique physical address.
The logical address is unique address information owned by each device in the system, and is used for representing and defining the type of a device, and also used as unique identification information of a device.
The root device has an initial physical address, which is expressed as multi-bit address data consisting of several 0 s, and in the embodiment of the present application, the initial physical address of the root device is 0.0.0.0.
The initial logical address of the root device defaults to 0.
S200, acquiring all leaf devices connected with the root device and the connection logic relationship between the leaf devices and the root device.
The leaf device is characterized as a sub-device of the root device or a subsequent sub-device, the root device is used as a root of a big tree, the leaf device is used as a leaf of the big tree, the root device and the leaf device are connected through an HDMI line to form a device network similar to the big tree, and one root device and a plurality of leaf devices are certain to exist in one device network.
The connectivity logical relationship is represented as a hierarchy of connectivity between each leaf device and the root device, meaning that each leaf device in a network of devices resembling a large tree exists at the next level in the network.
The method specifically comprises the following steps:
s210, acquiring the connection number of the leaf devices.
And S220, if the connection number of the equipment on the leaf equipment is 1, judging whether the equipment is root equipment.
And S230, if the root device is the leaf device, the connection logic relationship between the leaf device and the root device is a first-level association.
And S240, if the root device is not the leaf device, the connection logic relationship between the leaf device and the root device is multi-level association.
And S250, if the connection number of the devices on the leaf device is greater than 1, judging whether root devices exist in the devices.
And S260, if the connection logic relationship exists, the connection logic relationship between the leaf equipment and the root equipment is primary association.
And S270, if the connection logic relationship does not exist, the connection logic relationship between the leaf device and the root device is multi-level association.
S280, if the leaf device is connected to the leaf device with n levels of association, the leaf device is n +1 levels of association, n =1,2,3.
If the device connection number on a leaf device is 1, it may be connected to only the root device or only one leaf device, and it needs to be determined whether the only device connected to the leaf device is the root device, if so, the leaf device is connected to only one root device, the leaf device is adjacent to the root device and is associated with one level, that is, the first level of the device network, and if the only device connected to the leaf device is not the root device, the leaf device is a multi-level device connected behind other leaf devices and is the last level on the branch in the device network.
If the connection number of the devices on one leaf device is larger than 1, judging whether the devices have root devices, if so, indicating that the device is in one-level association and is also connected with subsequent devices in multi-level connection, and if not, indicating that the device is in multi-level association.
Specifically, one device is which one of the multiple levels of associations, and it needs to be determined that the leaf device is connected to the device associated with the one level, so that n is 1, and the number of associations of the leaf device is n +1=2, that is, the two levels of associations. When one device is connected with a plurality of devices, since the association series of the device at the previous stage is determined and the association series of the device at the next stage is uncertain, n always selects the device with the confirmed lower association series.
S300, address allocation is carried out on the leaf devices according to the connection logic relation so as to obtain address information of all the leaf devices.
And S400, acquiring a device control instruction, and acquiring initiator information and receiver information according to the device control instruction.
As shown in fig. 1 and 2, the method specifically includes the following steps for the physical address:
s410, if the leaf device is a leaf device associated with the root device in a first level, replacing the first bit 0 in the initial physical address with a non-0 number to obtain a new first-level physical address, and distributing the new first-level physical address to a plurality of leaf devices associated in a first level, wherein the first-level physical addresses of the leaf devices are different.
S420, if the leaf device is a leaf device associated with the root device in multiple levels, acquiring a physical address of a parent associated device of the leaf device, and replacing a first bit 0 in the physical address with a non-0 number to obtain a new multiple-level physical address and allocating the new multiple-level physical address to the leaf device.
If three leaf devices are associated at one level, the first bit 0 in the initial physical address of 0.0.0.0 is replaced by a non-0 number, and the replacement can be performed in the order from small to large to obtain three primary physical addresses, namely 1.0.0.0.0, 2.0.0.0 and 3.0.0.0, which are allocated to the three leaf devices associated at one level, so that several leaf devices are allocated to different physical addresses.
If some leaf devices are leaf devices associated with multiple levels, the physical address of the leaf device associated with the upper level of the leaf device connected to the leaf device is obtained first, for example, the physical address of the leaf device associated with the upper level of the leaf device a is 2.2.0.0, and the leaf device replaces the first bit 0 of the physical address with a non-0 number, so that the number becomes 2.2.1.0. Generally, four bits in the physical address can be used to represent the association levels of the different leaf devices from left to right, for example, the leaf device represented by 2.2.1.0 is a tertiary association, and 2.1.0.0 is a secondary association, and only the bit number of the last bit other than 0 is needed to be determined.
As shown in fig. 1 and 3, the method specifically includes the following steps for the logical address:
and S430, judging the device type of the leaf device, acquiring a corresponding logical address from a preset logical address allocation table according to the device type, and allocating the logical address to the corresponding leaf device.
When a device is inserted, the type of the device is known, and the logical address allocation table is also configured and uploaded in advance, so that the corresponding logical address can be found according to different types.
As shown in fig. 3, the corresponding relationship between the logical address and the device type in the commonly used logical address allocation table is listed, for example, if the device type is VCR, the logical address is 1, and if the device type is DVD, the logical address is 4.
Further comprising the steps of:
s470, acquiring the number of leaf devices.
And S471, judging whether the number of the leaf devices is larger than a preset number.
And S472, if the number of the historical equipment control commands is larger than the preset number, acquiring all the historical equipment control commands, and acquiring the common equipment combination information according to the historical equipment control commands.
S473, selecting a leaf device connected adjacent to the first-level associated device in the common device combination information, and changing the physical address and the logical address of the leaf device into the physical address and the logical address of the first-level associated device.
Generally, 15 devices can be connected to a bus, and in some cases, more devices are needed for associated use, and some devices may not be assigned corresponding logical addresses and physical addresses due to the fact that the logical addresses and physical address locations are full.
At this time, the combined use information of a plurality of devices in one branch on the bus can be obtained according to historical device control instructions, for example, a TV, a DVD and a sound are respectively arranged on one branch, and the three devices are found to be used together basically every time, so that the relevance of the three devices is strong, a user can be considered that the sound needs to be opened when the user can control the three devices together or open the DVD by one key, and thus, the logical address and the physical address of the sound are bound to the DVD, so that the two devices can share one logical address and one physical address, and the spare address can be left to be allocated to the subsequently added device.
When the logical address is assigned to the corresponding leaf device, the corresponding broadcast is also performed.
In particular, the method comprises the following steps of,
and S440, after any leaf device acquires the corresponding logical address, enabling the leaf device to send out first broadcast information containing the logical address.
S441, determining whether there is a leaf device corresponding to the first broadcast message and sending a confirmation message.
The confirmation information is characterized in that when the logical address in the first broadcast information is occupied by other equipment, the leaf equipment at the logical address currently responds to the first broadcast information.
S442, if the confirmation message exists, the leaf device sending the first broadcast message is enabled to reset the logical address according to the device type, and the above steps are repeated.
S443, if there is no confirmation information, the leaf device occupies its corresponding logical address.
After the leaf device a acquires a logical address, the address is broadcasted through the' PollingMessage >, when the logical address is occupied, the corresponding occupied device responds and sends out confirmation information, and after the leaf device a acquires the confirmation information, the current logical address needs to be reset so as to be changed to other logical addresses of the same device type.
After the logical address and the physical address are allocated to the corresponding leaf device, corresponding broadcasting is also performed, which specifically includes:
s450, the leaf device sends out second broadcast information, where the second broadcast information includes a physical address and a logical address.
And S460, associating the physical address and the logical address of the leaf device according to the second broadcast information and declaring that the corresponding address is occupied.
The logical Address and the relevance of the Physical Address of the leaf device are broadcast through a < Report Physical Address > command, so that any node on the bus can establish a mapping from the Physical Address to the logical Address, and after different leaf devices acquire Address information, the occupation of the Address is declared through broadcasting.
S500, address information of corresponding root equipment or leaf equipment is searched according to the initiator information, and the root equipment or the leaf equipment corresponding to the initiator information sends interaction information to the leaf equipment corresponding to the receiver information.
The method specifically comprises the following steps:
and S510, after the root device or the leaf device corresponding to the initiator sends the interactive information, judging whether the reply information of the leaf device corresponding to the receiver information can be received.
And S520, if the information can be received, performing corresponding communication connection according to the interactive information.
S530, if the information can not be received, judging whether the physical address and the logical address of the leaf equipment corresponding to the receiver exist or not.
S540, if the first error information does not exist, generating corresponding first error information; and if not, generating corresponding second error information.
After the root device or the leaf device of the initiator sends the interactive information, whether a response exists in the receiver needs to be judged, if the response can be received, communication connection is established, if the response cannot be received, whether a physical address and a logical address of the leaf device corresponding to the receiver exist or not is judged, if the response exists, the device is connected to a device system, the problems of device damage and the like can occur, if the response does not exist, the device is not connected to the corresponding device or the device is disconnected, and at the moment, related personnel are needed to confirm, so that the error information in the two conditions is different.
S600, if the leaf device corresponding to the receiver information responds to the interactive information, the leaf device corresponding to the receiver and the root device or the leaf device corresponding to the initiator information are enabled to establish communication connection.
As shown in fig. 4 and fig. 5, the communication connection mode is:
communication is always between one initiator and one (or more) recipient(s). The initiator asserted bit provides data and the receiver asserted bit provides an acknowledgement. The bit rate is slow and less than 500 bits/second. The message starts with a long start bit followed by a few shorter data bits. The duration of the start bit is 4.5ms and the width of the low level is 3.7ms.
The duration of the data bit is 2.4ms, the low width of logic '0' is 1.5ms, and the low width of logic '1' is 0.6ms.
Every 10 bits, 8 bits of data, EOM (end of message bit) and ACK (acknowledge bit) constitute a pilot or data block. The EOM bit is used to identify the last block of the message, where '0' indicates that there is a subsequent data block and '1' indicates that the message is finished. The ACK bit is used by the receiver to reply to the message originator, who always sets this bit to '1'.
For point-to-point messages, the devices with the same target address in the message modify the ACK bit to '0' and the other devices do not operate, and for broadcast messages, the devices refusing to receive the message modify the ACK bit to '0' and the other devices do not operate. The leading block contains 4-bit logical address of the initiator and 4-bit logical address of the recipient, and the 8 information bits of the data block contain data such as an opcode or operand.
The application also discloses a single-wire protocol implementation system of multi-device interaction, which comprises a control bus and a software control module, wherein,
the software control module is used for acquiring address information of root equipment on the control bus;
acquiring all leaf devices connected with the root device and a connection logic relationship;
performing address allocation on the leaf equipment according to the connection logic relationship to obtain the leaf equipment address information of all the leaf equipment;
acquiring a device control instruction, and acquiring initiator information and receiver information according to the device control instruction;
the software control module is further configured to search address information of the corresponding root device or leaf device according to the initiator information, enable the root device or leaf device corresponding to the initiator information to send the interaction information to the leaf device corresponding to the receiver information, and enable the leaf device corresponding to the receiver information on the control bus to respond to the interaction information to establish a communication connection between the plurality of devices on the single control bus.
The application also discloses a computer storage medium, on which a computer program is stored, and the computer program is executed by a processor to realize the single-wire protocol implementation method of the multi-device interaction.
The implementation principle is as follows:
the HDMI display device comprises a plurality of devices which are connected together through a communication bus, each device is addressed through allocating a logical address and a physical address, and finally a complete single bus protocol is realized through a single-wire heartbeat packet sending and receiving mechanism, so that the HDMI display devices can mutually command and control without user interference.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.

Claims (10)

1. A method for realizing a single-wire protocol of multi-device interaction is characterized by comprising the following steps:
acquiring address information of root equipment;
acquiring all leaf devices connected with the root device and the connection logic relationship between the leaf devices and the root device;
performing address allocation on the leaf equipment according to the connection logic relationship to obtain address information of all the leaf equipment;
acquiring a device control instruction, and acquiring initiator information and receiver information according to the device control instruction;
searching address information of the corresponding root device or leaf device according to the initiator information, and enabling the root device or leaf device corresponding to the initiator information to send interactive information to the leaf device corresponding to the receiver information;
and if the leaf device corresponding to the receiver information responds to the interactive information, establishing communication connection between the leaf device corresponding to the receiver and the root device or the leaf device corresponding to the initiator information.
2. The method for implementing single-wire protocol for multi-device interaction according to claim 1, wherein: the connection logic relationship comprises a first-level association and a multi-level association, all leaf devices connected with the root device and the connection logic relationship are obtained, and the method comprises the following steps:
acquiring the connection number of the equipment on the leaf equipment;
if the connection number of the equipment on the leaf equipment is 1, judging whether the equipment is root equipment;
if the root device is the leaf device, the connection logic relationship between the leaf device and the root device is primary association;
if the leaf device is not the root device, the connection logic relationship between the leaf device and the root device is multi-level association;
if the connection number of the devices on the leaf device is greater than 1, judging whether root devices exist in the devices or not;
if so, the connection logic relationship between the leaf device and the root device is a first-level association;
if not, the connection logic relationship between the leaf device and the root device is multi-level association;
in particular, the method comprises the following steps of,
if a leaf device is connected to a leaf device with n levels of association, the leaf device is n +1 level of association, n =1,2,3.
3. The method for implementing single-wire protocol for multi-device interaction according to claim 2, wherein: the address information includes a physical address, obtains root device address information, and performs address allocation on the leaf devices according to the connection logical relationship to obtain leaf device address information of all the leaf devices, and specifically includes:
acquiring an initial physical address of a root device, wherein the initial physical address is represented by multi-bit address data consisting of a plurality of 0 s;
if the leaf device is a leaf device associated with the root device in a first level, replacing a first bit 0 in the initial physical address with a non-0 number to obtain a new first-level physical address, and distributing the new first-level physical address to a plurality of leaf devices associated in a first level, wherein the first-level physical addresses of the leaf devices are different;
if the leaf device is a leaf device which is associated with the root device in multiple levels, acquiring a physical address of a parent associated device of the leaf device, replacing a first bit 0 in the physical address with a non-0 digit to obtain a new multi-level physical address, and distributing the new multi-level physical address to the leaf device, wherein the parent associated device is characterized by being connected with the leaf device and having fewer levels than the leaf device.
4. The method for implementing single-wire protocol for multi-device interaction according to claim 2, wherein: the address information further includes a logical address, obtains root device address information, and performs address allocation on the leaf devices according to the connection logical relationship to obtain leaf device address information of all the leaf devices, and the method specifically includes:
acquiring an initial logical address of root equipment, wherein the initial logical address defaults to 0;
judging the equipment type of the leaf equipment, acquiring a corresponding logical address from a preset logical address allocation table according to the equipment type, and allocating the logical address to the corresponding leaf equipment.
5. The method of claim 4, wherein the method comprises: acquiring a corresponding logical address from a preset logical address allocation table according to the device type and allocating the logical address to corresponding leaf devices, further comprising:
after any leaf device acquires the corresponding logical address, enabling the leaf device to send first broadcast information containing the logical address;
judging whether leaf equipment responds to the first broadcast information and sends confirmation information, wherein the confirmation information is characterized in that when a logic address in the first broadcast information is occupied by other leaf equipment, the leaf equipment on the logic address responds to the first broadcast information currently;
if the confirmation information exists, the leaf equipment sending the first broadcast information resets the logic address according to the equipment type of the leaf equipment, and the steps are repeated;
and if the confirmation information does not exist, enabling the leaf equipment to occupy the corresponding logical address.
6. The method of claim 5, wherein the method comprises: when the physical address and the logical address of the leaf device are all allocated, the method further comprises the following steps:
causing the leaf device to send out second broadcast information, the second broadcast information comprising a physical address and a logical address;
and associating the physical address and the logical address of the leaf device according to the second broadcast information and declaring that the corresponding address is occupied.
7. The method of claim 4, wherein the method comprises: further comprising the steps of:
acquiring the number of leaf devices;
judging whether the number of the leaf devices is larger than a preset number or not;
if so, acquiring all historical equipment control instructions, and acquiring common equipment combination information according to a plurality of historical equipment control instructions;
selecting leaf equipment which is adjacently connected with the primary associated equipment in the common equipment combined information, and changing the physical address and the logical address of the leaf equipment into the physical address and the logical address of the equipment associated with the primary.
8. The method for implementing single-wire protocol for multi-device interaction according to claim 1, wherein: enabling the root device or the leaf device corresponding to the initiator information to send out interaction information to the leaf device corresponding to the receiver information, comprising the following steps:
after the root device or the leaf device corresponding to the initiator sends out the interactive information, judging whether reply information of the leaf device corresponding to the receiver information can be received or not;
if the information can be received, responding according to the interaction information to establish communication connection;
if the leaf device cannot be received, judging whether a physical address and a logical address of the leaf device corresponding to the receiver information exist or not;
if not, generating corresponding first error information;
and if so, generating corresponding second error information.
9. A single-wire protocol implementation system for multi-device interaction is characterized in that: comprises a control bus and a software control module, wherein,
the software control module is used for acquiring address information of root equipment on the control bus;
acquiring all leaf devices connected with the root device and a connection logic relationship;
performing address allocation on the leaf equipment according to the connection logic relationship to obtain leaf equipment address information of all the leaf equipment;
acquiring a device control instruction, and acquiring initiator information and receiver information according to the device control instruction;
the software control module is further configured to search address information of the corresponding root device or leaf device according to the initiator information, enable the root device or leaf device corresponding to the initiator information to send interaction information to the leaf device corresponding to the receiver information, and enable the leaf device corresponding to the receiver information on the control bus to respond to the interaction information to establish communication connection between a plurality of devices on a single control bus.
10. A computer storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the single-wire protocol implementation method of multi-device interaction of any of claims 1-8.
CN202211656353.8A 2022-12-22 2022-12-22 Method, system and storage medium for realizing single-wire protocol of multi-device interaction Pending CN115987708A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211656353.8A CN115987708A (en) 2022-12-22 2022-12-22 Method, system and storage medium for realizing single-wire protocol of multi-device interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211656353.8A CN115987708A (en) 2022-12-22 2022-12-22 Method, system and storage medium for realizing single-wire protocol of multi-device interaction

Publications (1)

Publication Number Publication Date
CN115987708A true CN115987708A (en) 2023-04-18

Family

ID=85973378

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211656353.8A Pending CN115987708A (en) 2022-12-22 2022-12-22 Method, system and storage medium for realizing single-wire protocol of multi-device interaction

Country Status (1)

Country Link
CN (1) CN115987708A (en)

Similar Documents

Publication Publication Date Title
JP6700344B2 (en) Information exchange method, device, audio terminal, computer-readable storage medium and program
CN103202000B (en) The discovery of electronic installation in combinational network
CN1842044B (en) Apparatus and method for improved device interoperability
EP3147730B1 (en) Sound box parameter configuration method, mobile terminal, server, and system
CN103814566B (en) Address of cache in HDMI network
JPH08511402A (en) Interconnection of local communication bus systems
JP2001007838A (en) Method for address mapping in network system and computer-readable recording medium storing instruction sequence for one or a plurality of processors
KR20010033879A (en) Method and system related to an audio/video network
CN102713814A (en) Apparatus for controlling multimedia device and method for providing graphic user interface
TW201234841A (en) Proxy device operation in command and control network
JP2007202115A (en) Address managing method and communication device
CN108540818B (en) Live broadcast room corner mark setting method and device, terminal and computer readable medium
CN106331557B (en) ARC control method, control unit and display equipment
CN104350759A (en) System for improving HDMI CEC performance, and method for controlling same
CN104918069A (en) Play scene reduction method, system, playing terminal and control terminal
JP2021028819A (en) Smart service method, apparatus, and device
CN113259877A (en) Wireless ad hoc network advertisement synchronization method and system
CN115987708A (en) Method, system and storage medium for realizing single-wire protocol of multi-device interaction
JP2008059578A (en) Method and apparatus for managing service provided by device in home network
CN103457857A (en) Cross-domain multi-media resource identification system and method thereof
EP2732583B1 (en) Network proxying technology
US20070248095A1 (en) Apparatus and method for structuring IP identification packets and alloting IP addresses
CN102714600A (en) Electronic device and operating method of the same
CN104320718A (en) Method and device for avoiding conflict of a plurality of DMC push media players
CN107708102B (en) System and method for inquiring node equipment information by ZigBee gateway

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