Communication methods, communication devices, equipment and storage media

CN116437346BActive Publication Date: 2026-08-14深圳开鸿数字产业发展有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2026-08-14

AI Technical Summary

Technical Problem

然而,上述方法耗费了一次信息交互用于身份认证,且有效通信往往必须在身份认证以后才会成功执行,故必须保持至少两次信息的连续收发才能完成一次成功的数据传输,因此降低了设备间通信的效率

Benefits of technology

[0017]本申请实施例公开的一种通信方法、通信装置、设备及计算机可读存储介质,能够在主设备与从设备相互发现后,主设备接收从设备发送的第一设备信息与数据信息。进而主设备基于第一设备信息对从设备进行验证,得到对应的验证结果,以及基于数据信息得到对应的响应信息。在验证成功后,主设备向从设备发送第二设备信息以及响应信息,从而从设备能够对第二设备信息进行验证,以及接受响应信息。在从设备验证成功后,即可实现了主设备与从设备之间的认证。进一步的,由于在认证过程中还实现了数据信息的收发,因此,提高了主设备与从设备之间的通信效率。此外,上述通信过程受信号干扰的影响较小,因此还提高了主设备与从设备之间通信的可靠性以及稳定性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116437346B_ABST
    Figure CN116437346B_ABST
Patent Text Reader

Abstract

This invention provides a communication method, apparatus, device, and storage medium. Applied to a communication system, it includes a master device and a slave device connected via short-range wireless communication. The method includes: after the master device and slave device discover each other, the master device receives first transmission information sent by the slave device, which includes first device information and data information; after receiving the first transmission information, the master device verifies the first device information to obtain a first verification result, and obtains corresponding response information based on the data information; if the first verification result is successful, the master device sends second transmission information to the slave device, enabling the slave device to receive the second transmission information, which includes second device information and response information; if the slave device verifies the second device information and obtains a second verification result that passes, communication transmission is achieved between the master device and the slave device. This application aims to provide a communication method to improve communication efficiency between devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a communication method, communication device, equipment, and computer-readable storage medium. Background Technology

[0002] With the rapid development of computer network technology and Internet of Things (IoT) technology, the era of the Internet of Everything is becoming a reality. Various smart devices are entering people's daily lives, and the key to the Internet of Everything lies in how to achieve authentication between different devices, thereby enabling communication between them.

[0003] In existing technologies, device communication supports multiple methods such as Bluetooth, Wi-Fi, and NFC. A common authentication scheme requires both devices to perform a communication interaction for authentication. After successful authentication, device trust is established before formal data transmission. However, this method consumes one information exchange for authentication, and effective communication often only occurs after authentication. Therefore, at least two consecutive transmissions are required for a successful data transmission, thus reducing the efficiency of device communication. Furthermore, in environments with significant signal interference or unstable hardware, this scheme leads to a low success rate for device transmission. Summary of the Invention

[0004] This application provides a communication method, communication device, equipment, and computer-readable storage medium, which aims to improve the efficiency of communication between devices.

[0005] To achieve the above objectives, this application provides a communication method applied to a communication system, the communication system including a master device and at least one slave device, the master device and the slave device being connectable via short-range wireless communication, the method comprising:

[0006] After the master device and the slave device discover each other, the master device receives first transmission information sent by the slave device, wherein the first transmission information includes first device information and data information;

[0007] After the master device receives the first transmission information, the master device verifies the first device information to obtain a first verification result, and obtains corresponding response information based on the data information;

[0008] When the first verification result is successful, the master device sends second transmission information to the slave device so that the slave device receives the second transmission information, wherein the second transmission information includes second device information and the response information;

[0009] When the slave device verifies the second device information and obtains a second verification result, and the second verification result is passed, communication transmission is achieved between the master device and the slave device.

[0010] To achieve the above objectives, this application also provides a communication device, the communication device comprising:

[0011] The sending module is configured to, after the master device and the slave device discover each other, have the master device receive first transmission information sent by the slave device, wherein the first transmission information includes first device information and data information;

[0012] The verification module is configured to, after the master device receives the first transmission information, verify the first device information to obtain a first verification result, and obtain corresponding response information based on the data information;

[0013] The sending module is further configured to, when the first verification result is successful, send second transmission information to the slave device so that the slave device receives the second transmission information, wherein the second transmission information includes second device information and the response information;

