Platform switching method and device

By acquiring and reading the networking parameters of the target platform, the smart lock can efficiently switch the platform, solving the problems of complex operation and low efficiency in the prior art.

CN119847594APending Publication Date: 2025-04-18HANGZHOU HUACHENG NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411887348.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-19
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Smart locks operate in a complex and inefficient manner when switching platforms, and the existing technology lacks effective solutions.

Method used

By obtaining the target platform switching instructions, reading the target platform's networking parameters, and connecting the target platform based on these parameters to achieve platform switching.

Benefits of technology

The operation process of smart lock platform switching is simplified, the switching efficiency is improved, and the problems of complex operation and low efficiency are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847594A_ABST
    Figure CN119847594A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a platform switching method and device, and the method comprises the steps: obtaining a target platform switching instruction which is used for indicating the switching from a currently connected first platform to a target platform; in response to the target platform switching instruction, reading a target networking parameter of the target platform; and connecting the target platform through the target networking parameter. The problems that an intelligent lock switching platform is complex in operation and low in efficiency in the prior art are solved, and then the effect of improving the intelligent lock switching efficiency is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of intelligent devices, and in particular, to a method and device for switching platforms. Background Art

[0002] Smart lock networking is becoming more and more common. During the debugging and development process, it is often necessary to switch between the test platform and the official platform, or to access and switch between multiple different manufacturers' platforms. In the past, a set of programs was developed on one platform, and then the platform was connected. After switching to a different platform, the program needed to be redeveloped or written for switching, which resulted in complex operations and low efficiency.

[0003] There is currently no effective solution to the above problems. Summary of the invention

[0004] The embodiments of the present invention provide a method and device for switching platforms, so as to at least solve the problem of complex operation and low efficiency of switching platforms of smart locks in the related art.

[0005] According to one embodiment of the present invention, a method for switching platforms is provided, comprising: obtaining a target platform switching instruction, wherein the target platform switching instruction is used to instruct switching from a currently connected first platform to the target platform; in response to the target platform switching instruction, reading target networking parameters of the target platform; and connecting to the target platform through the target networking parameters.

[0006] In an exemplary embodiment, obtaining the target platform switching instruction includes: obtaining the target platform switching instruction on the smart lock; or obtaining the target platform switching instruction through a serial port; or obtaining the target platform switching instruction through a universal serial bus.

[0007] In an exemplary embodiment, obtaining the target platform switching instruction on the smart lock includes: obtaining a target key command code input on the smart lock, wherein the target platform switching instruction includes the target key command code, the smart lock supports connection to multiple platforms, different platforms correspond to different key command codes, the target key command code is the key command code of the target platform, and the multiple platforms include the first platform and the target platform.

[0008] In an exemplary embodiment, in response to a swiping operation of a target card on the smart lock, the target platform switching instruction is obtained, wherein the target card carries the target platform switching instruction, the smart lock supports connection to multiple platforms, different platforms correspond to different cards, the target card is the card corresponding to the target platform, and the multiple platforms include the first platform and the target platform.

[0009] In an exemplary embodiment, reading the target networking parameters of the target platform includes: reading the target networking parameters in the memory of the smart lock, wherein the memory stores the networking parameters of various platforms supported by the smart lock; and setting the target networking parameters as default networking parameters.

[0010] In an exemplary embodiment, connecting the target platform through the target networking parameters includes: obtaining an identity of the target platform from the target networking parameters; and connecting the target platform through the wireless module of the smart lock based on the identity.

[0011] According to another embodiment of the present invention, a device for switching platforms is provided, including: an acquisition module, used to acquire a target platform switching instruction, wherein the target platform switching instruction is used to instruct switching from a currently connected first platform to the target platform; a response module, used to read target networking parameters of the target platform in response to the target platform switching instruction; and a connection module, used to connect to the target platform through the target networking parameters.

[0012] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of any of the above methods when executed by a processor.

[0013] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0014] According to yet another embodiment of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0015] According to yet another embodiment of the present invention, a computer program product is provided, comprising computer instructions, wherein when the computer instructions are executed by a processor, the steps of any of the above methods are implemented.

[0016] Through the present invention, by obtaining the target platform switching instruction, the target platform switching instruction is used to instruct to switch from the currently connected first platform to the target platform; in response to the target platform switching instruction, the target networking parameters of the target platform are read; and the target platform is connected through the target networking parameters. Therefore, the problem of complex operation and low efficiency of smart lock switching platforms in the related art can be solved, and the efficiency of smart lock switching platforms can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for switching platforms according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart of a method for switching platforms according to an embodiment of the present invention;

[0019] Figure 3 is a flow chart of network distribution according to an embodiment of the present invention;

[0020] Figure 4 is a schematic diagram of a control unit according to an embodiment of the present invention;

[0021] Figure 5 is a schematic diagram of a wireless communication module according to an embodiment of the present invention;

[0022] Figure 6 is a flow chart of key switching networking platform according to an embodiment of the present invention;

[0023] Figure 7 is a schematic diagram of a connection platform configuration module according to an embodiment of the present invention;

[0024] Figure 8 4 is a structural block diagram of an apparatus for switching platforms according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0026] 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.

[0027] The platform switching method provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for switching platforms according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0028] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for switching platforms in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 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 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile 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.

[0029] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0030] In this embodiment, a method running on the above mobile terminal or network architecture is provided. Figure 2 is a flow chart of a method for switching platforms according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0031] Step S202, obtaining a target platform switching instruction, wherein the target platform switching instruction is used to instruct switching from the currently connected first platform to the target platform;

[0032] The above-mentioned target platform switching instruction can be obtained through three methods, namely, smart lock, serial port, USB, etc. The above-mentioned first platform is the platform currently connected to the smart lock, and the above-mentioned target platform is the platform to which the smart lock is to switch.

[0033] Specifically, obtaining the target platform switching instruction includes: obtaining the target platform switching instruction on the smart lock; or obtaining the target platform switching instruction through a serial port; or obtaining the target platform switching instruction through a universal serial bus.

[0034] As an optional implementation, the target platform switching instruction is obtained on the smart lock.

[0035] Specifically, a target key command code input on the smart lock is obtained, wherein the target platform switching instruction includes the target key command code, the smart lock supports connection to multiple platforms, different platforms correspond to different key command codes, the target key command code is the key command code of the target platform, and the multiple platforms include the first platform and the target platform.

[0036] For example, the memory in the smart lock pre-stores the configuration parameters of multiple platforms. Different platforms correspond to different key command codes. When the target key command code of the target platform is entered, the smart lock can switch to the target platform according to the configuration parameters. For example, if you enter 12345*02#, you can switch to platform B. If the smart lock supports N platforms, 12345*0N# means switching to the Nth platform.

[0037] Specifically, in response to a card swiping operation on a target card on the smart lock, the target platform switching instruction is obtained, wherein the target card carries the target platform switching instruction, the smart lock supports connection to multiple platforms, different platforms correspond to different cards, the target card is the card corresponding to the target platform, and the multiple platforms include the first platform and the target platform.

[0038] The above-mentioned target card carries the above-mentioned target platform switching instruction. The smart lock can switch to the above-mentioned target platform according to the switching instruction in the target card and the configuration parameters pre-stored in the memory. For example, if you swipe card A before the smart lock is connected to the network, it will connect to platform A after the network is connected. If you swipe card B before the smart lock is connected to the network, it will connect to platform B after the network is connected.

[0039] As an optional implementation, the target platform switching instruction is obtained through a serial port.

[0040] The above serial port is an interface in the smart lock for data communication with other devices. The switching instruction of the above target platform is obtained through the serial port, and the target platform is switched to according to the switching instruction and the configuration parameters in the memory.

[0041] As an optional implementation, the target platform switching instruction is obtained through a universal serial bus.

[0042] The universal serial bus is a communication interface for transmitting data. It transmits data bits in sequence, one bit after another, to achieve data transmission. The serial bus can connect multiple smart lock devices to achieve data transmission and communication between devices. The target platform switching instruction is obtained through the serial bus, and the target platform is switched according to the switching instruction and the configuration parameters in the memory.

[0043] Step S204, in response to the target platform switching instruction, reading the target networking parameters of the target platform;

[0044] Specifically, the target networking parameters are read in the memory of the smart lock, wherein the memory stores the networking parameters of various platforms supported by the smart lock; and the target networking parameters are set as default networking parameters.

[0045] Set the above target networking parameters as default networking parameters, and trigger the platform connection action when the smart lock is connected to the network. For example, suppose the default network parameters of the smart lock are configured to connect to platform A. When switching, enter a special key command code in the smart lock, such as 12345*02#, to modify the default network parameters of the smart lock to connect to platform B. If the network is directly configured without performing the platform switching operation before network configuration, the smart lock will connect to platform A by default. Conversely, if the platform switching operation 12345*02# is performed before network configuration, the smart lock will connect to platform B after the platform switching during network configuration.

[0046] Step S206, connecting to the target platform through the target networking parameters.

[0047] Specifically, the identity of the target platform is obtained from the target networking parameters; and the target platform is connected through the wireless module of the smart lock based on the identity.

[0048] The above target networking parameters are custom data, and the format can be the cloud platform manufacturer number. For example, if the stored parameter is "ICC" (identity identifier of the target platform), after the network configuration is enabled, the wireless module connects to the ICC platform (target platform); if the stored parameter is "LC" (identity identifier of the target platform), after the network configuration is enabled, the wireless module connects to the LC platform (target platform); if the stored parameter is "XX", after the network configuration is enabled, the wireless module connects to the XX platform, etc.

[0049] Figure 3 is a flow chart of network distribution according to an embodiment of the present invention, such as Figure 3 As shown, the process includes the following steps:

[0050] S301, the controller reads the networking platform configuration;

[0051] Figure 4 is a schematic diagram of a control unit according to an embodiment of the present invention, such as Figure 4 As shown, the control unit is responsible for reading and writing networking configuration parameters, and provides parameter configuration methods, such as inputting specific command codes by keystroke, swiping a card, or using a serial port, USB, etc. to perform platform switching parameter configuration.

[0052] S302, wireless module;

[0053] Figure 5is a schematic diagram of a wireless communication module according to an embodiment of the present invention. Figure 5 As shown, during network configuration, the controller sends the configuration parameters required for connection to the wireless communication module. The module determines the platform to be connected based on the received configuration parameters and connects to the corresponding platform based on the preset platform networking parameters.

[0054] S303, connecting to a designated platform.

[0055] The platform to be connected has been specified before network configuration, and network configuration only triggers the platform connection action. That is, before network configuration, the smart lock has obtained the above target switching instructions and target switching platforms through buttons, card swiping, serial port, and Universal Serial Bus (USB), and the platform connection action is triggered after network configuration.

[0056] Figure 6 is a flow chart of key switching networking platform according to an embodiment of the present invention, such as Figure 6 As shown, the process includes the following steps:

[0057] S601, input a platform switching key command;

[0058] S602, controller processing;

[0059] S603, the memory writes the networking platform configuration;

[0060] Figure 7 is a schematic diagram of a connection platform configuration module according to an embodiment of the present invention, such as Figure 7 As shown, the above-mentioned memory stores the connection platform configuration parameters, updates the networking platform configuration when the main control is configured, and reads the configuration and sends it to the wireless communication module when the network configuration is actively turned on.

[0061] S604, platform switching ends.

[0062] For example, suppose the default network parameter configuration saved by the smart lock is: connect to platform A. When switching, enter a special key command code in the smart lock, such as 12345*02#, to modify the default network parameter configuration saved by the smart lock to connect to platform B. If the platform switching operation is not performed before network configuration, the smart lock will connect to platform A by default. On the contrary, if the platform switching operation 12345*02# is performed before network configuration, the smart lock will connect to platform B after the platform switching during network configuration. If the smart lock supports N platforms, you can switch to the Nth platform before network configuration through the switching command, such as 12345*0N# (note that the device only supports connecting to one configured platform after network configuration), and then connect to the corresponding platform after network configuration.

[0063] Optionally, the executor of the above steps may be a background processor, or other devices with similar processing capabilities, or a machine that integrates at least an image acquisition device and a data processing device, wherein the image acquisition device may include a graphics acquisition module such as a camera, and the data processing device may include a computer, a mobile phone or other terminal, but is not limited thereto.

[0064] Through the above steps, the problems of complex operation and low efficiency of the smart lock switching platform in the related technology are solved, and the switching efficiency of the smart lock is improved.

[0065] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0066] In this embodiment, a device for switching platforms is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0067] Figure 8 is a structural block diagram of an apparatus for switching platforms according to an embodiment of the present invention, such as Figure 8 As shown, the device includes an acquisition module 802, which is used to obtain a target platform switching instruction, and the target platform switching instruction is used to instruct switching from a currently connected first platform to the target platform; a response module 804, which is used to read the target networking parameters of the target platform in response to the target platform switching instruction; and a connection module 806, which is used to connect to the target platform through the target networking parameters.

[0068] In an exemplary embodiment, the above-mentioned device is also used to obtain the target platform switching instruction on the smart lock; or, obtain the target platform switching instruction through a serial port; or, obtain the target platform switching instruction through a universal serial bus.

[0069] In an exemplary embodiment, the above-mentioned device is also used to obtain a target key command code input on the smart lock, wherein the target platform switching instruction includes the target key command code, the smart lock supports connection to multiple platforms, different platforms correspond to different key command codes, the target key command code is the key command code of the target platform, and the multiple platforms include the first platform and the target platform.

[0070] In an exemplary embodiment, the above-mentioned device is also used to obtain the target platform switching instruction in response to a card swiping operation on the target card on the smart lock, wherein the target platform switching instruction is carried in the target card, and the smart lock supports connection to multiple platforms, different platforms correspond to different cards, and the target card is the card corresponding to the target platform, and the multiple platforms include the first platform and the target platform.

[0071] In an exemplary embodiment, the above-mentioned device is also used to read the target networking parameters in the memory of the smart lock, wherein the memory stores the networking parameters of each platform supported by the smart lock; and set the target networking parameters as default networking parameters.

[0072] In an exemplary embodiment, the above-mentioned device is also used to obtain the identity of the target platform from the target networking parameters; and connect to the target platform through the wireless module of the smart lock based on the identity.

[0073] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0074] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above methods are implemented.

[0075] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0076] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0077] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0078] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0079] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.

[0080] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0081] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for switching platforms, characterized in that: Applied to smart locks, including: Obtaining a target platform switching instruction, where the target platform switching instruction is used to instruct switching from a currently connected first platform to the target platform; In response to the target platform switching instruction, reading a target networking parameter of the target platform; The target platform is connected via the target networking parameters.

2. The method according to claim 1, characterized in that Obtaining target platform switching instructions includes: Obtaining the target platform switching instruction on the smart lock; or, Obtain the target platform switching instruction through the serial port; or, The target platform switching instruction is obtained through a universal serial bus.

3. The method according to claim 2, characterized in that Obtaining the target platform switching instruction on the smart lock includes: Obtain a target key command code input on the smart lock, wherein the target platform switching instruction includes the target key command code, the smart lock supports connection to multiple platforms, different platforms correspond to different key command codes, the target key command code is the key command code of the target platform, and the multiple platforms include the first platform and the target platform.

4. The method according to claim 2, characterized in that: In response to a card swiping operation on a target card on the smart lock, the target platform switching instruction is obtained, wherein the target card carries the target platform switching instruction, the smart lock supports connecting to multiple platforms, different platforms correspond to different cards, the target card is the card corresponding to the target platform, and the multiple platforms include the first platform and the target platform.

5. The method according to claim 1, characterized in that Read the target networking parameters of the target platform, including: Reading the target networking parameters in the memory of the smart lock, wherein the memory stores the networking parameters of various platforms supported by the smart lock; The target networking parameters are set as default networking parameters.

6. The method according to claim 1, characterized in that Connecting the target platform through the target networking parameters includes: Acquire the identity of the target platform from the target networking parameters; The target platform is connected via the wireless module of the smart lock based on the identity identification.

7. A device for switching platforms, characterized in that: include: An acquisition module, used for acquiring a target platform switching instruction, wherein the target platform switching instruction is used for instructing to switch from a currently connected first platform to the target platform; A response module, configured to read a target networking parameter of a target platform in response to the target platform switching instruction; A connection module is used to connect to the target platform through the target networking parameters.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 6 when executed by a processor.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.

10. A computer program product comprising computer instructions, characterized in that When the computer instructions are executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.