CN112751942B - Communication establishing method, device, equipment and storage medium - Google Patents

Communication establishing method, device, equipment and storage medium Download PDF

Info

Publication number
CN112751942B
CN112751942B CN202110053342.XA CN202110053342A CN112751942B CN 112751942 B CN112751942 B CN 112751942B CN 202110053342 A CN202110053342 A CN 202110053342A CN 112751942 B CN112751942 B CN 112751942B
Authority
CN
China
Prior art keywords
machine code
scene
equipment
account
creating
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.)
Expired - Fee Related
Application number
CN202110053342.XA
Other languages
Chinese (zh)
Other versions
CN112751942A (en
Inventor
林胤
谭思敏
季统凯
许晓安
杜志良
谢天杰
阮远华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cloud Computing Industry Technology Innovation and Incubation Center of CAS
Original Assignee
Cloud Computing Industry Technology Innovation and Incubation Center of CAS
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 Cloud Computing Industry Technology Innovation and Incubation Center of CAS filed Critical Cloud Computing Industry Technology Innovation and Incubation Center of CAS
Priority to CN202110053342.XA priority Critical patent/CN112751942B/en
Publication of CN112751942A publication Critical patent/CN112751942A/en
Application granted granted Critical
Publication of CN112751942B publication Critical patent/CN112751942B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • 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/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3226Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials using a predetermined code, e.g. password, passphrase or PIN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a communication establishing method, a device, equipment and a storage medium, wherein the method comprises the following steps: creating a scene account for identifying a scene, acquiring a first machine code of first equipment, and adding the first machine code to the scene account; instructing first equipment to broadcast a first machine code and a scene account number in a scene; after the second device enters a scene and receives a first machine code and a scene account number broadcast by the first device, receiving a second machine code and a scene account number sent by the second device; and when the first equipment and the second equipment are determined to be mutual-trust equipment based on the first machine code and the second machine code, adding the second machine code to the scene account, and indicating the second equipment to establish communication connection with the first equipment.

Description

Communication establishing method, device, equipment and storage medium
Technical Field
The present application relates to communication of internet of things devices, and in particular, to a communication establishing method, apparatus, device, and storage medium.
Technical Field
With the development of internet of things technology, cloud computing and big data, internet of things products are in a large number in the market. However, as the scene of the device becomes complex, the devices between different systems cannot be flexibly "autonomously interconnected", and the devices between different systems cannot perform trust, authentication, communication, interoperation, and the like.
Patent CN105847093B proposes "an interconnection and intercommunication system, a networking method and a communication method based on the Internet of things". According to the scheme, the main equipment is judged in an equipment competition mode, and other equipment transmits data through the main equipment, so that interconnection among different equipment is realized.
The scheme has the defects of inflexible connection mode and weak universality.
Disclosure of Invention
Based on this, the present application provides a communication establishing method, apparatus, device and storage medium, so as to improve flexibility and universality of establishing device interconnection between different systems.
A communication establishment method, comprising: creating a scene account for identifying a scene, acquiring a first machine code of first equipment, and adding the first machine code to the scene account; instructing the first device to broadcast the first machine code and the scene account number within the scene; after a second device enters the scene and receives the first machine code and the scene account number broadcast by the first device, receiving a second machine code and the scene account number sent by the second device; and when the first equipment and the second equipment are determined to be mutual trust equipment based on the first machine code and the second machine code, adding the second machine code to the scene account, and indicating the second equipment to establish communication connection with the first equipment.
In one embodiment, the instructing the second device to establish a communication connection with the first device includes: after the second device informs the first device that the two devices are mutually trusted devices, receiving a verification request sent by the first device; and when the first equipment and the second equipment are determined to be mutual-trust equipment based on the verification request, sending prompt information passing verification to the first equipment, wherein the prompt information passing verification is used for indicating the first equipment and the second equipment to establish communication connection.
In one embodiment, the determining whether the first device and the second device are mutually trusted devices based on the first machine code and the second machine code includes: searching whether the second machine code exists in a machine code list corresponding to the first machine code; and if so, determining that the first equipment and the second equipment are mutual communication equipment.
In one embodiment, before the creating of the scene account for identifying the scene, the method further includes: receiving first credit information of the first equipment, generating a first machine code based on the first credit information, and storing the first machine code into the machine code list, wherein the first machine code is used for uniquely identifying the first equipment; and sending the first machine code to the first device, wherein the sent first machine code is used for instructing the first device to store the first machine code into the first device.
In one embodiment, before the creating of the scene account for identifying the scene, the method further includes: receiving second credit information of the second equipment, generating a second machine code based on the second credit information, and storing the second machine code into the machine code list, wherein the second machine code is used for uniquely identifying the second equipment; and sending the second machine code to the second device, wherein the sent second machine code is used for instructing the second device to store the second machine code into the second device.
In one embodiment, the creating a scenario account for identifying a scenario, acquiring a first machine code of a first device, and adding the first machine code to the scenario account includes: creating a scene account; receiving a scene joining request of first equipment, wherein the scene joining request carries the first machine code; and adding the first equipment into the scene account based on the first machine code.
In one embodiment, the creating a scenario account for identifying a scenario, acquiring a first machine code of a first device, and adding the first machine code to the scenario account includes: receiving a scene creating request of first equipment, wherein the scene creating request carries scene information and the first machine code; and creating a scene account based on the scene information and the first machine code, and adding the first device into the scene account.
A communication establishment apparatus comprising: the scene account creating module is used for creating a scene account for identifying a scene, acquiring a first machine code of the first device and adding the first machine code to the scene account; the information broadcasting module is used for indicating the first equipment to broadcast the first machine code and the scene account in the scene; the information receiving module is used for receiving a second machine code and a scene account sent by the second equipment after the second equipment enters a scene and receives the first machine code and the scene account broadcasted by the first equipment; and the communication establishing module is used for adding the second machine code to the scene account and indicating the second equipment to establish communication connection with the first equipment when the first equipment and the second equipment are determined to be mutually trusted equipment based on the first machine code and the second machine code.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: creating a scene account for identifying a scene, acquiring a first machine code of first equipment, and adding the first machine code to the scene account; instructing first equipment to broadcast a first machine code and a scene account number in a scene; after the second device enters a scene and receives a first machine code and a scene account number broadcast by the first device, receiving a second machine code and a scene account number sent by the second device; and when the first equipment and the second equipment are determined to be mutual-trust equipment based on the first machine code and the second machine code, adding the second machine code to the scene account, and indicating the second equipment to establish communication connection with the first equipment.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: creating a scene account for identifying a scene, acquiring a first machine code of first equipment, and adding the first machine code to the scene account; instructing first equipment to broadcast a first machine code and a scene account number in a scene; after the second device enters a scene and receives a first machine code and a scene account number broadcasted by the first device, receiving a second machine code and a scene account number sent by the second device; and when the first equipment and the second equipment are determined to be mutual communication equipment based on the first machine code and the second machine code, adding the second machine code to the scene account, and indicating the second equipment to establish communication connection with the first equipment.
The communication establishing method, the communication establishing device, the computer equipment and the storage medium can be applied to third-party equipment, so that the third-party equipment executes the safety communication verification between the first equipment and the second equipment, and the reliability of communication establishment between the first equipment and the second equipment is improved. And the mode of establishing the communication connection is more flexible and universal.
Drawings
Fig. 1 shows a schematic diagram of a communication setup system according to an embodiment of the application.
Fig. 2 shows a flow diagram of a communication establishment method according to an embodiment of the application.
Fig. 3 shows a flow diagram of a communication establishment method according to an embodiment of the application.
Fig. 4 shows a flow diagram of a communication establishment method according to another embodiment of the present application.
Fig. 5 shows a flow diagram of a communication establishment method according to another embodiment of the present application.
Fig. 6 shows a schematic structural diagram of a communication establishing apparatus according to an embodiment of the present application.
Fig. 7 shows a schematic structural diagram of a communication establishing apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 shows a schematic diagram of a communication setup system according to an embodiment of the application. The A party and the B party belong to two different internet of things systems. Specifically, the party A belongs to a first system, the party B belongs to a second system, and the first system and the second system belong to different Internet of things systems.
A0, B0 are devices in different systems that need to communicate. Specifically, A0 is a first device, B0 is a second device, and A0 belongs to a first system and B0 belongs to a second system.
The scene can refer to any environment with equipment connection and communication in smart home and industrial production. In one embodiment, a scenario may refer to an environment in which A0 wishes to communicate with B0.
The trusted third party device is for example a trusted third party server. A trusted third party device refers to a third party device that possesses the processing rights to authorization information (e.g., device credentials). The trusted third party device may be determined based on an industry federation.
The trusted third party device maintains trusted information of the device, such as server information, device credentials, etc. to which the device belongs. The device credential includes, for example, an account name, a password, and the like.
The scene account is used to identify a scene, and for example, the scene account may be denoted as "Scenes1_ account".
The machine code is a machine code that uniquely identifies the device among the trusted third party devices. The machine code is unique and cannot be tampered with.
Referring to fig. 1, A0 belongs to a first system, and B0 belongs to a second system. A0 performs intra-system communication with a first system server. B0 performs intra-system communication with a second system server.
Fig. 2 shows a flow diagram of communication establishment according to an embodiment of the application.
In an embodiment, referring to fig. 2 and fig. 3, a communication establishment method is provided, taking a trusted third party device in the communication establishment system as an example, including:
step S310, the third party device creates a scene account for identifying the scene, acquires a first machine code of the first device, and adds the first machine code to the scene account.
In this step, the third-party device may create a scene account for identifying a scene autonomously or according to the received request. When the first device (e.g., A0) enters the scene, the third party device may add the first machine code of the first device to the scene account. Illustratively, the identification information of the first device may be recorded in association with the field Jing Zhanghao "Scenes1_ account", for example, "A0" may be recorded as the identification of the first device.
When the third-party equipment receives the first machine code, the first machine code of the first equipment can be verified, whether the first machine code exists in a pre-stored machine code list or not is inquired, if yes, the verification is passed, and otherwise, the verification is not passed; and after the verification is passed, adding the first machine code into the scene account so as to ensure that the first equipment is trusted equipment.
In step S320, the third party device instructs the first device to broadcast the first machine code and the scene account in the scene.
After the first machine code has been successfully added to the scene account, in this step, the first device broadcasts the first machine code and the scene account of the first device in the scene according to the indication of the third-party device, and waits for other devices to be added.
For example, the first device may implement the broadcast through a bluetooth protocol, a WiFi protocol, a Zigbee protocol, or the like.
After step S320, when the second device enters a scene, the second device may receive the first machine code and the scene account broadcasted by the first device.
In step S330, after the second device enters a scene and receives the first machine code and the scene account broadcasted by the first device, the third-party device receives the second machine code and the scene account sent by the second device.
In this step, when a second device (e.g., B0) enters a scene and receives a broadcast of a first device, the second device sends a machine code of the second device to a trusted third party, and the second device applies for adding the machine code to a trusted third party scene account.
Step S340, when the third-party device determines that the first device and the second device are mutually trusted devices based on the first machine code and the second machine code, the third-party device instructs the second device to establish a communication connection with the first device.
After the second machine code of the second device is added to the scene account managed by the trusted third-party device, the first device A0 and the second device B0 both belong to the same scene account. At this time, the first device A0 and the second device B0 are trusted devices with each other. At this time, the first device and the second device can be autonomously interconnected, and the next work can be performed.
The communication establishing method can be applied to third-party equipment, so that the third-party equipment executes the safety communication verification between the first equipment and the second equipment, and the reliability of the communication establishment between the first equipment and the second equipment is improved. And the way of establishing the communication connection is more flexible and universal.
In one embodiment, as shown in fig. 2 and 4, step S340 includes:
step S341, when the third party device determines that the first device and the second device are mutual trust devices based on the first machine code and the second machine code, adding the second machine code to the scene account;
step S342, after the second device notifies the first device that the two devices are mutually trusted devices, the third-party device receives a verification request sent by the first device;
the second device B0 receives the information transmitted by the first device A0 through the broadcast of the first device A0, but the broadcasted information is not necessarily transmitted exclusively to the second device B0. Therefore, in this step S341, after the first device A0 and the second device B0 join the same scene account, the second device B0 may send notification information to the first device A0 to notify that the first device A0 and the second device B0 are mutually trusted devices and can communicate with each other, where the notification information may carry the second machine code of the second device B0.
After receiving the notification information of the second device, the first device may send a verification request to the third-party device, so as to confirm whether the second device and the first device are mutually trusted devices from the third-party device.
Step S343, when determining, based on the verification request, that the first device and the second device are mutually trusted devices, the third-party device sends the prompt information that passes the verification to the first device, where the prompt information that passes the verification is used to indicate that the first device and the second device establish a communication connection.
As to how the third-party device determines whether the first device and the second device are mutually trusted devices based on the verification request in step S343, in an embodiment, the verification request sent by the first device may carry the first verification code and the second verification code; the third-party device may verify whether the first device and the second device are mutually trusted devices again based on the first verification code and the second verification code, and send a verification result that the verification is passed or the verification is not passed to the first device. In another embodiment, a verification request sent by a first device may carry a first verification code, a second verification code, and a scene account; the third-party device may query whether the first verification code and the second verification code have been added under the scene account, and if the first verification code and the second verification code have been added under the scene account, it indicates that the first device and the second device have verified that the devices are mutual-trust devices, and it may be determined that the verification is passed; otherwise, determining whether the first equipment and the second equipment are mutually trusted equipment or not by the steps based on the first verification code and the second verification code, if so, judging that the verification is passed, and if not, judging that the verification is not passed; and then sending the verification result of passing or failing the verification to the first device.
After the first device A0 passes verification to the trusted third-party device, the trust between the first device and the second device is completed, and communication is possible.
In one embodiment, the third party device determining whether the first device and the second device are mutually trusted devices based on the first machine code and the second machine code includes: the third-party equipment searches whether the second machine code exists in a machine code list corresponding to the first machine code; and if so, the third-party equipment determines that the first equipment and the second equipment are mutual-trust equipment.
The machine code list corresponding to the first machine code may be a machine code list in which the first machine code is stored. That is, the third-party device searches whether the second machine code and the first machine code exist in the same pre-stored machine code list, if so, the first device and the second device can be determined to be mutual trust devices, otherwise, the first device and the second device are determined not to be mutual trust devices. Therefore, the device lists which can mutually trust each other can be recorded through the pre-stored machine code list, and the devices recorded in the same machine code list are mutually trusted devices.
The above steps are a process in which the third-party device establishes a communication connection between the first device and the second device in the scene as needed, and before executing the process, machine codes of each device need to be stored in the third-party device in advance, so that verification is executed in the third-party device when the communication connection between the devices is established.
For the pre-creation and storage of the first machine code of the first device, in an embodiment, as shown in fig. 2 and fig. 5, before creating the scenario account for identifying the scenario, the method further includes: step S510, a third-party device receives first credit information of a first device, generates a first machine code based on the first credit information, and stores the first machine code into a machine code list, wherein the first machine code is used for uniquely identifying the first device; step S511, the third party device sends the first machine code to the first device, where the sent first machine code is used to instruct the first device to store the first machine code in the first device.
After receiving the first machine code sent by the third-party equipment, the first equipment burns and writes the first machine code into the first equipment.
For the pre-creation and storage of the second machine code of the second device, in an embodiment, as shown in fig. 2 and 5, before creating the scenario account for identifying the scenario, the method further includes: step S520, the third-party equipment receives second authorization information of the second equipment, generates a second machine code based on the second authorization information, and stores the second machine code into a machine code list, wherein the second machine code is used for uniquely identifying the second equipment; in step S521, the third-party device sends the second machine code to the second device, where the sent second machine code is used to instruct the second device to store the second machine code in the second device.
And after receiving the second machine code sent by the third-party equipment, the second equipment writes the second machine code into the second equipment in a burning mode.
For example, the first/second trust information may include server information to which the first/second device belongs and device credentials, for example, an account name and a password of the first/second device, or a custom credential of the first/second device.
The third party device may create the first/second machine code of the first/second device based on the device credentials of the first/second device, information of the server to which the device belongs, and the communication rules.
In the above embodiments, the device credential may be created by the first system or the second system, and the access rights of the trusted third party device may be set. The first system and the second system may define credentials that can resolve (verify identity) themselves and accept management of the credentials by trusted third party devices, e.g., saving, verifying, etc.
A. Both parties trust trusted third party devices. A. And B, writing the machine code created by the trusted third-party device based on the certificate into the first device and the second device of the two parties. In an embodiment, both the first device and the second device of A, B both write in advance to machine code created by and maintained by the trusted third party device based on the credentials.
Furthermore, the first credit information/second credit information may further include information of other devices that can be mutual trust devices for the first device/second device corresponding to the first credit information/second credit information, so as to instruct the third-party device to store a plurality of devices that can be mutual trust devices in the same machine code list. For example, the first trust information may include device information of the second device, and the second trust information may include device information of the first device.
Further, the scene account in step S310 may be created by a third-party device as needed, or may be created by a first device (first device) entering the scene.
In one embodiment, step S310 includes: a third-party device creates a scene account; the method comprises the steps that a third-party device receives a scene joining request of a first device, wherein the scene joining request carries a first machine code; and the third-party equipment adds the first equipment into the scene account based on the first machine code.
In another embodiment, step S310 includes: the method comprises the steps that a third-party device receives a scene creating request of a first device, wherein the scene creating request carries scene information and a first machine code; and the third-party equipment creates a scene account based on the scene information and the first machine code, and adds the first equipment into the scene account.
It is to be understood that the first device and the second device in the foregoing embodiments of the present application are only examples, and communication interconnection between three or more devices in the same scenario may also be implemented by repeatedly performing the foregoing methods of the present application.
Through the communication establishing method of each embodiment of the application, the first device and the second device can safely communicate in a scene by relying on the trusted third-party device. Therefore, the connection, trust, authentication, communication, interaction and the like among the devices in different Internet of things systems can be realized by depending on the trusted third-party device. The method can be directly applied to the sensing layer of the Internet of things, is directly practiced on the constructed Internet of things system and the Internet of things system to be constructed, and can quickly form a standard for the sensing layer of the Internet of things and be applied to practice. The application realizes interconnection and intercommunication among different Internet of things systems, and interconnection and intercommunication among internal devices of the same Internet of things system can be realized through the scheme. The communication connection method has stronger universality, and the autonomous interconnection can be realized by any broadcast protocol existing between the devices. The application provides a safety certification and trust mechanism, provides a convenient and feasible way for realizing 'everything interconnection', and is suitable for various industries.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
Fig. 6 shows a schematic diagram of a communication establishing apparatus according to an embodiment of the present application. As shown in fig. 6, there is provided a communication establishing apparatus 600 comprising: a scene account creating module 610, configured to create a scene account for identifying a scene, acquire a first machine code of a first device, and add the first machine code to the scene account; an information broadcasting module 620, configured to instruct a first device to broadcast a first machine code and a scene account in a scene; the information receiving module 630 is configured to receive a second machine code and a scene account sent by the second device after the second device enters a scene and receives the first machine code and the scene account broadcast by the first device; and a communication establishing module 640, configured to add the second machine code to the scene account and instruct the second device to establish a communication connection with the first device when it is determined that the first device and the second device are mutually trusted devices based on the first machine code and the second machine code.
For specific limitations of the communication establishing apparatus 600, reference may be made to the above limitations of the communication establishing method, which is not described herein again. The various modules in the communication establishing apparatus 600 described above may be implemented wholly or partly by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
Fig. 7 shows a schematic diagram of a communication establishing device according to an embodiment of the present application. The communication establishing device may be a computer device, which may be a server, and its internal structure diagram may be as shown in fig. 7. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data of communication establishment. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of communication establishment.
It will be appreciated by those skilled in the art that the configuration shown in fig. 7 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
creating a scene account for identifying a scene, acquiring a first machine code of first equipment, and adding the first machine code to the scene account;
instructing first equipment to broadcast a first machine code and a scene account number in a scene;
after the second device enters a scene and receives a first machine code and a scene account number broadcast by the first device, receiving a second machine code and a scene account number sent by the second device;
and when the first equipment and the second equipment are determined to be mutual-trust equipment based on the first machine code and the second machine code, adding the second machine code to the scene account, and indicating the second equipment to establish communication connection with the first equipment.
In other embodiments, the processor, when executing the computer program, also implements the steps of the communication establishment method according to any of the above embodiments, with corresponding advantages.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
creating a scene account for identifying a scene, acquiring a first machine code of first equipment, and adding the first machine code to the scene account;
instructing first equipment to broadcast a first machine code and a scene account number in a scene;
after the second device enters a scene and receives a first machine code and a scene account number broadcast by the first device, receiving a second machine code and a scene account number sent by the second device;
and when the first equipment and the second equipment are determined to be mutual communication equipment based on the first machine code and the second machine code, adding the second machine code to the scene account, and indicating the second equipment to establish communication connection with the first equipment.
In other embodiments, the computer program, when executed by the processor, further implements the steps of the communication establishment method of any of the above embodiments, with corresponding advantages.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A communication establishment method, comprising:
creating a scene account for identifying a scene, acquiring a first machine code of first equipment, and adding the first machine code to the scene account;
instructing the first device to broadcast the first machine code and the scene account number within the scene;
after a second device enters the scene and receives the first machine code and the scene account number broadcast by the first device, receiving a second machine code and the scene account number sent by the second device;
and when the first equipment and the second equipment are determined to be mutual trust equipment based on the first machine code and the second machine code, adding the second machine code to the scene account, and indicating the second equipment to establish communication connection with the first equipment.
2. The method of claim 1, wherein the instructing the second device to establish a communication connection with the first device comprises:
after the second device informs the first device that the two devices are mutually trusted devices, receiving a verification request sent by the first device;
when the first equipment and the second equipment are determined to be mutual-trust equipment based on the verification request, sending prompt information which passes verification to the first equipment, wherein the prompt information which passes verification is used for indicating the first equipment and the second equipment to establish communication connection.
3. The method of claim 1, wherein the determining whether the first device and the second device are trusted devices based on the first machine code and the second machine code comprises:
searching whether the second machine code exists in a machine code list corresponding to the first machine code;
and if so, determining that the first equipment and the second equipment are mutual communication equipment.
4. The method according to any one of claims 1 to 3, wherein before the creating a scene account for identifying a scene, further comprising:
receiving first credit information of the first equipment, generating a first machine code based on the first credit information, and storing the first machine code into the machine code list, wherein the first machine code is used for uniquely identifying the first equipment;
and sending the first machine code to the first device, wherein the sent first machine code is used for instructing the first device to store the first machine code into the first device.
5. The communication establishing method according to any one of claims 1 to 3, wherein before the creating of the scenario account for identifying the scenario, the method further comprises:
receiving second credit information of the second equipment, generating a second machine code based on the second credit information, and storing the second machine code into the machine code list, wherein the second machine code is used for uniquely identifying the second equipment;
and sending the second machine code to the second device, wherein the sent second machine code is used for instructing the second device to store the second machine code in the second device.
6. The method according to any one of claims 1 to 3, wherein the creating a scene account for identifying a scene, acquiring a first machine code of a first device, and adding the first machine code to the scene account comprises:
creating a scene account;
receiving a scene joining request of first equipment, wherein the scene joining request carries the first machine code;
and adding the first equipment into the scene account based on the first machine code.
7. The method according to any one of claims 1 to 3, wherein the creating a scene account for identifying a scene, acquiring a first machine code of a first device, and adding the first machine code to the scene account comprises:
receiving a scene creating request of first equipment, wherein the scene creating request carries scene information and the first machine code;
and creating a scene account based on the scene information and the first machine code, and adding the first equipment into the scene account.
8. A communication establishment apparatus comprising:
the system comprises a scene account establishing module, a scene account establishing module and a scene account establishing module, wherein the scene account establishing module is used for establishing a scene account for identifying a scene, acquiring a first machine code of first equipment and adding the first machine code to the scene account;
an information broadcasting module, configured to instruct the first device to broadcast the first machine code and the scene account in the scene;
the information receiving module is used for receiving a second machine code and the scene account sent by a second device after the second device enters the scene and receives the first machine code and the scene account broadcasted by the first device;
and the communication establishing module is used for adding the second machine code to the scene account and indicating the second equipment to establish communication connection with the first equipment when the first equipment and the second equipment are determined to be mutual trust equipment based on the first machine code and the second machine code.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110053342.XA 2021-01-15 2021-01-15 Communication establishing method, device, equipment and storage medium Expired - Fee Related CN112751942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110053342.XA CN112751942B (en) 2021-01-15 2021-01-15 Communication establishing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110053342.XA CN112751942B (en) 2021-01-15 2021-01-15 Communication establishing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112751942A CN112751942A (en) 2021-05-04
CN112751942B true CN112751942B (en) 2022-11-15

Family

ID=75652034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110053342.XA Expired - Fee Related CN112751942B (en) 2021-01-15 2021-01-15 Communication establishing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112751942B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843421A (en) * 2012-07-12 2012-12-26 腾讯科技(深圳)有限公司 Realizing method and device of user relationship in application of social network
CN110868500A (en) * 2019-10-12 2020-03-06 中国平安财产保险股份有限公司 Call communication method, device, computer equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014049884A (en) * 2012-08-30 2014-03-17 Toshiba Corp Scene information output device, scene information output program, and scene information output method
CN105827610B (en) * 2016-03-31 2020-01-31 联想(北京)有限公司 information processing method and electronic equipment
CN109361641B (en) * 2017-12-29 2022-03-11 深圳Tcl新技术有限公司 Method for adding heterogeneous terminal into scene, storage medium and application server
CN110099429A (en) * 2018-01-29 2019-08-06 九阳股份有限公司 A kind of household appliance networking method
CN109121087A (en) * 2018-06-27 2019-01-01 努比亚技术有限公司 Communication means, terminal and computer readable storage medium
CN109257259B (en) * 2018-11-30 2022-06-24 广东美的制冷设备有限公司 Scene linkage control method and device and household electrical appliance
CN112203263A (en) * 2020-09-25 2021-01-08 深圳市晨北科技有限公司 Broadcast message interaction method, terminal, device and medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102843421A (en) * 2012-07-12 2012-12-26 腾讯科技(深圳)有限公司 Realizing method and device of user relationship in application of social network
CN110868500A (en) * 2019-10-12 2020-03-06 中国平安财产保险股份有限公司 Call communication method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112751942A (en) 2021-05-04

Similar Documents

Publication Publication Date Title
CN109728954B (en) Federation node point management system and method
US10999784B2 (en) Method for smart device to access network, mobile terminal, cloud server, device, and system
CN107483419B (en) Method, device and system for authenticating access terminal by server, server and computer readable storage medium
US10645568B2 (en) Carrier configuration processing method, device and system, and computer storage medium
CN109688163B (en) Data processing method, device and equipment based on alliance chain and storage medium
CN111294356B (en) Block chain-based method and system for organizing uplink of nodes
CN105684482A (en) Method of establishing a trusted identity for an agent device
CN111222109A (en) Operation method of block chain account, node equipment and storage medium
CN110069909B (en) Method and device for login of third-party system without secret
CN110602455A (en) Video storage system, video processing method, device, equipment and storage medium
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
CN105119886A (en) Account ownership determination method and device
CN111949967A (en) Equipment authentication method and device, electronic equipment, server and storage medium
CN114528601B (en) Access method and device based on block chain data, processor and electronic equipment
CN110647583B (en) Block chain construction method, device, terminal and medium
CN111414640A (en) Key access control method and device
CN105101040A (en) Resource creating method and device
CN112751942B (en) Communication establishing method, device, equipment and storage medium
CN105812380A (en) Verification method and device
CN113642239A (en) Method and system for modeling federated learning
CN109299053B (en) File operation method, device and computer storage medium
CN105743922A (en) Method, device and system for inter-domain communication
CN107948140B (en) Portable equipment verification method and system
CN111464395B (en) Method and device for creating blockchain and readable storage medium
CN114567678A (en) Resource calling method and device of cloud security service and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20221115