[0014] A communication module is provided, wherein when the slave device verifies the second device information and obtains a second verification result, and the second verification result is passed, the master device and the slave device shall communicate and transmit information.

[0015] In addition, to achieve the above objectives, this application also provides an apparatus comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and, when executing the computer program, implement the steps of any of the communication methods provided in the embodiments of this application.

[0016] In addition, to achieve the above objectives, this application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to implement the steps of any of the communication methods provided in the embodiments of this application.

[0017] This application discloses a communication method, communication device, equipment, and computer-readable storage medium. After a master device and a slave device discover each other, the master device receives first device information and data information sent by the slave device. The master device then verifies the slave device based on the first device information, obtaining a corresponding verification result, and obtains corresponding response information based on the data information. Upon successful verification, the master device sends second device information and response information to the slave device, enabling the slave device to verify the second device information and receive the response information. Authentication between the master and slave devices is achieved upon successful slave device verification. Furthermore, since data transmission and reception are also implemented during the authentication process, the communication efficiency between the master and slave devices is improved. In addition, the above communication process is less affected by signal interference, thus improving the reliability and stability of communication between the master and slave devices. Attached Figure Description

[0018] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram illustrating the steps of a communication method provided in an embodiment of this application;

[0020] Figure 2 This is a schematic diagram of a master device and a slave device scenario provided in an embodiment of this application;

[0021] Figure 3 This is a schematic diagram illustrating the steps of a master device sending second transmission information to a slave device, as provided in an embodiment of this application.

[0022] Figure 4 Is it like this? Figure 1 A flowchart illustrating a communication method is shown.

[0023] Figure 5 This is a schematic diagram illustrating the steps of changing permissions provided in an embodiment of this application;

[0024] Figure 6 This is a schematic diagram illustrating the steps of a master device sending second device information and permission change information to a slave device, as provided in an embodiment of this application.

[0025] Figure 7 Is it like this? Figure 4 The diagram illustrates a process for changing permissions.

[0026] Figure 8This is a schematic block diagram of a communication device provided in an embodiment of this application;

[0027] Figure 9 This is a schematic block diagram of a device provided in an embodiment of this application. Detailed Implementation

[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0029] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be performed in the described order. For example, some operations / steps can be broken down, combined, or partially merged, so the actual execution order may change depending on the actual situation. Furthermore, although functional modules are divided in the device diagram, in some cases, a different module division may be used.

[0030] The term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items, as well as all possible combinations, and includes such combinations.

[0031] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.

[0032] To facilitate understanding of the embodiments of this application, some background information related to the embodiments of this application will be briefly explained below.

[0033] Most common device interconnections are applied in "1+N" interaction scenarios. "1" represents a super terminal, acting as the master device; "N" represent slave devices with relatively simple functions. Communication between master and slave devices typically involves each device sending its own identity information once, completing an interaction and authentication before starting data transmission. The specific process is as follows: Both devices send their own identity data. Then, both devices receive the other's information and verify the other's identity. After one interaction is completed and identity verification is successful, device trust is established, and formal data transmission begins.

[0034] The drawback of the aforementioned techniques is that they consume one information exchange for device authentication. Since effective communication only occurs after successful device authentication, at least two consecutive transmissions are required to complete a single data transmission, resulting in low data transmission efficiency. Furthermore, in environments with significant signal interference or unstable hardware, these solutions can lead to a low success rate for inter-device transmission.

[0035] Therefore, it is necessary to propose a communication method to improve the efficiency and success rate of communication between devices.

[0036] Please see Figure 1 as well as Figure 2 , Figure 1 This is a schematic diagram illustrating the steps of a communication method provided in an embodiment of this application; Figure 2 This is a schematic diagram of a master device and a slave device scenario provided in an embodiment of this application. The communication method can be applied to a communication system, which includes a master device and at least one slave device, and the master device and slave device can be connected via short-range wireless communication.

[0037] like Figure 1 As shown, the communication method includes steps S11 to S14.

[0038] Step S11: After the master device and the slave device discover each other, the master device receives the first transmission information sent by the slave device.

[0039] Among them, the master device is a device that can actively establish a connection with the slave device; the slave device is a device that passively establishes a connection with the master device.

[0040] like Figure 2 As shown, the master device and multiple slave devices can be connected via short-range wireless communication.

[0041] It should be noted that short-range wireless communication technology evolved from the integration of contactless radio frequency identification (RFID) and interconnection technology. It combines inductive card readers, inductive cards and point-to-point functions on a single chip, enabling identification and data exchange with compatible devices over short distances.

[0042] Furthermore, after the master device and the slave device discover each other, the master device can receive the first transmission information sent by the slave device.

[0043] The first transmission information includes first device information and data information. The first device information is the device information of the slave device, which includes device type information, device number, domain ID information, etc., which are not limited in this application. In addition, the data information is the information that the master and slave devices need to exchange.

[0044] In this embodiment, after the master device and slave device discover each other based on the near-field wireless communication connection, the master device can receive first transmission information sent by the slave device. The first transmission information includes first device information and data information. This allows the master device to receive the slave device's first device information for identification of the slave device, and to receive data information for information exchange between the master device and the slave device.

[0045] Step S12: After the master device receives the first transmission information, the master device verifies the first device information to obtain the first verification result, and obtains the corresponding response information based on the data information.

[0046] Understandably, the first verification result is the master device's verification result of the slave device's identity information. Specifically, the master device can verify the first device information to authenticate whether the slave device's identity is legitimate and obtain the first verification result. For example, the master device can verify the slave device's device type information to authenticate whether the slave device's identity is legitimate.

[0047] Furthermore, after receiving data information sent by the slave device, the master device can respond based on the data information to obtain the response information corresponding to the data information.

[0048] In this embodiment, the master device can authenticate the slave device based on the first device information to confirm the legitimacy of the corresponding slave device's identity. Furthermore, it can obtain corresponding response information based on the received data to inform the slave device that it has received the data it sent, thus preventing data reception failures.

[0049] Step S13: When the first verification result is successful, the master device sends the second transmission information to the slave device so that the slave device can receive the second transmission information.

[0050] Specifically, if the first verification result is successful, it indicates that the slave device's identity is legitimate. At this time, the master device can send a second transmission message to the slave device so that the slave device can receive the second transmission message.

[0051] The second transmitted information includes second device information and response information.

[0052] The second device information is the device information of the main device, which includes device type information, device number, domain ID information, etc. This application does not limit this information.

[0053] Understandably, the second device information can be used to authenticate the master device. Furthermore, after receiving a response from the master device, the slave device can determine that the master device has received the data it sent. Conversely, if the slave device does not receive the data, it indicates that the master device has not received it. In this case, the slave device can resend the data to the master device, enabling data transmission between the master and slave devices and reducing the probability of data transmission failure.

[0054] Step S14: When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, communication transmission is achieved between the master device and the slave device.

[0055] Understandably, the slave device can verify the information of the second device to confirm the legitimacy of the master device's identity. Furthermore, if the second verification result is successful, it indicates that the master device's identity is legitimate, thus achieving authentication between the master and slave devices. In addition, the above process also enables the transmission and reception of data between the master and slave devices. That is, communication transmission is achieved between the master and slave devices. Since the above process does not require separate authentication and data transmission between the master and slave devices, the communication transmission efficiency is high.

[0056] In this embodiment, after the master device and slave device discover each other, the master device can receive first device information and data information sent by the slave device. Then, the master device verifies the slave device based on the first device information, obtaining the corresponding verification result, and obtains the corresponding response information based on the data information. After successful verification, the master device sends second device information and response information to the slave device, enabling the slave device to verify the second device information and receive the response information. Authentication between the master and slave devices is achieved after successful slave device verification. Furthermore, since data transmission and reception are also implemented during the authentication process, the communication efficiency between the master and slave devices is improved. In addition, the above communication process is less affected by signal interference, thus improving the reliability and stability of communication between the master and slave devices.

[0057] Please continue reading. Figure 3 , Figure 3 This is a schematic diagram illustrating the steps of a master device sending second transmission information to a slave device, as provided in an embodiment of this application. Figure 3 As shown, when the first verification result is successful, the master device can also send the second transmission information to the slave device through steps S131 to S132.

[0058] Step S131: When the first verification result is successful, the master device determines whether the slave device has joined another domain.

[0059] Specifically, the master device can determine whether the slave device has joined another domain based on the first device information. For example, it can determine whether the slave device's domain ID information is consistent with its own domain ID information. If the slave device's domain ID information is inconsistent with the master device's domain ID information, it means that the slave device has joined another domain.

[0060] It should be noted that the aforementioned domains refer to device groups. Understandably, a slave device can only communicate and interact normally with the master device when it joins the master device's domain.

[0061] Step S132: When the slave device has joined another domain, the master device sends a second transmission message to the slave device so that the slave device leaves the other domain based on the second transmission message.

[0062] Specifically, when a slave device has already joined another domain, the master device can send second transmission information to the slave device, enabling the slave device to receive the second transmission information. This second transmission information includes second device information. Based on this, the slave device can leave another domain using the second device information. For example, the slave device can determine that its own domain ID information is inconsistent with the master device's domain ID information; in this case, the slave device can leave the other domain.

[0063] In this embodiment, when the first verification result is successful, the master device can determine whether the slave device has joined another domain based on the first device information. If the slave device has joined another domain, the master device sends second transmission information to the slave device, so that the slave device leaves the other domain based on the second transmission information. This prevents the slave device from joining another domain and being unable to communicate normally with the master device, reducing the probability of communication failure.

[0064] Optionally, after the master device determines whether the slave device has joined another domain, the process further includes: if the slave device has not joined another domain, the master device determines whether the slave device has joined the master device's domain; if the slave device has not joined the master device's domain, the master device sends second transmission information to the slave device.

[0065] Specifically, when the slave device has not joined any other domain, the master device can also determine whether the slave device has joined the master device's domain based on the first device information. For example, it can determine whether the slave device has joined the master device's domain based on the slave device's domain ID information. Furthermore, if it is determined that the slave device has not joined the master device's domain, the master device sends second transmission information to the slave device.

[0066] Understandably, the second transmission information can be used to enable the slave device to join the master device domain.

[0067] Optionally, after the slave device verifies the second device information and obtains a second verification result, and the second verification result is passed, the process includes: when the slave device determines based on the second device information that it has not joined other domains, and the slave device joins the master device domain, communication transmission is achieved between the master device and the slave device.

[0068] Specifically, after the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, it indicates that the master device's identity is legitimate. At this point, the slave device can determine that it has not joined any other domain based on the second transmission information, and then join the master device's domain based on the second transmission information. For example, it can join the master device's domain based on the master device's domain ID information. In this way, communication and transmission between the master device and the slave device can be realized.

[0069] In this embodiment, when the slave device has not joined another domain, the master device can determine whether the slave device has joined the master device's domain. If the slave device has not joined the master device's domain, the master device sends second transmission information to the slave device to enable the slave device to join the master device's domain based on the second device information. Furthermore, when the slave device determines based on the second device information that it has not joined another domain and has joined the master device's domain, communication transmission between the master device and the slave device can be achieved. The above method can further determine whether the slave device has joined the master device's domain. Thus, normal communication between the slave device and the master device can be achieved, preventing communication failures caused by the slave device not joining the master device's domain.

[0070] Please continue reading. Figure 4 , Figure 4 Is it like this? Figure 1 The diagram illustrates a communication method. Figure 4 As shown, after the master device and slave device discover each other, the slave device can send first transmission information to the master device, enabling the master device to receive the first transmission information. The first transmission information includes first device information and data information. The first device information is the slave device's device information, which includes device type information, device number, domain ID information, etc.

[0071] Furthermore, after the master device receives the first transmission information, it verifies the first device information to obtain a first verification result and obtains corresponding response information based on the data information. Based on the first device information, the master device determines whether the slave device has joined another domain. If the slave device has joined another domain, the master device sends second transmission information to the slave device so that the slave device can receive the second transmission information. When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the slave device can determine whether it has joined another domain based on the second transmission information. If it has not joined another domain but has joined the master device's domain, communication transmission is achieved between the master device and the slave device.

[0072] Furthermore, when the master device determines whether the slave device has joined another domain based on the first device information, and the slave device has not joined another domain, the master device can further determine whether the slave device has joined the master device's domain. If the slave device has not joined the master device's domain, the master device sends second transmission information to the slave device so that the slave device can receive the second transmission information. When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the slave device can determine whether it has joined another domain based on the second transmission information. If it has not joined another domain and has joined the master device's domain, communication transmission is achieved between the master device and the slave device.

[0073] Because the above communication process simultaneously authenticates the identity of the master device and transmits and receives data, it improves the communication efficiency between the master and slave devices. Furthermore, the communication process is less affected by signal interference, thus also improving the reliability and stability of the communication between the master and slave devices.

[0074] Please see Figure 5 , Figure 5 This is a schematic diagram illustrating the steps of changing permissions according to an embodiment of this application. Figure 5 As shown, the permissions of the device can be changed through steps S21 to S24.

[0075] Step S21: After the master device and the slave device discover each other, the master device receives the first transmission information sent by the slave device.

[0076] Step S22: After the master device receives the first transmission information, the master device verifies the first device information to obtain the first verification result, and obtains the corresponding response information based on the data information.

[0077] It should be noted that the descriptions of steps S21 and S22 can be found in the above embodiments, and will not be repeated here to avoid repetition.

[0078] Step S23: When the first verification result is successful, the master device sends the second transmission information and permission change information to the slave device so that the slave device can receive the second transmission information and permission change information.

[0079] Specifically, if the first verification result is successful, it indicates that the slave device's identity is legitimate. At this time, the master device can send the second transmission information and permission change information to the slave device, so that the slave device can receive the second transmission information and permission change information.

[0080] It is understandable that the device can change permissions based on permission change information.

[0081] Step S24: When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the master device causes the slave device to change permissions based on the permission change information.

[0082] Understandably, the slave device can verify the information of the second device to confirm the legitimacy of the master device. Furthermore, if the second verification result is successful, it indicates that the master device's identity is legitimate, thus achieving authentication between the master and slave devices. Further, the slave device can modify permissions based on permission change information. Therefore, the above process simultaneously achieves authentication between the master and slave devices, permission modification for the slave device, and data transmission and reception. That is, communication transmission is achieved between the master and slave devices. Since the above process does not require separate authentication between the master and slave devices, permission modification for the slave device, and data transmission and reception, the communication transmission efficiency between the two is high.

[0083] In this embodiment, after the master device and slave device discover each other, the master device can receive first device information and data information sent by the slave device. Then, the master device verifies the slave device based on the first device information, obtaining the corresponding verification result, and obtains the corresponding response information based on the data information. After successful verification, the master device sends second transmission information and permission change information to the slave device, thereby realizing authentication, data transmission and reception, and permission changes between the master and slave devices. Therefore, the communication efficiency between the master and slave devices is improved. Furthermore, the above communication process is less affected by signal interference, thus also improving the reliability and stability of communication between the master and slave devices.

[0084] Please continue reading. Figure 6 , Figure 6 This is a schematic diagram illustrating the steps of a master device sending second device information and permission change information to a slave device, as provided in an embodiment of this application. Figure 6 As shown, steps S231 to S233 can be used to send second device information and permission change information from the master device to the slave device.

[0085] Step S231: When the first verification result is successful, the master device determines whether the slave device has joined other domains.

[0086] Specifically, the master device can determine whether the slave device has joined another domain based on the first device information. For example, it can determine whether the slave device's domain ID information is consistent with its own domain ID information. If the slave device's domain ID information is inconsistent with the master device's domain ID information, it means that the slave device has joined another domain.

[0087] Step S232: If the slave device has not joined another domain, the master device determines whether the slave device has joined the master device's domain.

[0088] Specifically, when the slave device has not joined any other domain, the master device can also determine whether the slave device has joined the master device's domain based on the first device information. For example, it can determine whether the slave device has joined the master device's domain based on the slave device's domain ID information. Furthermore, if it is determined that the slave device has not joined the master device's domain, the master device sends second transmission information to the slave device.

[0089] Understandably, the second transmission information can be used to enable the slave device to join the master device domain.

[0090] Step S233: When the slave device joins the master device domain, the master device sends the second device information and permission change information to the slave device.

[0091] Furthermore, when a slave device joins the master device's domain, it indicates that normal communication and transmission can be achieved between the master and slave devices. At this time, the master device sends second device information and permission change information to the slave device, enabling the slave device to change permissions based on the permission change information.

[0092] In this embodiment, when the slave device has not joined another domain, the master device can determine whether the slave device has joined the master device's domain. If the slave device joins the master device's domain, the master device sends second transmission information and permission change information to the slave device. This enables the slave device to change permissions based on the permission change information and facilitates communication between the master and slave devices. This ensures normal communication between the slave and master devices and prevents communication failures caused by the slave device not being joined to the master device's domain.

[0093] Optionally, when the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the master device causes the slave device to change permissions based on the permission change information, including: when the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the master device causes the slave device to determine whether it has joined other domains based on the second device information; when the slave device has not joined other domains, the master device causes the slave device to change permissions based on the permission change information.

[0094] Specifically, when the slave device verifies the information of the second device and obtains a second verification result, and the second verification result is successful, it indicates that the identity of the master device is legitimate. At this time, the master device enables the slave device to determine whether it has joined other domains based on the information of the second device. If the slave device has not joined other domains, the master device enables the slave device to change permissions based on the permission change information.

[0095] In this embodiment, when the slave device determines, based on the second device information, that it has not joined any other domain, and the slave device has joined the master device domain, communication transmission between the master device and the slave device can be achieved. The above method can further confirm that the slave device has joined the master device domain. Thus, normal communication between the slave device and the master device can be achieved, preventing communication failures caused by the slave device not joining the master device domain.

[0096] Optionally, when the slave device has not joined another domain, after the master device causes the slave device to make permission changes based on the permission change information, the process includes: the master device determining the result of the permission change made by the slave device; and if the result of the permission change by the slave device is a failure, the master device resends the permission change information to the slave device.

[0097] In this embodiment, the master device can also determine the result of the permission change performed by the slave device. If the permission change fails, the master device resends the permission change information to the slave device. This reduces the likelihood of permission change failures on the slave device.

[0098] Please see Figure 7 , Figure 7 Is it like this? Figure 4 The diagram illustrates a permission change process. Figure 7 As shown, after the master device and slave device discover each other, the slave device can send first transmission information to the master device, enabling the master device to receive the first transmission information. The first transmission information includes first device information and data information. The first device information is the slave device's device information, which includes device type information, device number, domain ID information, etc.

[0099] Furthermore, after the master device receives the first transmission information, it verifies the first device information to obtain a first verification result and obtains corresponding response information based on the data information. Based on the first device information, the master device determines whether the slave device has joined another domain. If the slave device has not joined another domain, the master device further determines whether it has joined the master device's domain. If the slave device has not joined the master device's domain, the master device sends second device information and permission change information to the slave device, enabling the slave device to receive the second transmission information and permission change information. When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the slave device can determine whether it has joined another domain based on the second transmission information. If it has not joined another domain but has joined the master device's domain, the slave device can perform permission change operations based on the permission change information. The above process realizes authentication, data transmission and reception, and permission changes between the master and slave devices. Therefore, it improves the communication efficiency between the master and slave devices. In addition, the above communication process is less affected by signal interference, thus improving the reliability and stability of communication between the master and slave devices.

[0100] Please see Figure 8 , Figure 8 This is a schematic block diagram of a communication device provided in an embodiment of this application. The communication device can be configured in a server to perform the steps of the aforementioned communication method.

[0101] like Figure 8 As shown, the communication device 200 includes: a sending module 201, a verification module 202, and a communication module 203.

[0102] The sending module 201 is used to receive first transmission information sent by the slave device after the master device and the slave device discover each other, wherein the first transmission information includes first device information and data information;

[0103] The verification module 202 is used to verify the first device information to obtain a first verification result after the master device receives the first transmission information, and to obtain corresponding response information based on the data information;

[0104] The sending module 201 is further configured to, when the first verification result is successful, send second transmission information to the slave device so that the slave device receives the second transmission information, wherein the second transmission information includes second device information and the response information;

[0105] The communication module 203 is used to enable communication transmission between the master device and the slave device when the slave device verifies the second device information to obtain a second verification result and the second verification result is passed.

[0106] The sending module 201 is further configured to, when the first verification result is successful, determine whether the slave device has joined another domain; when the slave device has joined another domain, the master device sends the second transmission information to the slave device so that the slave device leaves the other domain based on the second transmission information.

[0107] The sending module 201 is further configured to, when the slave device has not joined another domain, determine whether the slave device has joined the master device domain; and when the slave device has not joined the master device domain, send the second transmission information to the slave device.

[0108] The communication module 203 is further configured to enable communication transmission between the master device and the slave device when the slave device determines, based on the second device information, that it has not joined another domain and the slave device has joined the master device domain.

[0109] The sending module 201 is further configured to, when the first verification result is successful, send second transmission information and permission change information to the slave device, so that the slave device receives the second transmission information and the permission change information.

[0110] The communication module 203 is further configured to, when the slave device verifies the second device information to obtain a second verification result, and the second verification result is successful, cause the master device to change the permissions of the slave device based on the permission change information.

[0111] The sending module 201 is further configured to, when the first verification result is successful, determine whether the slave device has joined another domain; when the slave device has not joined another domain, determine whether the slave device has joined the master device domain; when the slave device joins the master device domain, the master device sends the second device information and the permission change information to the slave device.

