CN117938973A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN117938973A
CN117938973A CN202211315036.XA CN202211315036A CN117938973A CN 117938973 A CN117938973 A CN 117938973A CN 202211315036 A CN202211315036 A CN 202211315036A CN 117938973 A CN117938973 A CN 117938973A
Authority
CN
China
Prior art keywords
message
protocol
sent
status
state information
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
CN202211315036.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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202211315036.XA priority Critical patent/CN117938973A/en
Priority to PCT/CN2023/094247 priority patent/WO2024087588A1/en
Publication of CN117938973A publication Critical patent/CN117938973A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0823Network architectures or network communication protocols for network security for authentication of entities using certificates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the application discloses a message processing method and a message processing device, relates to the technical field of computers, and can interconnect electronic equipment with electronic equipment using other protocols. The method comprises the following steps: first, a first message sent by a first device is received, then the first message is converted into a second message, and then the second message is sent to the second device. The first message is used for indicating the second equipment to perform target operation, and the first message is a message of a first protocol. The second message is used for indicating the second device to perform the target operation, the second message is a message of a second protocol, and the first protocol is different from the second protocol.

Description

Message processing method and device
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a message processing method and device.
Background
The internet of things can enable the electronic equipment to be connected with any object or network according to a stipulated protocol, and the object exchanges information and communicates through an information transmission medium so as to realize functions of intelligent identification, positioning, tracking, supervision and the like. The electronic equipment can be interconnected and intercommunicated with other electronic equipment through the Internet of things.
However, the electronic device in the related art can only perform interconnection and interworking with other electronic devices using the same protocol according to the agreed protocol, and cannot perform interconnection and interworking with electronic devices using other protocols. For example, an electronic device using the GIIC protocol can control other electronic devices using the GIIC protocol only through the GIIC protocol, and cannot control electronic devices using other protocols.
Therefore, how to interconnect an electronic device with an electronic device using other protocols is one of the problems that those skilled in the art are urgent to solve.
Disclosure of Invention
The embodiment of the application provides a message processing method and a message processing device, which can interconnect electronic equipment and electronic equipment using other protocols. In order to achieve the above purpose, the embodiment of the application adopts the following technical scheme:
In a first aspect, an embodiment of the present application provides a method for processing a message, where the method includes: first, a first message sent by first equipment is received, then the first message is converted into a second message, and then the second message is sent to second equipment. The first message is used for indicating the second equipment to perform target operation, and the first message is a message of a first protocol. The second message is used for indicating the second device to perform the target operation, the second message is a message of a second protocol, and the first protocol is different from the second protocol.
In the related art, the electronic device performs interconnection and interworking with other electronic devices using the same protocol according to the agreed protocol, but the electronic device cannot be connected with the electronic devices using the other protocols, and cannot control the electronic devices using the other protocols. For example, an electronic device using a first protocol may control a device using the first protocol to operate, but the electronic device using the first protocol cannot control a device using a second protocol to perform a preset operation. In the embodiment of the application, after receiving the message of the first protocol sent by the first device, the message of the first protocol can be converted into the message of the second protocol which can be identified by the second device, and then the second device is controlled to perform target operation by sending the message of the second protocol to the second device, so that the first device supporting the first protocol and the device not supporting the first protocol can realize interconnection and intercommunication.
In one possible implementation manner, the method may further include: and converting the third message into a fourth message. And sending the fourth message to the second equipment. And receiving the state information of the second equipment, which is sent by the second equipment. And sending the state information of the second device to the first device. The fourth message is used for indicating to acquire the state information of the second device, the fourth message is a message of the second protocol, and the first protocol is different from the second protocol.
It can be seen that, after receiving the message of the first protocol sent by the first device, the method provided by the embodiment of the application can also convert the message of the first protocol into the message of the second protocol that can be identified by the second device, then control the second device to report the status information by sending the message of the second protocol to the second device, and then send the reported status information to the first device, so that the first device can obtain the status information of the second device using different protocols, thereby enabling the first device supporting the first protocol and the device not supporting the first protocol to realize interconnection.
Alternatively, the above-described target operations may include: at least one of power on, power off, standby, wake up, volume adjustment, selection, determination, movement, or interface switching.
It can be seen that in the embodiment of the present application, after receiving a packet of a first protocol sent by a first device, the packet of the first protocol may be converted into a packet of a second protocol that can be identified by a second device, and then the second device is controlled to perform operations such as startup, shutdown, standby, wakeup, volume adjustment, selection, determination, movement, interface switching, etc. by sending the packet of the second protocol to the second device, so that the first device supporting the first protocol and the device not supporting the first protocol implement interconnection and interworking.
Alternatively, the above state information may include: at least one of a physical address, a logical address, a play status, a record status, a menu status, or a timer status.
It can be seen that, after receiving the first protocol packet sent by the first device, the method provided by the embodiment of the present application may further convert the first protocol packet into a second protocol packet that can be identified by the second device, and then control the second device by sending the second protocol packet to the second device, so that the second device reports the status information such as the physical address, the logical address, the play status, the recording status, the menu status, and the timer status, and then send the reporting status information to the first device, so that the first device may obtain the status information of the second device that uses different protocols with the first device, thereby implementing interconnection and interworking between the first device supporting the first protocol and the device not supporting the first protocol.
Optionally, the first protocol is a global intelligent internet of things alliance (Global Intelligent IoT Consortium, GIIC) protocol. The second protocol is a consumer electronics control (Consumer Electronics Control, CEC) protocol.
It is worth mentioning that the digital living NETWORK ALLIANCE (DIGITAL LIVING NETWORK ALLIANCE, DLNA) protocol only supports control command transmission over internet protocol (Internet Protocol, IP) channels. The GIIC protocol supports IP, PLC, bluetooth and other transmission protocol channels, and can expand more transmission channels.
Optionally, the first message is further used to instruct a third device to perform the target operation
In one possible implementation manner, the method may further include: and carrying out the target operation according to the first message.
It can be seen that after the third device receives the first protocol message sent by the first device, the third device converts the first protocol message into the second protocol message which can be identified by the second device after receiving the first protocol message sent by the first device, and then controls the second device to perform the target operation by sending the second protocol message to the second device, so that the first device supporting the first protocol and the device not supporting the first protocol can be interconnected. The same target operation as the second device may also be performed, so that the first device may control the second device and the third device in association, so that the first device supporting the first protocol and the device not supporting the first protocol and the device supporting the first protocol and the second protocol achieve interworking.
Optionally, the third message is further used for indicating to acquire state information of the third device.
In one possible implementation manner, the method may further include: and sending the state information of the third device to the first device.
It can be seen that, in the method provided by the embodiment of the present application, the third device may convert the first protocol packet into the second protocol packet that can be identified by the second device after sending the first protocol packet to the first device, and then control the second device to report the status information by sending the second protocol packet to the second device, and then send the reported status information to the first device, so that the first device may obtain the status information of the second device that uses a different protocol with the first device, thereby implementing interconnection and interworking between the first device supporting the first protocol and the device not supporting the first protocol. The state information of the third device may also be sent to the first device, so that the first device may associate the second device with the third device, so that the first device supporting the first protocol and the device not supporting the first protocol and the device supporting the first protocol and the second protocol implement interconnection and interworking.
In one possible implementation manner, the method may further include: receiving authentication information of the first equipment sent by the first equipment, and performing first protocol authentication according to the authentication information of the first equipment; and sending authentication information of the third device to the first device. Wherein the authentication information includes at least one of a certificate, license, or user personal identification number (personal identification number, PIN).
Before the connection is established with the first device, the first protocol authentication is performed through the authentication information of the first device, so that the connection with the unauthenticated device can be prevented, and the security of the connection is ensured.
In a second aspect, an embodiment of the present application provides a message processing apparatus, including: a receiving and transmitting unit and a processing unit. The receiving and transmitting unit is configured to receive a first message sent by a first device and send a second message to a second device, where the first message is used to instruct the second device to perform a target operation, the first message is a message of a first protocol, the second message is used to instruct the second device to perform the target operation, the second message is a message of a second protocol, and the first protocol is different from the second protocol; the processing unit is used for converting the first message into a second message.
In a possible implementation manner, the transceiver unit is further configured to: receiving a third message sent by the first device, where the third message is used to indicate that state information of the second device is obtained, the state information is used to indicate a device state, and the third message is a message of the first protocol; a fourth message is sent to the second device, the fourth message is used for indicating to acquire the state information of the second device, the fourth message is a message of the second protocol, and the first protocol is different from the second protocol; sending the fourth message to the second device; receiving state information of the second equipment, which is sent by the second equipment; and sending the state information of the second device to the first device.
In a possible implementation, the processing unit is further configured to: and converting the third message into the fourth message.
Optionally, the target operation includes at least one of power on, power off, standby, wake up, volume adjustment, selection, determination, movement, or interface switching.
Optionally, the status information includes at least one of a physical address, a logical address, a play status, a record status, a menu status, or a timer status.
Optionally, the first protocol is a GIIC protocol.
Optionally, the second protocol is CEC protocol.
Optionally, the first message is further used to instruct the third device to perform the target operation.
In a possible implementation, the processing unit is further configured to: and carrying out the target operation according to the first message.
Optionally, the third message is further used for indicating to acquire state information of the third device.
In a possible implementation manner, the transceiver unit is further configured to: and sending the state information of the third device to the first device.
In a possible implementation manner, the transceiver unit is further configured to: receiving authentication information of the first device, which is sent by the first device; and sending authentication information of the third device to the first device. Wherein the authentication information includes at least one of a certificate, license, or PIN.
In a possible implementation, the processing unit is further configured to: and performing first protocol authentication according to the authentication information of the first equipment.
In a third aspect, an embodiment of the present application further provides a packet processing device, where the packet processing device includes: at least one processor, when executing program code or instructions, implements the method described in the first aspect or any possible implementation thereof.
Optionally, the message processing apparatus may further comprise at least one memory for storing the program code or instructions.
In a fourth aspect, an embodiment of the present application further provides a chip, including: an input interface, an output interface, at least one processor. Optionally, the chip further comprises a memory. The at least one processor is configured to execute code in the memory, which when executed by the at least one processor, implements the method described in the first aspect or any possible implementation thereof.
Alternatively, the chip may be an integrated circuit.
In a fifth aspect, embodiments of the present application also provide a computer readable storage medium storing a computer program comprising instructions for implementing the method described in the first aspect or any possible implementation thereof.
In a sixth aspect, embodiments of the present application also provide a computer program product comprising instructions which, when run on a computer, cause the computer to implement the method as described in the first aspect or any possible implementation thereof.
The message processing apparatus, the computer storage medium, the computer program product and the chip provided in this embodiment are all configured to execute the method provided above, so that the beneficial effects achieved by the method provided above can be referred to as beneficial effects in the method provided above, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present application;
FIG. 2 is a flow chart of a message processing method according to an embodiment of the present application;
FIG. 3 is a flow chart of another message processing method according to an embodiment of the present application;
FIG. 4 is a schematic diagram of an application interface according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a data model according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a message processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a chip according to an embodiment of the present application;
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the embodiments of the present application.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone.
The terms "first" and "second" and the like in the description of embodiments of the application and in the drawings are used for distinguishing between different objects or between different processes of the same object and not for describing a particular order of objects.
Furthermore, references to the terms "comprising" and "having" and any variations thereof in the description of embodiments of the present application are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed but may optionally include other steps or elements not listed or inherent to such process, method, article, or apparatus.
It should be noted that in the description of the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise indicated, the meaning of "a plurality" means two or more.
The internet of things can enable the electronic equipment to be connected with any object or network according to a stipulated protocol, and the object exchanges information and communicates through an information transmission medium so as to realize functions of intelligent identification, positioning, tracking, supervision and the like. The electronic equipment can be interconnected and intercommunicated with other electronic equipment through the Internet of things.
However, the electronic device in the related art can only perform interconnection and interworking with other electronic devices using the same protocol according to the agreed protocol, and cannot perform interconnection and interworking with electronic devices using other protocols. For example, an electronic device using the GIIC protocol can control other electronic devices using the GIIC protocol only through the GIIC protocol, and cannot control electronic devices using other protocols.
Therefore, the embodiment of the application provides a message processing method, which enables the electronic equipment to be interconnected with the electronic equipment using other protocols. The method is applicable to communication systems. Fig. 1 shows one possible form of presence of the communication system.
The communication system includes a plurality of devices (electronic devices) as shown in fig. 1. The plurality of devices includes a first device 10, a second device 20, and a third device 30.
The above devices (electronic devices) may be mobile phones, tablet computers, televisions (smart televisions), set Top Boxes (STBs), smart speakers, game machines, wearable devices, vehicle devices, augmented reality (augmented reality, AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, or Personal Digital Assistants (PDAs).
Illustratively, the first device 10 may be a mobile phone, the second device 20 may be a STB, and the third device may be a television.
The first device 10 and the third device 30 may be connected through a wired network or a wireless network.
Illustratively, the first device 10 and the third device 30 may be connected via ethernet (Wireless Local Area Networks, WLAN), bluetooth, zigBee, programmable logic controller (Programmable Logic Controller, PLC), or other means.
The first device 10 and the third device 30 each support a first protocol.
Alternatively, the first protocol may be a global intelligent internet of things alliance (Global Intelligent IoT Consortium, GIIC) protocol.
The second device 20 and the third device 30 may be connected through a wired network or a wireless network.
Illustratively, the second device 20 and the third device 30 may be connected by a high definition multimedia interface (High Definition Multimedia Interface, HDMI) cable or other means.
The second device 20 and the third device 30 both support the second protocol.
The second protocol may be a consumer electronics control (Consumer Electronics Control, CEC) protocol, i.e., HDMI CEC protocol.
In one possible implementation, the communication system may further include a server (cloud server) or a local control center.
The first device 10 and the third device 30 may also be connected through a server (cloud server) or a local control center.
In one possible implementation, the first device 10 and the third device 30 may also be authenticated (security authentication) by a server (cloud server) or a local control center.
For example, the first device 10 and the third device 30 may complete trusted authentication between devices through a server (cloud server) or a local control center based on preset information such as certificates, license, PIN, etc., and complete validity check and authentication of identities of both sides
Fig. 2 shows a method for processing a message according to an embodiment of the present application, where the method may be performed by a third device in the communication system, and the method includes:
S201, receiving a first message sent by a first device.
The first message is used for indicating the second equipment to perform target operation, and the first message is a message of a first protocol.
Alternatively, the first protocol may be the GIIC protocol.
It should be noted that, in contrast to the DLNA protocol of the digital living network alliance, only control command transmission via the internet protocol (Internet Protocol, IP) channel is supported. The GIIC protocol supports IP, PLC, bluetooth and other transmission protocol channels, and can expand more transmission channels. In addition, the DLAN protocol is a local area network protocol, and does not support remote control. And the DLAN protocol defaults to not support equipment authentication, so that the potential safety hazard of illegal control exists. The GIIC protocol supports remote control and equipment authentication, and compared with the DLAN protocol, the user experience and the safety are improved.
Optionally, the target operation includes at least one of power on, power off, standby, wake up, volume adjustment, selection, determination, movement, or interface switching.
Illustratively, the third device may receive the first message of the GIIC protocol sent by the first device through an ethernet, wireless local area network, bluetooth network, zigbee network, programmable logic controller network, or other network.
Also for example, the third device may receive the first message forwarded by the first device through a server (cloud server) or a local control center.
The first message may include JSON string information of CEC service.
S202, converting the first message into a second message.
The second message is used for indicating the second device to perform the target operation. The second message is a message of a second protocol, and the first protocol is different from the second protocol.
Alternatively, the second packet may be a CEC protocol packet.
Illustratively, the third device may convert the first message of the GIIC protocol into the second message of the CEC protocol.
It should be noted that, the specific method for converting the first packet into the second packet may be any method that can be considered by those skilled in the art, which is not limited in particular by the embodiment of the present application.
S203, sending a second message to the second device.
Illustratively, the third device may send a second message of the CEC protocol to the second device over the HDMI cable. And the corresponding second equipment performs target operation according to the second message of the CEC protocol after receiving the second message of the CEC protocol.
For example, the third device may send a second packet of the CEC protocol to the second device through the HDMI cable, so that the second device performs a volume adjustment operation to increase or decrease the volume after receiving the second packet of the CEC protocol.
For another example, the third device may send a second packet of the CEC protocol to the second device through the HDMI cable, so that the second device performs the standby operation after receiving the second packet of the CEC protocol.
In the related art, the electronic device performs interconnection and interworking with other electronic devices using the same protocol according to the agreed protocol, but the electronic device cannot be connected with the electronic devices using the other protocols, and cannot control the electronic devices using the other protocols. For example, an electronic device using a first protocol may control a device using the first protocol to operate, but the electronic device using the first protocol cannot control a device using a second protocol to perform a preset operation. In the embodiment of the application, after receiving the message of the first protocol sent by the first device, the message of the first protocol can be converted into the message of the second protocol which can be identified by the second device, and then the second device is controlled to perform target operation by sending the message of the second protocol to the second device, so that the first device supporting the first protocol and the device not supporting the first protocol can realize interconnection and intercommunication.
Optionally, the first message is further used to instruct the third device to perform the target operation, and the method may further include:
s204, performing target operation according to the first message.
For example, after the third device sends the second message to the second device, the third device may perform the target operation according to the instruction of the first message.
For example, after receiving the first message for instructing the second device and the third device to perform the standby operation, the third device may first convert the first message of the GIIC protocol into the second message of the CEC protocol, then send the second message of the CEC protocol to the second device through the HDMI cable, so that the second device performs the standby operation, and then standby the present device.
It can be seen that, after receiving the message of the first protocol sent by the first device, the method provided by the embodiment of the application can also convert the message of the first protocol into the message of the second protocol that can be identified by the second device, then control the second device to report the status information by sending the message of the second protocol to the second device, and then send the reported status information to the first device, so that the first device can obtain the status information of the second device using different protocols, thereby enabling the first device supporting the first protocol and the device not supporting the first protocol to realize interconnection.
Optionally, the method may further include:
S205, receiving a third message sent by the first device.
The third message is used for indicating and acquiring the state information of the second device, the state information is used for indicating the state of the device, and the third message is a message of the first protocol.
Illustratively, the third device may receive the third message of the GIIC protocol sent by the first device through an ethernet, a wireless local area network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network.
Also for example, the third device may receive a third message forwarded by the first device through a server (cloud server) or a local control center.
Optionally, the status information includes at least one of a physical address, a logical address, a play status, a record status, a menu status, or a timer status.
S206, converting the third message into a fourth message.
The fourth message is used for indicating to acquire the state information of the second device, and the fourth message is a message of the second protocol.
Illustratively, the third device may convert the third message of the GIIC protocol into the fourth message of the CEC protocol.
It should be noted that, the specific method for converting the third packet into the fourth packet may be any method that can be considered by those skilled in the art, which is not specifically limited in the embodiment of the present application.
S207, the fourth message is sent to the second device.
Illustratively, the third device may send a fourth message of the CEC protocol to the second device over the HDMI cable.
S208, receiving state information of the second device, which is sent by the second device.
The third device may receive the status information of the second device transmitted by the second device through the HDMI cable.
S209, transmitting the state information of the second device to the first device.
The third device may send the status information of the second device to the first device via an ethernet, a wireless local area network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network, as examples.
Also, for example, a message sent by the third device to the first device, where the message carries the status information of the second device may be forwarded to the first device through a server (cloud server) or a local control center.
It can be seen that after the third device receives the first protocol message sent by the first device, the third device converts the first protocol message into the second protocol message which can be identified by the second device after receiving the first protocol message sent by the first device, and then controls the second device to perform the target operation by sending the second protocol message to the second device, so that the first device supporting the first protocol and the device not supporting the first protocol can be interconnected. The same target operation as the second device may also be performed, so that the first device may control the second device and the third device in association, so that the first device supporting the first protocol and the device not supporting the first protocol and the device supporting the first protocol and the second protocol achieve interworking.
Optionally, the third message is further used to indicate to obtain status information of the third device, and the method may further include:
s210, sending state information of the third device to the first device.
The third device may illustratively send the status information of the second device and the third device to the first device via an ethernet, a wireless local area network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network.
Also, for example, a message sent by the third device to the first device, where the message carries the state information of the second device and the third device may be forwarded to the first device through a server (cloud server) or a local control center.
It can be seen that, in the method provided by the embodiment of the present application, the third device may convert the first protocol packet into the second protocol packet that can be identified by the second device after sending the first protocol packet to the first device, and then control the second device to report the status information by sending the second protocol packet to the second device, and then send the reported status information to the first device, so that the first device may obtain the status information of the second device that uses a different protocol with the first device, thereby implementing interconnection and interworking between the first device supporting the first protocol and the device not supporting the first protocol. The state information of the third device may also be sent to the first device, so that the first device may associate the second device with the third device, so that the first device supporting the first protocol and the device not supporting the first protocol and the device supporting the first protocol and the second protocol implement interconnection and interworking.
Optionally, the method may further include:
S211, receiving authentication information of the first device, which is sent by the first device.
Wherein the authentication information includes at least one of a certificate, a License, or a user personal identification number PIN.
Illustratively, the third device may receive the authentication information of the first device sent by the first device through an ethernet, wireless local area network, bluetooth network, zigbee network, programmable logic controller network, or other network.
Also for example, the third device may receive authentication information of the first device forwarded by the first device through a server (cloud server) or a local control center.
S212, performing first protocol authentication according to the authentication information of the first equipment.
Illustratively, the third device may perform GIIC authentication (GIIC device authentication) on the first device based on the certificate, license, and PIN of the first device.
The GIIC authentication is a process of acquiring an authentication certificate of the GIIC alliance. GIIC device authentication may be understood as a process of verifying identity legitimacy between devices.
The authentication process is based on at least one of a certificate, license, or user personal identification number PIN
S213, sending authentication information of the third device to the first device.
Illustratively, the third device may send the authentication information of the third device to the first device over an ethernet, wireless local area network, bluetooth network, zigbee network, programmable logic controller network, or other network. Accordingly, the first device may perform the first protocol authentication according to the authentication information of the third device after receiving the authentication information of the third device.
Also illustratively, the message sent by the third device to the first device carrying the authentication information of the third device may be forwarded to the first device by a server (cloud server) or a local control center.
Before the connection is established with the first device, the first protocol authentication is performed through the authentication information of the first device, so that the connection with the unauthenticated device can be prevented, and the security of the connection is ensured.
The following describes an interaction flow of each device in the message processing method provided in the embodiment of the present application with reference to fig. 3, where, as shown in fig. 3, the method further includes:
S301, the first device sends a third message to the third device.
The third message is used for indicating and acquiring the state information of the second device, the state information is used for indicating the state of the device, and the third message is a message of the first protocol.
Illustratively, as shown in fig. 4, after the user clicks the acquire device state control in the application running on the first device, the first device may send a third packet of the GIIC protocol to the third device through an ethernet network, a wireless lan network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network.
Also illustratively, the third message of the GIIC protocol sent by the first device to the third device may be forwarded to the third device by a server (cloud server) or a local control center.
Correspondingly, the third device receives the third message sent by the first device.
Illustratively, the third device may receive the third message of the GIIC protocol sent by the first device through an ethernet, a wireless local area network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network.
Also for example, the third device may receive a third message forwarded by the first device through a server (cloud server) or a local control center.
Optionally, the status information includes at least one of a physical address, a logical address, a play status, a record status, a menu status, or a timer status.
S302, the third device converts the third message into a fourth message.
The fourth message is used for indicating to acquire the state information of the second device, and the fourth message is a message of the second protocol.
It should be noted that, the specific method for converting the third packet into the fourth packet may be any method that can be considered by those skilled in the art, which is not specifically limited in the embodiment of the present application.
S303, the third device sends a fourth message to the second device.
Illustratively, the third device may send a fourth message of the CEC protocol to the second device over the HDMI cable.
Correspondingly, the second device receives a fourth message sent by the third device.
Illustratively, the second device may receive the fourth packet of the CEC protocol transmitted by the third device through the HDMI cable.
S304, the second device sends state information of the second device to the third device.
Illustratively, the second device may send status information of the device (i.e., the second device) to the second device over the HDMI cable
Correspondingly, the third device receives the state information of the second device sent by the second device.
The third device may receive the status information of the second device transmitted by the second device through the HDMI cable.
S305, the third device sends the state information of the second device to the first device.
The third device may send the status information of the second device to the first device via an ethernet, a wireless local area network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network, as examples.
Also, for example, a message sent by the third device to the first device, where the message carries the status information of the second device may be forwarded to the first device through a server (cloud server) or a local control center.
Accordingly, the first device receives the state information of the second device sent by the third device.
For example, as shown in fig. 4, the first device may receive the status information of the second device transmitted by the third device and display the status information of the second device in the running application.
Optionally, the third message is further used to indicate to obtain status information of the third device.
The third device may also send the present device (i.e., the status information of the third device) to the first device
The third device may illustratively send the status information of the second device and the third device to the first device via an ethernet, a wireless local area network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network.
Also, for example, a message sent by the third device to the first device, where the message carries the state information of the second device and the third device may be forwarded to the first device through a server (cloud server) or a local control center.
Accordingly, the first device receives the state information of the second device and the third device, which is sent by the third device.
S306, the first device sends a first message to the third device.
The first message is used for indicating the second equipment to perform target operation, and the first message is a message of a first protocol.
Illustratively, as shown in fig. 4, after the user clicks the acquisition control associated device control in the application running on the first device, the first device may send a first packet of the GIIC protocol to the third device through an ethernet network, a wireless local area network, a bluetooth network, a zigbee network, a programmable logic controller network, or other network.
Also illustratively, the first message of the GIIC protocol sent by the first device to the third device may be forwarded to the third device by a server (cloud server) or a local control center.
Correspondingly, the third device receives the first message sent by the first device.
Illustratively, the third device may receive the first message of the GIIC protocol sent by the first device through an ethernet, wireless local area network, bluetooth network, zigbee network, programmable logic controller network, or other network.
Also for example, the third device may receive the first message forwarded by the first device through a server (cloud server) or a local control center.
Optionally, the target operation includes at least one of power on, power off, standby, wake up, volume adjustment, selection, determination, movement, or interface switching.
S307, the third device converts the first message into a second message.
The second message is used for indicating the second device to perform the target operation. The second message is a message of a second protocol, and the first protocol is different from the second protocol.
Illustratively, the third device may convert the first message of the GIIC protocol into the second message of the CEC protocol.
It should be noted that, the specific method for converting the first packet into the second packet may be any method that can be considered by those skilled in the art, which is not limited in particular by the embodiment of the present application.
S308, the third device sends a second message to the second device.
Illustratively, the third device may send a second message of the CEC protocol to the second device over the HDMI cable.
Correspondingly, the second device receives the second message sent by the third device.
Illustratively, the second device may receive the second packet of the CEC protocol transmitted by the third device through the HDMI cable.
Optionally, the first message is further used to instruct the third device to perform the target operation.
The third device may also perform a target operation according to the first message.
For example, after the third device sends the second message to the second device, the third device may perform the target operation according to the instruction of the first message.
For example, after receiving the first message for instructing the second device and the third device to perform the standby operation, the third device may first convert the first message of the GIIC protocol into the second message of the CEC protocol, then send the second message of the CEC protocol to the second device through the HDMI cable, so that the second device performs the standby operation, and then standby the present device.
S309, the second device executes the target operation according to the second message.
Illustratively, the second device may perform a volume adjustment operation according to the second message of the CEC protocol, and increase or decrease the volume.
Still further, for example, the third device may perform a standby operation according to the second message of the CEC protocol.
The application also provides a GIIC data model, which is composed of five fields of equipment, service, attribute, method and event, as shown in figure 5.
The device comprises: referring to an application terminal, its functionality may be described by different sets of services.
Service: refers to an independent and meaningful set of functions that can be multiplexed between different types of application terminals. Among them, the services include CEC services in addition to device basic services (device information, general services). The CEC service is composed of methods of associated wake-up, associated standby, HID (human-machine interface) transparent transmission, state acquisition, control issuing and the like and equipment state reporting events.
Attributes: the state and minimum unit of functions of the application terminal are described.
The method comprises the following steps: to implement a particular function of a service, such a function cannot be accomplished by reading and writing of a single attribute. The method attribute comprises address information of the source equipment and the destination equipment, information such as operation codes and parameters and the like.
Events: and the application terminal actively reports the specific information.
The GIIC data model described above may be implemented using JSON strings.
A message processing apparatus for performing the above-described message processing method will be described below with reference to fig. 6.
It will be appreciated that the message processing apparatus, in order to achieve the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The various example algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or as a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application in conjunction with the embodiments, but such implementation decisions should not be interpreted as causing a departure from the scope of the embodiments of the present application.
The embodiment of the application can divide the functional modules of the message processing device according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules described above may be implemented in hardware. It should be noted that, in this embodiment, the division of the modules is schematic, only one logic function is divided, and another division manner may be implemented in actual implementation.
In the case of dividing the respective functional modules by the respective functions, fig. 6 shows a schematic diagram of one possible composition of the message processing apparatus involved in the above embodiment, and as shown in fig. 6, the message processing apparatus 600 may include: a transceiver unit 601 and a processing unit 602.
The transceiver 601 is configured to receive a first packet sent by a first device and send a second packet to a second device, where the first packet is used to instruct the second device to perform a target operation, the first packet is a packet of a first protocol, the second packet is used to instruct the second device to perform the target operation, and the second packet is a packet of a second protocol, and the first protocol is different from the second protocol.
The processing unit 602 is configured to convert the first packet into a second packet.
In a possible implementation manner, the transceiver unit is further configured to: receiving a third message sent by the first device, where the third message is used to instruct to obtain state information of the second device, the state information is used to instruct a device to be in a state, and the third message is a message of the first protocol; a fourth message is sent to the second device, the fourth message is used for indicating to acquire the state information of the second device, the fourth message is a message of the second protocol, and the first protocol is different from the second protocol; transmitting the fourth message to the second device; receiving state information of the second device sent by the second device; and transmitting the state information of the second device to the first device.
In one possible implementation, the processing unit 602 is further configured to: and converting the third message into the fourth message.
Optionally, the target operation includes at least one of power on, power off, standby, wake up, volume adjustment, selection, determination, movement, or interface switching.
Optionally, the status information includes at least one of a physical address, a logical address, a play status, a record status, a menu status, or a timer status.
Optionally, the first protocol is a GIIC protocol.
Optionally, the second protocol is CEC protocol.
Optionally, the first message is further used to instruct the third device to perform the target operation.
In one possible implementation, the processing unit 602 is further configured to: and carrying out the target operation according to the first message.
Optionally, the third message is further used to indicate to obtain status information of the third device.
In one possible implementation manner, the transceiver unit 601 is further configured to: and transmitting the state information of the third device to the first device.
In one possible implementation manner, the transceiver unit 601 is further configured to: receiving authentication information of the first device, which is sent by the first device; and sending authentication information of the third device to the first device. Wherein the authentication information includes at least one of a certificate, license, or PIN.
In one possible implementation, the processing unit 602 is further configured to: and carrying out first protocol authentication according to the authentication information of the first equipment.
The embodiment of the application also provides a chip. Fig. 7 shows a schematic structure of a chip 700. Chip 700 includes one or more processors 701 and interface circuitry 702. Optionally, the chip 700 may further include a bus 703.
The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above-described message processing method may be implemented by an integrated logic circuit of hardware in the processor 701 or an instruction in a software form.
Alternatively, the processor 701 may be a general purpose processor, a Digital Signal Processor (DSP), an integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The methods and steps disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The interface circuit 702 may be used for transmitting or receiving data, instructions or information, the processor 701 may process using the data, instructions or other information received by the interface circuit 702, and the process completion information may be transmitted through the interface circuit 702.
Optionally, the chip further comprises a memory, which may include read only memory and random access memory, and provides operating instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (non-volatile random access memory, NVRAM).
Optionally, the memory stores executable software modules or data structures and the processor may perform corresponding operations by invoking operational instructions stored in the memory (which may be stored in an operating system).
Optionally, the chip may be used in a message processing apparatus according to the embodiments of the present application. Alternatively, the interface circuit 702 may be configured to output the execution result of the processor 701. The method for processing a message according to one or more embodiments of the present application may refer to the foregoing embodiments, and will not be described herein.
It should be noted that, the functions corresponding to the processor 701 and the interface circuit 702 may be implemented by a hardware design, a software design, or a combination of hardware and software, which is not limited herein.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 100 may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal DIGITAL ASSISTANT, PDA), a message processing apparatus, or a chip or a functional module in the message processing apparatus.
Fig. 8 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (IMAGE SIGNAL processor, ISP), a controller, a memory, a video codec, a digital signal processor (DIGITAL SIGNAL processor, DSP), a baseband processor, and/or a neural Network Processor (NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-INTEGRATED CIRCUIT, I2C) interface, an integrated circuit built-in audio (inter-INTEGRATED CIRCUIT SOUND, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
The I2C interface is a bidirectional synchronous serial bus, and the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, to implement a touch function of the electronic device 100. The MIPI interface may be used to connect the processor 110 to peripheral devices such as a display 194, a camera 193, and the like. The MIPI interfaces include camera serial interfaces (CAMERA SERIAL INTERFACE, CSI), display serial interfaces (DISPLAY SERIAL INTERFACE, DSI), and the like. In some embodiments, processor 110 and camera 193 communicate through a CSI interface to implement the photographing functions of electronic device 100. The processor 110 and the display 194 communicate via a DSI interface to implement the display functionality of the electronic device 100.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like.
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a Liquid Crystal Display (LCD) CRYSTAL DISPLAY, an organic light-emitting diode (OLED), an active-matrix organic LIGHT EMITTING diode (AMOLED), a flexible light-emitting diode (FLED), miniled, microLed, micro-oLed, a quantum dot LIGHT EMITTING diode (QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a touch sensor, a video codec, a GPU, a display screen 194, an application processor, and the like.
Wherein the ISP is used to process the data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (charge coupled device, CCD) or a Complementary Metal Oxide Semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, which is then transferred to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV, etc. format, and it should be understood that in the description of the embodiment of the present application, an image in an RGB format is described as an example, and the embodiment of the present application is not limited to the image format. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, or the like.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The internal memory 121 may be used to store computer executable program code including instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100. The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc. The SIM card interface 195 is used to connect a SIM card.
It should be noted that the electronic device 100 may be a chip system or a device having a similar structure as in fig. 8. The chip system may be composed of a chip or may include a chip and other discrete devices. Acts, terms and the like referred to between embodiments of the present application can be referenced to each other without limitation. The message names of interactions between the devices or parameter names in the messages in the embodiments of the present application are just an example, and other names may be used in specific implementations without limitation. Further, the constituent structure shown in fig. 8 does not constitute a limitation of the electronic device 100, and the electronic device 100 may include more or less components than those shown in fig. 8, or may combine some components, or may be arranged differently, in addition to those shown in fig. 8.
The processors and transceivers described in this disclosure may be implemented on integrated circuits (INTEGRATED CIRCUIT, ICs), analog ICs, radio frequency ICs, mixed signal ICs, application SPECIFIC INTEGRATED Circuits (ASICs), printed circuit boards (printed circuit board, PCBs), electronic devices, and the like. The processor and transceiver may also be fabricated using a variety of IC process technologies such as complementary metal oxide semiconductor (complementary metal oxide semiconductor, CMOS), N-type metal oxide semiconductor (NMOS), P-type metal oxide semiconductor (PMOS), bipolar junction transistor (Bipolar Junction Transistor, BJT), bipolar CMOS (BiCMOS), silicon germanium (SiGe), gallium arsenide (GaAs), etc.
The embodiment of the application also provides a message processing device, which comprises: at least one processor, when executing the program code or instructions, implements the relevant method steps to implement the message processing method in the foregoing embodiments.
Optionally, the apparatus may further comprise at least one memory for storing the program code or instructions.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores computer instructions, and when the computer instructions run on the message processing device, the message processing device executes the related method steps to realize the message processing method in the embodiment.
The embodiment of the application also provides a computer program product, which when run on a computer, causes the computer to execute the related steps so as to realize the message processing method in the embodiment.
The embodiment of the application also provides a message processing device which can be a chip, an integrated circuit, a component or a module. In particular, the apparatus may comprise a processor coupled to a memory for storing instructions, or the apparatus may comprise at least one processor for retrieving instructions from an external memory. When the device is running, the processor can execute the instructions to cause the chip to execute the message processing method in the above method embodiments.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the above-described division of units is merely a logical function division, and there may be another division manner in actual implementation, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described above as separate components may or may not be physically separate, and components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The above functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or a part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the above-described method of the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (21)

1. A method for processing a message, comprising:
Receiving a first message sent by first equipment, wherein the first message is used for indicating second equipment to perform target operation, and the first message is a message of a first protocol;
Converting the first message into a second message, wherein the second message is used for indicating the second equipment to perform the target operation, the second message is a message of a second protocol, and the first protocol is different from the second protocol;
and sending the second message to the second equipment.
2. The method according to claim 1, wherein the method further comprises:
receiving a third message sent by the first device, where the third message is used to indicate that state information of the second device is obtained, the state information is used to indicate a device state, and the third message is a message of the first protocol;
converting the third message into a fourth message, wherein the fourth message is used for indicating to acquire the state information of the second device, the fourth message is a message of the second protocol, and the first protocol is different from the second protocol;
sending the fourth message to the second device;
Receiving state information of the second equipment, which is sent by the second equipment;
and sending the state information of the second device to the first device.
3. The method of claim 1 or 2, wherein the target operation comprises at least one of power on, power off, standby, wake up, volume adjustment, selection, determination, movement, or interface switching.
4. A method according to any one of claims 1 to 3, wherein the status information comprises at least one of a physical address, a logical address, a play status, a record status, a menu status or a timer status.
5. The method of any one of claims 1 to 4, wherein the first protocol is global intelligent internet of things alliance, GIIC, protocol.
6. The method according to any of claims 1 to 5, wherein the second protocol is the consumer electronics control CEC protocol.
7. The method of any one of claims 1 to 6, wherein the first message is further configured to instruct a third device to perform the target operation, and wherein the method further comprises:
and carrying out the target operation according to the first message.
8. The method according to any one of claims 2 to 7, wherein the third message is further used for indicating that status information of a third device is acquired, the method further comprising:
And sending the state information of the third device to the first device.
9. The method according to any one of claims 1 to 8, further comprising:
Receiving authentication information of the first device, which is sent by the first device, wherein the authentication information comprises at least one of a certificate, a License or a user personal identification number PIN;
Performing first protocol authentication according to the authentication information of the first equipment;
and sending authentication information of the third device to the first device.
10. The message processing device is characterized by comprising a receiving and transmitting unit and a processing unit;
The receiving and transmitting unit is configured to receive a first message sent by a first device and send a second message to a second device, where the first message is used to instruct the second device to perform a target operation, the first message is a message of a first protocol, the second message is used to instruct the second device to perform the target operation, the second message is a message of a second protocol, and the first protocol is different from the second protocol;
the processing unit is used for converting the first message into a second message.
11. The apparatus of claim 10, wherein the transceiver unit is further configured to:
receiving a third message sent by the first device, where the third message is used to indicate that state information of the second device is obtained, the state information is used to indicate a device state, and the third message is a message of the first protocol;
A fourth message is sent to the second device, the fourth message is used for indicating to acquire the state information of the second device, the fourth message is a message of the second protocol, and the first protocol is different from the second protocol;
sending the fourth message to the second device;
Receiving state information of the second equipment, which is sent by the second equipment;
Transmitting state information of the second device to the first device;
The processing unit is further configured to:
and converting the third message into the fourth message.
12. The apparatus of claim 10 or 11, wherein the target operation comprises at least one of power on, power off, standby, wake up, volume adjustment, selection, determination, movement, or interface switching.
13. The apparatus according to any one of claims 10 to 12, wherein the status information comprises at least one of a physical address, a logical address, a play status, a record status, a menu status, or a timer status.
14. The apparatus of any one of claims 10 to 13, wherein the first protocol is a GIIC protocol.
15. The apparatus of any of claims 10 to 14, wherein the second protocol is CEC protocol.
16. The apparatus according to any one of claims 10 to 15, wherein the first message is further configured to instruct a third device to perform the target operation, and the processing unit is further configured to:
and carrying out the target operation according to the first message.
17. The apparatus according to any one of claims 11 to 16, wherein the third message is further configured to instruct to acquire status information of a third device, and the transceiver unit is further configured to:
And sending the state information of the third device to the first device.
18. The apparatus according to any one of claims 10 to 17, wherein the transceiver unit is further configured to:
receiving authentication information of the first device, which is sent by the first device, wherein the authentication information comprises at least one of a certificate, a License or a PIN;
Transmitting authentication information of a third device to the first device;
The processing unit is further configured to:
and performing first protocol authentication according to the authentication information of the first equipment.
19. A message processing apparatus comprising at least one processor and a memory, wherein the at least one processor executes programs or instructions stored in the memory to cause the message processing apparatus to implement the method of any one of claims 1 to 9.
20. A computer readable storage medium storing a computer program, characterized in that the computer program, when run on a computer or a processor, causes the computer or the processor to implement the method of any one of the preceding claims 1 to 9.
21. A computer program product comprising instructions which, when run on a computer or processor, cause the computer or processor to carry out the method of any one of the preceding claims 1 to 9.
CN202211315036.XA 2022-10-26 2022-10-26 Message processing method and device Pending CN117938973A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211315036.XA CN117938973A (en) 2022-10-26 2022-10-26 Message processing method and device
PCT/CN2023/094247 WO2024087588A1 (en) 2022-10-26 2023-05-15 Packet processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211315036.XA CN117938973A (en) 2022-10-26 2022-10-26 Message processing method and device

Publications (1)

Publication Number Publication Date
CN117938973A true CN117938973A (en) 2024-04-26

Family

ID=90759846

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211315036.XA Pending CN117938973A (en) 2022-10-26 2022-10-26 Message processing method and device

Country Status (2)

Country Link
CN (1) CN117938973A (en)
WO (1) WO2024087588A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989367A (en) * 2017-05-31 2018-12-11 深圳市中兴微电子技术有限公司 A kind of Internet of Things communication means, equipment and system
KR102411691B1 (en) * 2018-01-03 2022-06-22 삼성전자주식회사 Electronic device for transmitting or receiving data via external electronic device and method thereof
CN112153071B (en) * 2020-09-30 2023-03-17 深圳市腾讯计算机系统有限公司 Message sending method, device, gateway and storage medium

Also Published As

Publication number Publication date
WO2024087588A1 (en) 2024-05-02

Similar Documents

Publication Publication Date Title
JP7463647B2 (en) Notification processing system, method and electronic device
KR102221023B1 (en) Electronic device and method for processing image
EP4024837A1 (en) Device capability scheduling method and electronic device
EP3893529B1 (en) Communication method based on bluetooth low energy
WO2022048371A1 (en) Cross-device audio playing method, mobile terminal, electronic device and storage medium
CN113676879A (en) Method, electronic device and system for sharing information
CN114339698A (en) Method for establishing wireless connection through equipment touch, electronic equipment and chip
CN114125513A (en) Screen projection method and device and delivery end
US20230254445A1 (en) Screen Sharing Method, Terminal, and Storage Medium
EP4138462A1 (en) Information sharing method, electronic devices and system
CN117938973A (en) Message processing method and device
EP4336356A1 (en) Screen projection method and related apparatus
CN114157412B (en) Information verification method, electronic device and computer readable storage medium
WO2024109586A1 (en) Message processing method and apparatus
CN115884142A (en) Bluetooth connection method and electronic equipment
WO2024108928A1 (en) Screen mirroring method and apparatus
WO2024152597A1 (en) Memory management method and apparatus
CN114697960B (en) Method and system for connecting external camera
WO2024159925A1 (en) Screen mirroring method, screen mirroring system, and electronic device
WO2022057521A1 (en) Method and devices for configuring device
WO2024066521A1 (en) Memory refresh method and apparatus
CN118276759A (en) Hard disk control method and device
CN118540274A (en) Message transmission method and device
CN115718560A (en) Method and electronic device for triggering service execution
CN118796494A (en) Distributed hardware implementation method, electronic equipment and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication