Device binding method, device and computer readable storage medium
Patent Information
- Application Number
- CN202210761606.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2042-06-30
AI Technical Summary
The existing technology lacks a method for quickly realizing one-to-one binding between the oral scanning device and the computer, and the Bluetooth connection operation is inconvenient.
The oral scanning device broadcasts UDP messages, carrying firmware version information and device identification, receives the device binding request from the target terminal, and performs one-to-one binding based on the terminal identification. Use a mutex lock to manage the device binding status to ensure that the device is Single terminal binding.
It achieves fast one-to-one binding of devices and computers, improves user experience, and avoids the problem of poor real-time control caused by binding multiple computers and devices.
Smart Images

Figure CN115150482B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent control, and in particular to a device binding method, device and computer-readable storage medium. Background Art
[0002] After the oral scanning device is bound to the computer, the oral scanning device can be controlled by the computer to perform scanning operations.
[0003] In the related art, the connection and binding between the oral scanning device and the computer is realized by a Bluetooth connection method. This method can realize the binding between the oral scanning device and the computer, but there is a problem of inconvenient operation through the Bluetooth connection. That is, in the related art, there is a lack of a method for quickly realizing a one-to-one binding between the oral scanning device and the computer.
[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0005] The embodiments of the present invention provide a device binding method, apparatus and computer-readable storage medium to at least solve the technical problem in the related art that there is a lack of a method for quickly achieving one-to-one binding between an oral scanning device and a computer.
[0006] According to one aspect of an embodiment of the present invention, a device binding method is provided, comprising: an oral scanning device broadcasts a User Datagram Protocol (UDP) message, wherein the UDP message carries firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; the oral scanning device receives a device binding request sent by a target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries a terminal identifier of the target terminal; the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identifier of the target terminal.
[0007] Optionally, the method further includes: receiving a device information calling instruction sent by the target terminal; and sending the device information of the oral scanning device to the target terminal according to the device information calling instruction.
[0008] Optionally, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal, including: the oral scanning device determines whether the oral scanning device is bound to other terminals except the target terminal based on a mutex lock; when the oral scanning device is not bound to other terminals except the target terminal, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal.
[0009] Optionally, the method further includes: when the oral scanning device is bound to other terminals except the target terminal, sending an unbinding request instruction to the other terminal; receiving a feedback instruction sent by the other terminal; and when the feedback instruction is for agreeing to unbind, deleting the other terminal identifiers of the other terminals in the mutex lock, and writing the terminal identifier of the target terminal into the mutex lock.
[0010] Optionally, the method further includes: when the feedback instruction indicates that the unbinding is not agreed, sending feedback information indicating that the binding is not agreed to to the target terminal.
[0011] According to another aspect of an embodiment of the present invention, a device binding method is also provided, including: a target terminal receives a UDP message broadcast by an oral scanning device, wherein the UDP message carries firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; the target terminal verifies the oral scanning device according to the firmware version information and the device identifier; and when the verification is passed, the target terminal sends a device binding request to the oral scanning device, wherein the device binding request includes the terminal identifier of the target terminal, and the terminal identifier is used for one-to-one binding with the target terminal.
[0012] Optionally, the method further includes: the target terminal sending a device information calling instruction to the oral scanning device; the target terminal receiving the device information sent by the oral scanning device, and displaying the device information on an interactive interface.
[0013] Optionally, it also includes: receiving feedback information sent by the oral scanning device, wherein the feedback information includes one of the following: first feedback information, wherein the first feedback information is used to indicate that the oral scanning device determines, according to the mutex lock, that the oral scanning device is not bound to any terminal other than the target terminal, and successfully performs one-to-one binding with the target terminal; second feedback information, wherein the second feedback information is used to indicate that the oral scanning device determines, according to the mutex lock, that the oral scanning device is bound to any terminal other than the target terminal, but is unbound from the other terminals, and successfully performs one-to-one binding with the target terminal; third feedback information, wherein the third feedback information is used to indicate that the oral scanning device determines, according to the mutex lock, that the oral scanning device is bound to any terminal other than the target terminal, and fails to unbind from the other terminals.
[0014] According to another aspect of an embodiment of the present invention, a device binding apparatus is provided, characterized in that it includes: a message broadcasting module, used for an oral scanning device to broadcast a user datagram protocol UDP message, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; a receiving module, used for the oral scanning device to receive a device binding request sent by a target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries the terminal identifier of the target terminal; and a binding module, used for the oral scanning device to perform a one-to-one binding with the target terminal based on the terminal identifier of the target terminal.
[0015] According to another aspect of an embodiment of the present invention, an oral scanning device is also provided, characterized in that it includes: at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, and the at least one processor is capable of executing any of the methods described above.
[0016] In an embodiment of the present invention, a user datagram protocol UDP message is broadcasted by an oral scanning device, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; the oral scanning device receives a device binding request sent by a target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries the terminal identifier of the target terminal; the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identifier of the target terminal, thereby solving the technical problem in the related art of lacking a method for quickly achieving a one-to-one binding between an oral scanning device and a computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0018] Figure 1 is a flow chart of a device binding method according to an embodiment of the present invention;
[0019] Figure 2 is a flow chart of another device binding method according to an embodiment of the present invention;
[0020] Figure 3 is a flow chart of a method for a computer to discover an oral scanning device according to an embodiment of the present invention;
[0021] Figure 4 is a flow chart of a method for binding a computer and an oral scanning device according to an embodiment of the present invention;
[0022] Figure 5 It is a structural block diagram of a device binding apparatus according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0025] According to an embodiment of the present invention, a method embodiment of device binding is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] Figure 1 is a flow chart of a device binding method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0027] Step S102: the oral scanning device broadcasts a User Datagram Protocol (UDP) message, wherein the UDP message carries firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device.
[0028] In some optional embodiments, there are multiple types of device identifiers for identifying the oral scanning device, for example, it may be a serial number of the device, or it may be other device identifiers that can uniquely identify the oral scanning device.
[0029] Step S104, the oral scanning device receives a device binding request sent by the target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identification, and the device binding request carries the terminal identification of the target terminal.
[0030] Step S106: The oral scanning device is bound one-to-one with the target terminal based on the terminal identification of the target terminal.
[0031] In this optional embodiment, by authenticating the firmware version information, it can be determined whether the scanning software versions of the oral scanning device and the target terminal are compatible. If not, the scanning software version can be upgraded or downgraded to make the firmware version of the oral scanning device and the scanning software version compatible, thereby ensuring the successful control of the oral scanning device by the target terminal.
[0032] In this optional embodiment, by authenticating the device identification, it can be determined that the oral scanning device is a device that the target terminal has control authority over, thereby ensuring successful control of the oral scanning device by the target terminal.
[0033] In some optional embodiments, the target terminal may be of multiple types, for example, a computer equipped with oral scanning device control software, or a tablet computer equipped with oral scanning device control software, etc. There may also be multiple terminal identifiers for one-to-one binding with the oral scanning device, for example, the IP address information of the terminal device.
[0034] Through the above optional embodiments, the oral scanning device sends a message to the target terminal in the same local area network as the target terminal by broadcasting a message, and after receiving the device binding request sent by the target terminal, the device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal. The oral scanning device does not need to set up Bluetooth, and connects to the target terminal through the Bluetooth connection method. The method is simple and the binding speed is fast, which improves the user experience. In addition, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal, avoiding the problem of poor real-time control of the oral scanning device caused by binding multiple computers to the same oral scanning device. That is, it solves the technical problem of the lack of a method for quickly achieving one-to-one binding between the oral scanning device and the computer in the related art.
[0035] As an optional implementation, the method further includes: receiving a device information calling instruction sent by a target terminal; and sending device information of an oral scanning device to the target terminal according to the device information calling instruction.
[0036] After sending the device information of the oral scanning device to the target terminal, the target terminal can parse the detailed information in the device information and display the detailed information on the interactive interface, so that the user can perform corresponding operations according to the detailed information on the interactive interface, which can improve the user experience.
[0037] In an optional embodiment, multiple terminal devices in the same local area network can simultaneously receive messages broadcast by multiple oral scanning devices, and based on the IP addresses therein, use the TCP protocol to call the interface of the detailed device information of multiple oral scanning devices that have been verified. If the call is successful and the detailed information therein is parsed, the corresponding oral scanning device is an oral scanning device that meets the requirements, and the terminal device displays the detailed information of the oral scanning device that meets the requirements in the software list of the terminal device. The same terminal device may obtain and display the detailed information of multiple oral scanning devices, and the detailed information of the same oral scanning device may be displayed on multiple terminal devices at the same time. Therefore, the user can flexibly select the target oral scanning device on the terminal device, bind the target oral scanning device, and perform corresponding control operations on the successfully bound oral scanning device.
[0038] As an optional implementation, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal, including: the oral scanning device determines whether the oral scanning device is bound to other terminals except the target terminal based on a mutex lock; when the oral scanning device is not bound to other terminals except the target terminal, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal.
[0039] In this optional embodiment, a mutex lock is provided in the oral scanning device. The mutex lock is a field for realizing exclusive binding. When the field is empty, the mutex lock is in an idle state, indicating that the oral scanning device is not bound to other terminal devices; when the field is bound to a terminal identifier, the mutex lock is in a busy state, indicating that the oral scanning device is bound to the corresponding terminal device. In one embodiment, the terminal identifier of the terminal device is the IP address of the terminal device, and the IP address information written in the mutex lock can be used to determine which terminal device the oral scanning device is bound to. Based on the mutex lock and the terminal identifier of the target terminal, a one-to-one binding between the oral scanning device and the target terminal is realized, and the binding method is simple and the processing efficiency is high.
[0040] As an optional implementation, the method further includes: when the oral scanning device is bound to other terminals except the target terminal, sending an unbinding request instruction to the other terminals; receiving a feedback instruction sent by the other terminals; when the feedback instruction is to agree to unbind, deleting the other terminal identifiers of the other terminals in the mutex lock, and writing the terminal identifier of the target terminal into the mutex lock. In this way, the binding switching of the oral scanning device between different terminal devices is realized, which solves the problem of inconvenient operation and poor user experience when the oral scanning device is bound and switched between different terminal devices in the related art.
[0041] As an optional implementation, it also includes: when the feedback instruction is not to agree to unbind, sending feedback information of not agreeing to bind to the target terminal. After receiving the feedback information, the target terminal can display the feedback information on the interactive interface to prompt the user to perform corresponding operations, thereby improving the user experience.
[0042] Figure 2 is a flow chart of another device binding method according to an embodiment of the present invention. Figure 2 As shown, the method may include the following steps:
[0043] Step S202, the target terminal receives a UDP message broadcast by the oral scanning device, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device;
[0044] Step S204, the target terminal verifies the oral scanning device according to the firmware version information and the device identification;
[0045] Step S206: When the target terminal passes the verification, it sends a device binding request to the oral scanning device, wherein the device binding request includes the terminal identifier of the target terminal, and the terminal identifier is used for one-to-one binding with the target terminal.
[0046] In this optional embodiment, the target terminal receives the message broadcast by the oral scanning device, and after verifying the oral scanning device according to the message, sends a device binding request to the oral scanning device, and performs a one-to-one binding with the oral scanning device based on the terminal identification of the target terminal. The oral scanning device does not need to set up Bluetooth, and connects to the target terminal through the Bluetooth connection method. The method is simple and the binding speed is fast, which improves the user experience. In addition, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal, avoiding the problem of poor real-time control of the oral scanning device caused by binding multiple computers to the same oral scanning device. That is, it solves the technical problem of the lack of a method for quickly achieving one-to-one binding between an oral scanning device and a computer in the related art.
[0047] As an optional implementation, the invention further includes: the target terminal sends a device information call instruction to the oral scanning device; the target terminal receives the device information sent by the oral scanning device, and displays the device information on the interactive interface. Thus, the user can perform corresponding operations according to the device information on the interactive interface, which can improve the user experience.
[0048] As an optional implementation, it also includes: receiving feedback information sent by the oral scanning device, wherein the feedback information includes one of the following: first feedback information, wherein the first feedback information is used to indicate that the oral scanning device determines that the oral scanning device is not bound to other terminals except the target terminal according to the mutual exclusion lock, and the one-to-one binding with the target terminal is successful; second feedback information, wherein the second feedback information is used to indicate that the oral scanning device determines that the oral scanning device is bound to other terminals except the target terminal according to the mutual exclusion lock, but is unbound from other terminals, and the one-to-one binding with the target terminal is successful; third feedback information, wherein the third feedback information is used to indicate that the oral scanning device determines that the oral scanning device is bound to other terminals except the target terminal according to the mutual exclusion lock, and fails to unbind from other terminals. Receiving feedback information sent by the oral scanning device can enable the user to intuitively obtain the binding result information of the oral scanning, so that the user can perform subsequent operations according to the binding result information, thereby improving the user experience.
[0049] Based on the above embodiments and optional embodiments, an optional implementation is provided, which is described in detail below.
[0050] In this optional implementation, the target terminal is a computer as an example for description. It should be noted that the target terminal may also be other terminal devices, such as a mobile phone, a tablet computer, and the like.
[0051] In view of this, in an embodiment of the present disclosure, a device binding method is provided.
[0052] In this optional implementation manner, the target terminal is a computer, and the terminal identifier is an IP address of the computer.
[0053] In the related art, the methods for binding devices and computers mainly include the following two methods. One is a binding method similar to a Bluetooth mouse. Specifically, to connect a Bluetooth mouse to a computer, first, the Bluetooth mouse must be put into pairing mode, and pairing is achieved by long pressing the pairing button on the Bluetooth mouse. Then, the Bluetooth management of the computer is entered, and the Bluetooth mouse is selected for connection. After the connection is successful, the Bluetooth mouse can be used on this computer. This connection method has the following disadvantages: when other computers want to connect to the Bluetooth mouse, the aforementioned connection process needs to be repeated, and two different computers cannot quickly switch the connection with the Bluetooth mouse, that is, the connection must be reproduced after changing the computer. The other is a binding method similar to a network printer. Specifically, the computer searches for a network printer in the local area network by sniffing, and after searching, tries to connect the network printer using the standard printing protocol. If the standard protocol is not supported, the printer driver needs to be installed first. This method has the following disadvantages: the network printer is shared by multiple computers, and the real-time performance is not good. That is, in the related art, there is a technical problem that the method for quickly realizing one-to-one binding between the oral scanning device and the computer cannot be realized.
[0054] In response to the above-mentioned problems in the related art, this optional implementation method broadcasts a User Datagram Protocol (UDP) message through an oral scanning device, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; the oral scanning device receives a device binding request sent by a target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries the terminal identifier of the target terminal; the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identifier of the target terminal. This solves the technical problem in the related art that there is no method for quickly achieving one-to-one binding between an oral scanning device and a computer.
[0055] It should be noted that, in this optional embodiment, the states of the oral scanning device include the following three: Offline state. At this time, the device is not connected to the same WiFi network as the computer. Online non-scanning state. At this time, the device has been connected to the same WiFi network as the computer, but is in standby mode and has no ongoing scanning tasks. Scanning state. At this time, the device is already performing a scanning task under the control of a certain scanning software.
[0056] The computer controls the oral scanning device through the scanning software. The scanning software has a device list, which can display four states of the oral scanning device: the first is the offline state, which means that the oral scanning device has been connected to the current WiFi network, but is not in the current network at this time. The second is the online non-scanning state. In this state, the oral scanning device has been connected to the same WiFi network as the computer, but is in standby mode and has no ongoing scanning tasks. In this state, it can be connected to the current scanning software to perform scanning tasks. The third is the scanning state driven by other scanning software. This device is performing scanning tasks under the control of scanning software on other computers. In this state, it can no longer be connected to the current scanning software for scanning tasks. The scanning state driven by the current scanning software. The fourth is that the oral scanning device is performing scanning tasks under the control of the current software. It cannot be connected to other scanning software on other computers for other scanning tasks.
[0057] The method of binding a scanning device to a computer is mainly divided into two steps: the computer discovers the oral scanning device, determines the oral scanning device to be bound among the discovered oral scanning devices, and binds the oral scanning device.
[0058] Figure 3 1 is a flow chart of a method for a computer to discover an oral scanning device according to an embodiment of the present invention. Figure 3 , the method for a computer to discover an oral scanning device mainly comprises the following steps:
[0059] After the computer-side scanning software is running, a UDP server (User Datagram Protocol) will run to listen to UDP messages with a fixed port number.
[0060] After the oral scanning device is connected to the same WiFi as the computer, it broadcasts a UDP message to the local area network, including: the IP address of the device under the current WiFi, the device serial number and the device firmware version.
[0061] When the scanning software receives the UDP message, the scanning software parses the information in the message and determines whether the device serial number is valid and whether the firmware version can be supported by connecting to the cloud platform. Among them, the method for determining whether the device serial number is valid includes the following steps: the cloud platform's database pre-stores device serial numbers with control permissions. After the scanning software parses the device serial number, it will compare the parsed device serial number with the pre-stored serial number in the database. When the comparison passes, it means that the device serial number is a valid device serial number, otherwise it is an invalid device serial number. Among them, judging whether the firmware version can be supported specifically includes the following steps: comparing the scanning software version and the firmware version of the oral scanning device. If the two are incompatible, the firmware version or the scanning software version is adjusted to make the scanning software and the firmware version of the oral scanning device compatible, thereby ensuring that the scanning software can control the oral scanning device.
[0062] If the verification is successful, the scanning software in the computer connects to the device through the IP address in the TCP protocol and calls the interface of the device to obtain detailed device information. If the call is successful and the detailed information results are parsed, the device is an oral scanning device that meets the requirements, and the parsed detailed information results are displayed in the list of scannable devices in the scanning software.
[0063] In one embodiment, a display screen or a touch screen is added to the oral scanning device, and the scanning software on all the found computers is listed, and then the scanning software of the current computer is selected on the device to connect to perform the scanning task. Although this method requires the addition of corresponding hardware in the oral scanning device, which will affect the size of the oral scanning device, it can enable the user to intuitively obtain the computer information that captures the oral scanning device message.
[0064] Since a device can only connect to the scanning software on one computer for scanning at the same time, it is necessary to manage the correspondence between the scanning software and the current scanning device. The key technology is that each device (scanner) has a mutex on its firmware to control the current state. It should be understood that there are three states of mutexes: idle, busy, and offline (wifi is not connected). The mutex can be understood as a field. When the field is empty, the lock is in an idle state; when the field is bound to an IP address, the lock is in a busy state. The IP address of the field can be used to determine which computer the oral scanning device is connected to.
[0065] Further explanation of the state of the mutex lock: when the mutex lock is in the idle state, it means that the device has been connected to WiFi, but has not been driven by any scanning software to perform scanning tasks; when the mutex lock is in the busy state, it means that the device has been controlled by scanning software on a computer and is performing scanning tasks.
[0066] Among them, one or more indicator lights are provided on the oral scanning device, and the state of the mutex lock in the oral scanning device can be indicated by whether the indicator light is on or off. For example, when the mutex lock is in an idle state, the indicator light is on, and when the mutex lock is in a busy state, the indicator light is off. The state of the mutex lock in the oral scanning device can also be indicated by the color of the indicator light. For example, three indicator lights of red, yellow and green are provided on the oral scanning device. When the mutex lock is in an idle state, the green light is on, when the mutex lock is in a busy state, the yellow light is on, and when the mutex lock is offline, the red light is on. It should be understood that the correspondence between the indicator light being on or off, and the different colors of the indicator light and the state of the mutex lock is not limited to the aforementioned ones, but also includes other corresponding methods. In addition, the user can also be informed of the state of the mutex lock by voice broadcast or other methods.
[0067] Figure 4 is a flow chart of a method for binding a computer and an oral scanning device according to an embodiment of the present invention. Figure 4 , the method comprises the following steps:
[0068] If the device is currently connected to the Internet and is not in a scanning state, the lock is in a configurable state and can be obtained by scanning software on any computer; if a scanning software applies for the lock, the lock will be assigned to the scanning software and the lock status will be set to assigned.
[0069] At this time, if there is another scanning software applying for a lock, an application will be sent to the locked scanning software to ask whether to release the lock; if the user clicks "Agree", the connection between computer A and the oral scanning device will be disconnected, the lock field will become empty, and the IP address of computer B will be written into the mutex lock. If the user clicks "Disagree", the connection between computer A and the oral scanning device will not be disconnected, the mutex lock field will still be occupied by computer A's IP, and the IP address of computer B cannot be written into the mutex lock.
[0070] When the scanning software with the mutex lock refuses to unbind, an error will be returned to the scanning software that applied for binding.
[0071] If the scanning software with the mutex lock agrees, the mutex lock will be released and the ownership of the mutex lock will be transferred to the scanning software that applied for the mutex lock.
[0072] Scanning software with a mutex lock can also actively release the lock, and the mutex lock will be in an idle state. Specifically, when a scan is completed, a prompt box pops up, and the user determines whether to disconnect. If so, the mutex lock field becomes empty, thereby releasing the lock and unbinding the scanning software and the oral scanning device. In addition, the user can click on the device management of the scanning software at any time to change the status of the oral scanning device and disconnect.
[0073] In this optional embodiment, after the wireless oral scanning device is networked, it will be paired and connected with the computer scanning software in the same WiFi network, so that the device can be controlled from the scanning software to scan. In this optional embodiment, the automatic sending of the device is broadcast by the device itself through UDP, without the need for a computer to use the LAN segment, and the speed is faster; the lock of the device can manage the computer currently performing the scanning task, and can ensure that only one computer can perform the scanning task at the same time; the ownership of the lock can be easily transferred between multiple computers through the status of the lock and inquiries, thereby allowing an oral scanning device to quickly switch and easily connect between the scanning software of different computers. That is, in this optional embodiment, the computer scanning software in the LAN automatically discovers the device, and the computer-side scanning software can quickly select which device is the current scanning device, and ensure that the scanning software on different computers can mutually exclusively use the same device for scanning.
[0074] According to an embodiment of the present invention, a device for implementing the above device binding method is also provided. Figure 5 is a structural block diagram of a device binding apparatus according to an embodiment of the present invention, such as Figure 5 As shown, the device binding apparatus includes: a message broadcast module 502, a receiving module 504 and a binding module 506, which are described in detail below.
[0075] A message broadcasting module 502 is used for the oral scanning device to broadcast a user datagram protocol UDP message, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; a receiving module 504 is connected to the message broadcasting module 502 and is used for the oral scanning device to receive a device binding request sent by a target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries the terminal identifier of the target terminal; a binding module 506 is connected to the receiving module 504 and is used for the oral scanning device to perform a one-to-one binding with the target terminal based on the terminal identifier of the target terminal.
[0076] It should be noted here that the above-mentioned message broadcast module 502, receiving module 504 and binding module 506 correspond to the aforementioned steps S102 to S106, and the instances and application scenarios implemented by the three modules and the corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0077] An embodiment of the present invention provides an oral scanning device, comprising: at least one processor, and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, and the at least one processor is capable of executing any of the above methods.
[0078] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the device binding method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned device binding method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0079] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: the oral scanning device broadcasts a user data protocol UDP message, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; the oral scanning device receives a device binding request sent by the target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries the terminal identifier of the target terminal; the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identifier of the target terminal.
[0080] Optionally, the processor may also execute program codes of the following steps: receiving a device information calling instruction sent by a target terminal; and sending device information of an oral scanning device to the target terminal according to the device information calling instruction.
[0081] Optionally, the processor may also execute program code of the following steps: the oral scanning device performs one-to-one binding with the target terminal based on the terminal identification of the target terminal, including: the oral scanning device determines whether the oral scanning device is bound to other terminals except the target terminal based on a mutex lock; when the oral scanning device is not bound to other terminals except the target terminal, the oral scanning device performs one-to-one binding with the target terminal based on the terminal identification of the target terminal.
[0082] Optionally, the processor may also execute the program code of the following steps: when the oral scanning device is bound to other terminals except the target terminal, sending an unbinding request instruction to other terminals; receiving feedback instructions sent by other terminals; and when the feedback instructions agree to unbind, deleting the other terminal identifiers of other terminals in the mutex lock, and writing the terminal identifier of the target terminal into the mutex lock.
[0083] Optionally, the processor may further execute program code of the following steps: when the feedback instruction indicates that the unbinding is not agreed, sending feedback information indicating that the binding is not agreed to to the target terminal.
[0084] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0085] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0086] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0087] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0088] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0089] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0090] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0091] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A device binding method, characterized in that: include: The oral scanning device broadcasts a User Datagram Protocol (UDP) message, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; The oral scanning device receives a device binding request sent by a target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries the terminal identifier of the target terminal; The oral scanning device is bound one-to-one with the target terminal based on the terminal identification of the target terminal; The oral scanning device is bound one-to-one with the target terminal based on the terminal identification of the target terminal, including: The oral scanning device determines whether the oral scanning device is bound to other terminals except the target terminal based on the state of the mutex, wherein the state includes at least one of the following: idle state, busy state, and offline state; In the case that the oral scanning device is not bound to other terminals except the target terminal, the oral scanning device is bound to the target terminal one-to-one based on the terminal identification of the target terminal.
2. The method according to claim 1, characterized in that Also includes: Receiving a device information calling instruction sent by the target terminal; According to the device information calling instruction, the device information of the oral scanning device is sent to the target terminal.
3. The method according to claim 1, characterized in that The method further comprises: In the case where the oral scanning device is bound to other terminals except the target terminal, sending a unbinding request instruction to the other terminals; Receiving a feedback instruction sent by the other terminal; In the case that the feedback instruction is to agree to unbind, the other terminal identifiers of the other terminals in the mutex lock are deleted, and the terminal identifier of the target terminal is written into the mutex lock.
4. The method according to claim 3, characterized in that Also includes: In a case where the feedback instruction indicates that the user does not agree to release the binding, feedback information indicating that the user does not agree to release the binding is sent to the target terminal.
5. A device binding method, characterized in that: include: The target terminal receives a UDP message broadcast by the oral scanning device, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; The target terminal verifies the oral scanning device according to the firmware version information and the device identification; When the target terminal passes the verification, a device binding request is sent to the oral scanning device, wherein the device binding request includes a terminal identifier of the target terminal, and the terminal identifier is used for one-to-one binding with the target terminal; Wherein, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal, including: the oral scanning device determines whether the oral scanning device is bound to other terminals except the target terminal based on the state of the mutex lock, wherein the state includes at least one of the following: idle state, busy state, and offline state; when the oral scanning device is not bound to other terminals except the target terminal, the oral scanning device performs a one-to-one binding with the target terminal based on the terminal identification of the target terminal.
6. The method according to claim 5, characterized in that Also includes: The target terminal sends a device information calling instruction to the oral scanning device; The target terminal receives the device information sent by the oral scanning device, and displays the device information on an interactive interface.
7. The method according to claim 6, characterized in that Also includes: Receive feedback information sent by the oral scanning device, wherein the feedback information includes one of the following: First feedback information, wherein the first feedback information is used to indicate that the oral scanning device determines, according to the mutex lock, that the oral scanning device is not bound to any terminal other than the target terminal, and successfully performs one-to-one binding with the target terminal; Second feedback information, wherein the second feedback information is used to indicate that the oral scanning device determines, according to the mutex lock, that the oral scanning device has been bound to other terminals except the target terminal, but is unbound from the other terminals, and is successfully bound one-to-one with the target terminal; The third feedback information is used to indicate that the oral scanning device determines, according to the mutex lock, that the oral scanning device is bound to other terminals except the target terminal, and fails to unbind from the other terminals.
8. A device binding apparatus, characterized in that: include: A message broadcasting module, used for the oral scanning device to broadcast a User Datagram Protocol (UDP) message, wherein the UDP message carries the firmware version information of the oral scanning device and a device identifier for identifying the oral scanning device; A receiving module, configured for the oral scanning device to receive a device binding request sent by a target terminal, wherein the device binding request is sent by the target terminal after verifying the oral scanning device based on the firmware version information and the device identifier, and the device binding request carries the terminal identifier of the target terminal; A binding module, used for the oral scanning device to perform one-to-one binding with the target terminal based on the terminal identification of the target terminal; Wherein, the binding module is also used for the oral scanning device to determine whether the oral scanning device is bound to other terminals except the target terminal based on the state of the mutex lock, wherein the state includes at least one of the following: idle state, busy state, and offline state; when the oral scanning device is not bound to other terminals except the target terminal, the oral scanning device is bound one-to-one with the target terminal based on the terminal identification of the target terminal.
9. An oral scanning device, characterized in that: include: at least one processor, and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, and the at least one processor is capable of performing the method according to any one of claims 1 to 4.