[0112] The communication module 203 is further configured to, when the slave device verifies the second device information to obtain a second verification result and the second verification result is successful, cause the master device to enable the slave device to determine whether it has joined other domains based on the second device information; when the slave device has not joined other domains, the master device enables the slave device to perform permission changes based on the permission change information.

[0113] The communication module 203 is also used to determine the result of the permission change performed by the slave device through the master device; when the result of the permission change of the slave device is failure, the master device resends the permission change information to the slave device.

[0114] It should be noted that those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the above-described apparatus and its modules and units can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0115] The methods and apparatus of this application can be used in a wide variety of general-purpose or special-purpose computing system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer terminal devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.

[0116] For example, the above-described method and apparatus can be implemented as a computer program, which can be used in, for example... Figure 9 It runs on the device shown.

[0117] Please see Figure 9 , Figure 9 This is a schematic block diagram of a device provided in one embodiment of this application. The device may be a server.

[0118] like Figure 9 As shown, the device includes a processor, memory, and network interface connected via a system bus, wherein the memory may include volatile storage media, non-volatile storage media, and internal memory.

[0119] Non-volatile storage media can store operating systems and computer programs. These computer programs include program instructions that, when executed, cause the processor to perform any communication method.

[0120] The processor provides computing and control capabilities to support the operation of the entire device.

[0121] Internal memory provides an environment for the execution of computer programs stored on non-volatile storage media. When these computer programs are executed by a processor, the processor can perform any communication method.

[0122] This network interface is used for network communication, such as sending assigned tasks. Those skilled in the art will understand that the structure of this device is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the device to which the present application is applied. Specific devices may include more or fewer components than shown in the diagram, or may combine certain components, or may have different component arrangements.

[0123] It should be understood that the processor can be a Central Processing Unit (CPU), but it can also be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among these, a general-purpose processor can be a microprocessor or any conventional processor.

[0124] In some embodiments, the processor is used to run a computer program stored in a memory to perform the following steps: after the master device and the slave device discover each other, the master device receives first transmission information sent by the slave device, wherein the first transmission information includes first device information and data information; after the master device receives the first transmission information, the master device verifies the first device information to obtain a first verification result, and obtains corresponding response information based on the data information; when the first verification result is successful, the master device sends second transmission information to the slave device so that the slave device receives the second transmission information, wherein the second transmission information includes second device information and the response information; when the slave device verifies the second device information to obtain a second verification result, and the second verification result is successful, communication transmission is achieved between the master device and the slave device.

[0125] In some implementations, the processor is further configured to, when the first verification result is successful, determine whether the slave device has joined another domain; if the slave device has joined another domain, the master device sends the second transmission information to the slave device so that the slave device leaves the other domain based on the second transmission information.

[0126] In some embodiments, the processor is further configured to, when the slave device has not joined another domain, determine whether the slave device has joined the master device domain; and when the slave device has not joined the master device domain, the master device sends the second transmission information to the slave device.

[0127] In some implementations, the processor is further configured to enable communication transmission between the master device and the slave device when the slave device determines, based on the second device information, that it has not joined another domain and the slave device has joined the master device domain.

[0128] In some embodiments, the processor is further configured to, when the first verification result is successful, send second transmission information and permission change information to the slave device, so that the slave device receives the second transmission information and the permission change information; when the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the master device causes the slave device to change permissions based on the permission change information.

[0129] In some implementations, the processor is further configured to, when the first verification result is successful, determine whether the slave device has joined another domain; when the slave device has not joined another domain, determine whether the slave device has joined the master device domain; when the slave device joins the master device domain, the master device sends the second device information and the permission change information to the slave device.

[0130] In some embodiments, the processor is further configured to, when the slave device verifies the second device information to obtain a second verification result, and the second verification result is successful, cause the master device to enable the slave device to determine whether it has joined another domain based on the second device information; when the slave device has not joined another domain, the master device enables the slave device to perform permission changes based on the permission change information.

[0131] In some implementations, the processor is further configured to determine the result of the permission change performed by the slave device through the master device; if the result of the permission change of the slave device is a failure, the master device resends the permission change information to the slave device.

[0132] This application also provides a computer-readable storage medium storing a computer program, the computer program including program instructions, which, when executed, implement any of the communication methods provided in this application.

[0133] The computer-readable storage medium can be an internal storage unit of the device described in the foregoing embodiments, such as the hard disk or memory of the device. The computer-readable storage medium can also be an external storage device of the device, such as a plug-in hard disk, Smart Media Card (SMC), Secure Digital (SD) card, or Flash Card equipped on the device.

[0134] Furthermore, the computer-readable storage medium may primarily include a program storage area and a data storage area, wherein the program storage area may store the operating system, at least one application program required for a function, etc.

[0135] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A communication method, characterized in that, Applied to a communication system, the communication system including a master device and at least one slave device, the master device and the slave device being connectable via short-range wireless communication, the method includes: After the master device and the slave device discover each other, the master device receives first transmission information sent by the slave device, wherein the first transmission information includes first device information and data information; After the master device receives the first transmission information, the master device verifies the first device information to obtain a first verification result, and obtains corresponding response information based on the data information; When the first verification result is successful, the master device sends second transmission information to the slave device so that the slave device receives the second transmission information, wherein the second transmission information includes second device information and the response information; When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, communication transmission is achieved between the master device and the slave device. The step further includes, after the master device receives the first transmission information, verifying the first device information to obtain the first verification result, and obtaining the corresponding response information based on the data information; When the first verification result is successful, the master device sends the second transmission information and the permission change information to the slave device, so that the slave device receives the second transmission information and the permission change information; When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the master device causes the slave device to change permissions based on the permission change information; Wherein, when the first verification result is successful, the master device sends second device information and permission change information to the slave device, including: When the first verification result is successful, the master device determines whether the slave device has joined another domain; When the slave device has not joined another domain, the master device determines whether the slave device has joined the master device domain. When the slave device joins the master device domain, the master device sends the second device information and the permission change information to the slave device.

2. The method according to claim 1, characterized in that, When the first verification result is successful, the master device sends second transmission information to the slave device, including: When the first verification result is successful, the master device determines whether the slave device has joined another domain; When the slave device has joined another domain, the master device sends the second transmission information to the slave device so that the slave device leaves the other domain based on the second transmission information.

3. The method according to claim 2, characterized in that, After the master device determines whether the slave device has joined another domain, the process further includes: When the slave device has not joined any other domain, the master device determines whether the slave device should join the master device domain. When the slave device has not joined the master device domain, the master device sends the second transmission information to the slave device.

4. The method according to claim 1, characterized in that, After the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the process includes: When the slave device determines, based on the second device information, that it has not joined any other domain, and the slave device joins the domain of the master device, communication transmission is achieved between the master device and the slave device.

5. The method according to claim 4, characterized in that, The first device information and the second device information include device type information, device number, and domain ID information.

6. The method according to claim 1, characterized in that, When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the master device causes the slave device to perform a permission change based on the permission change information, including: When the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful, the master device enables the slave device to determine whether it has joined another domain based on the second device information; When the slave device has not joined another domain, the master device enables the slave device to perform permission changes based on the permission change information.

7. The method according to claim 6, characterized in that, When the slave device has not joined another domain, after the master device causes the slave device to change permissions based on the permission change information, the following steps are included: The master device determines the result of the permission change made by the slave device; If the permission change of the slave device fails, the master device resends the permission change information to the slave device.

8. A communication device, characterized in that, For implementing the communication method as described in any one of claims 1-7, the communication device comprises: The sending module is used to receive first transmission information sent by the slave device after the master device and the slave device discover each other, wherein the first transmission information includes first device information and data information; The verification module is configured to, after the master device receives the first transmission information, verify the first device information to obtain a first verification result, and obtain corresponding response information based on the data information; The sending module is further configured to, when the first verification result is successful, send second transmission information to the slave device so that the slave device receives the second transmission information, wherein the second transmission information includes second device information and the response information; A communication module is provided, which is used to enable communication transmission between the master device and the slave device when the slave device verifies the second device information and obtains a second verification result, and the second verification result is successful.

9. A device, characterized in that, include: A memory and a processor; wherein the memory is connected to the processor and is used to store a program, and the processor is used to implement the steps of the communication method as described in any one of claims 1-7 by running the program stored in the memory.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, causes the processor to implement the steps of the communication method as described in any one of claims 1-7.

Citation Information

Patent Citations

  • Terminal equipment authentication method, apparatus and system thereof

    CN106034028A

  • System authentication method, equipment and device and computer readable storage medium

    CN109729066A