CN116600279A - Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony - Google Patents

Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony Download PDF

Info

Publication number
CN116600279A
CN116600279A CN202310693917.3A CN202310693917A CN116600279A CN 116600279 A CN116600279 A CN 116600279A CN 202310693917 A CN202310693917 A CN 202310693917A CN 116600279 A CN116600279 A CN 116600279A
Authority
CN
China
Prior art keywords
information
module
bluetooth module
operating system
cloud server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310693917.3A
Other languages
Chinese (zh)
Inventor
陈诚
章伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honghu Wanlian Jiangsu Technology Development Co ltd
Original Assignee
Honghu Wanlian Jiangsu Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honghu Wanlian Jiangsu Technology Development Co ltd filed Critical Honghu Wanlian Jiangsu Technology Development Co ltd
Priority to CN202310693917.3A priority Critical patent/CN116600279A/en
Publication of CN116600279A publication Critical patent/CN116600279A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses an operating system authorization method, device, equipment and medium of a Bluetooth module. The method is executed by a Bluetooth module and comprises the following steps: in the power-on process of executing the Bluetooth module, locally stored module information is acquired; when the built-in operating system is determined to be an unauthorized operating system according to the module information, carrying out at least one information interaction with a cloud server request through a data forwarding platform to obtain system authorization information, and taking the system authorization information which passes the security check as a module information to carry out local storage; executing the restarting process of the Bluetooth module, and after the restarting process is completed, re-executing the operation of acquiring the locally stored module information so as to execute the business processing operation through the authorized operating system. By the technical scheme, the authorization of the Bluetooth module operating system under the offline condition can be realized.

Description

Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony
Technical Field
The present invention relates to the field of system authorization, and in particular, to a method, an apparatus, a device, and a medium for authorizing an operating system of a bluetooth module.
Background
The Bluetooth module is a general term of hardware and software for implementing the existing Bluetooth technology, which is a global standard for wireless data and voice communication, and is a special short-distance wireless technology connection for establishing a communication environment for fixed and mobile equipment based on a short-distance wireless connection with low cost.
In the prior art, since the bluetooth module is a module capable of performing near field communication through a bluetooth protocol, it cannot be directly connected to the internet, so that there is a great difficulty in authorization of an operating system.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for authorizing an operating system of a Bluetooth module, which can solve the problem that the Bluetooth module cannot be directly connected with the Internet to cause difficulty in authorizing the operating system.
In a first aspect, the present invention provides a method for authorizing an operating system of a bluetooth module, which is executed by the bluetooth module, the method comprising:
in the power-on process of executing the Bluetooth module, locally stored module information is acquired;
when the built-in operating system is determined to be an unauthorized operating system according to the module information, carrying out at least one information interaction with a cloud server request through a data forwarding platform to obtain system authorization information, and taking the system authorization information which passes the security check as a module information to carry out local storage;
executing the restarting process of the Bluetooth module, and after the restarting process is completed, re-executing the operation of acquiring the locally stored module information so as to execute the business processing operation through the authorized operating system.
In a second aspect, the present invention provides an operating system authorization device for a bluetooth module, which is executed by the bluetooth module, the device comprising:
the module information acquisition module is used for acquiring locally stored module information in the power-on process of executing the Bluetooth module;
and a local storage module. When the built-in operating system is determined to be an unauthorized operating system according to the module information, carrying out at least one information interaction with a cloud server request through a data forwarding platform to obtain system authorization information, and taking the system authorization information which passes the security verification as a module information to carry out local storage;
and the module restarting module is used for executing the Bluetooth module restarting flow, and after restarting, executing the operation of acquiring the locally stored module information again so as to execute the business processing operation through the authorized operating system.
In a third aspect, the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the operating system authorization method of the bluetooth module according to any of the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer readable storage medium, where computer instructions are stored, where the computer instructions are configured to cause a processor to implement the operating system authorization method of the bluetooth module according to any of the embodiments of the present invention when executed.
According to the technical scheme, the locally stored module information is acquired in the power-on process of the Bluetooth module, then when the built-in operating system is determined to be an unauthorized operating system according to the module information, at least one information interaction is carried out between the data forwarding platform and the cloud server to obtain system authorization information, the system authorization information which passes through security verification is used as one piece of module information to be locally stored, finally, a Bluetooth module restarting process is executed, and after restarting is completed, the operation of acquiring the locally stored module information is executed again, so that the problem that the operating system is difficult to authorize due to the fact that the Bluetooth module cannot be directly connected with the Internet is solved, and the authorization of the operating system under the offline condition of the Bluetooth module is realized.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of an operating system authorization method of a bluetooth module according to a first embodiment of the present invention;
fig. 2 is a flowchart of an operating system authorization method of a bluetooth module according to a second embodiment of the invention;
fig. 3 is a schematic structural diagram of an operating system authorization device of a bluetooth module according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing an operating system authorization method of a bluetooth module according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of an operating system authorization method for a bluetooth module according to an embodiment of the present invention, where the method may be performed by an operating system authorization device of the bluetooth module, the operating system authorization device of the bluetooth module may be implemented in hardware and/or software, and the operating system authorization device of the bluetooth module may be configured in a bluetooth module based on a hong system. As shown in fig. 1, the method includes:
s110, in the power-on process of executing the Bluetooth module, locally stored module information is acquired.
The Bluetooth module is a general term of hardware and software for implementing the existing Bluetooth technology, the Bluetooth technology is a global standard for wireless data and voice communication, and is a special short-distance wireless technology connection for establishing a communication environment for fixed and mobile equipment based on short-distance wireless connection with low cost.
The power-on process is the power-on process of the Bluetooth module.
Further, the module information includes basic information such as a firmware version, hardware information, a communication address, and the like of the bluetooth module.
And S120, when the built-in operating system is determined to be an unauthorized operating system according to the module information, carrying out at least one information interaction with the cloud server through the data forwarding platform to obtain system authorization information, and taking the system authorization information passing the security verification as a module information to carry out local storage.
The method for determining the built-in operating system as the unauthorized operating system according to the module information specifically comprises the following steps: the Bluetooth module detects that the locally stored module information does not contain the system authorization information; further, the system authorization information may be used to write into the running system of the current bluetooth module to authorize the system, so that the operating system may normally execute the service processing operation.
Specifically, the system authorization information passing through the security check is used as a module information to be stored locally, which comprises the following steps: verifying whether the system authorization information is legal information or not based on a preset verification rule; if yes, the system authorization information is used as a piece of module information to be stored locally; if not, deleting the system authorization information, and returning to execute the operation of acquiring the locally stored module information so as to request the system authorization information to the cloud server again.
Specifically, verifying whether the system authorization information is legal information based on a preset verification rule includes:
in this embodiment, the system authorization information is encrypted by adopting an AES128 encryption algorithm CBC encryption manner, and because the system authorization information is generated based on module information of the bluetooth module, the decryption information of the system authorization information includes module information matched with the current bluetooth module, such as a random number, device version information, and the like; if the information contained in the decryption information is matched with the current Bluetooth module, judging that the current system authorization information is legal information, and taking the current system authorization information as a piece of module information to be stored locally, otherwise, deleting the system authorization information, and returning to execute the operation of acquiring the locally stored module information so as to request the system authorization information to the cloud server again.
In this embodiment, the encryption mode of encrypting the system authorization information by adopting the encryption mode of the AES128 encryption algorithm CBC realizes the encryption of the system authorization information, ensures the uniqueness and security of the system authorization information, and protects the module security of the bluetooth module of the user.
The data transmission mode between the Bluetooth module and the data forwarding platform is Bluetooth transmission; the data transmission mode between the data forwarding platform and the cloud server is network transmission.
In the prior art, since the bluetooth module is a module capable of performing near field communication through a bluetooth protocol, it cannot be directly connected to the internet, so that the bluetooth module cannot directly complete the operation of authorizing the system through the internet. In this embodiment, the bluetooth module sends data required by system authorization to the data forwarding platform in a bluetooth transmission manner, and the data forwarding platform uploads the data to the cloud end in a network transmission manner; or the data forwarding platform transmits the authorization data to the Bluetooth module in a Bluetooth transmission mode, so that the problem that the Bluetooth module cannot directly complete the operation of authorizing the system through the Internet in the prior art is solved.
The data forwarding platform can be an application program with a Bluetooth-based information receiving and transmitting function and a network connection-based information receiving and transmitting function; the data forwarding platform may be a micro-letter applet installed in a mobile terminal having a bluetooth transceiver function and a network connection function, for example.
S130, executing a Bluetooth module restarting process, and after restarting, re-executing the operation of acquiring locally stored module information so as to execute business processing operation through the authorized operating system.
The restarting process specifically comprises the following steps: performing breakpoint processing on the Bluetooth module, and re-executing power-on operation on the Bluetooth module after all devices forming the Bluetooth module are subjected to breakpoint dormancy; further, after the bluetooth module is restarted, the module information includes system authorization information matched with the current bluetooth module.
In this embodiment, after executing the bluetooth module restart procedure and after executing the operation of obtaining the locally stored module information again after completing the restart, the method further includes:
the method comprises the steps of carrying out preloading work on an operating system to obtain a system to be authorized; extracting system authorization information in the local storage based on the system to be authorized; and authorizing the system to be authorized according to the extracted system authorization information so as to obtain an operating system after authorization.
Wherein the preloading operation includes: the Bluetooth module executes power-on operation, and BootLoader loads an unauthorized system program from a local storage to an operation memory; the BootLoader is a program code which runs before the kernel of the operating system runs, and can initialize hardware equipment and establish a memory space mapping diagram so as to bring the software and hardware environment of the system to a proper state and prepare a correct environment for finally calling the kernel of the operating system; further, after the preloading work is completed, the current Bluetooth module invokes a main function by using an assembly instruction to extract system authorization information in the local storage.
According to the technical scheme, the locally stored module information is acquired in the power-on process of the Bluetooth module, then when the built-in operating system is determined to be an unauthorized operating system according to the module information, at least one information interaction is carried out between the data forwarding platform and the cloud server to obtain system authorization information, the system authorization information which passes through security verification is used as one item of module information to be locally stored, finally, a Bluetooth module restarting process is executed, after restarting is completed, the operation of acquiring the locally stored module information is executed again, so that the operation of business processing is executed through the authorized operating system, and the authorization of the operating system under the offline condition of the Bluetooth module is realized.
Example two
Fig. 2 is a flowchart of an operating system authorization method of a bluetooth module according to a second embodiment of the present invention, where the embodiment is based on the foregoing embodiment, and in this embodiment, specifically, a method for obtaining system authorization information by performing at least one information interaction with a cloud server through a data forwarding platform when it is determined that a built-in operating system is an unauthorized operating system according to module information is refined.
As shown in fig. 2, the method includes:
s210, in the power-on process of executing the Bluetooth module, locally stored module information is acquired.
S220, carrying out at least one information interaction with the cloud server request through the data forwarding platform so as to respectively store at least two same random numbers in the local of the Bluetooth module and the storage module of the cloud server.
Specifically, at least one information interaction is performed through the data forwarding platform and the cloud server request, so as to store at least two identical random numbers in the local of the bluetooth module and the storage module of the cloud server respectively, and the method comprises the following steps: sending an authorization application command to the cloud server through a data forwarding platform and acquiring a first random number based on the authorization application command; the cloud server is used for responding to an authorization application command of the Bluetooth module to generate a first random number, and storing the first random number into a local flash memory while sending the first random number to the Bluetooth module through the data forwarding platform; and generating a second random number in response to the first random number sent by the cloud server, and sending and storing the second random number to the cloud server through the data forwarding platform while locally storing the second random number.
S230, acquiring the equipment description information of the Bluetooth module, executing the information calling instruction of the cloud server, and sending the equipment description information to the cloud server for storage through the data forwarding platform.
And S240, responding to a storage operation instruction sent by the cloud server for the equipment description information, generating response information and sending the response information to the cloud server through the data forwarding platform.
The cloud server is used for responding to the response information and generating system authorization information based on the random number and the equipment description information in the storage module.
S250, receiving the system authorization information fed back by the cloud service through the data forwarding platform and locally storing the system authorization information passing the security check as module information.
S260, executing a Bluetooth module restarting process, and after restarting, re-executing the operation of acquiring locally stored module information so as to execute business processing operation through the authorized operating system.
According to the technical scheme, the locally stored module information is acquired in the power-on process of executing the Bluetooth module, then at least one information interaction is carried out through the data forwarding platform and the cloud server, so that at least two identical random numbers are stored in the local of the Bluetooth module and the storage module of the cloud server respectively, the equipment description information of the Bluetooth module is acquired, an information calling instruction of the cloud server is executed to send the equipment description information to the cloud server for storage through the data forwarding platform, then the response information is generated and sent to the cloud server through the data forwarding platform in response to the storage operation instruction sent by the cloud server for the equipment description information, system authorization information fed back by cloud service is received through the data forwarding platform, the system authorization information which is subjected to security verification is used as one module information to be stored locally, finally, the Bluetooth module restarting flow is executed, the operation of acquiring the locally stored module information is executed again after the restarting is completed, the operation of executing the service processing operation through the authorized operation system, and the authorization of the operation system under the Bluetooth module offline condition is realized.
Detailed description of the embodiments
In order to more clearly describe the technical solution provided by the embodiment of the present invention, this embodiment will simply introduce a specific implementation scenario obtained according to this embodiment.
Step 1, the Bluetooth module is electrified, and the data forwarding platform establishes Bluetooth connection with the Bluetooth module.
And step 2, the Bluetooth module initiates an authorization application command to the data forwarding platform through Bluetooth, and the data forwarding platform initiates an authorization application to the cloud server after receiving the command.
And 3, the cloud server replies a connection success state, the current server time and the first random number are transmitted to the data forwarding platform, and the data forwarding platform transmits the information to the Bluetooth module through Bluetooth after receiving the information.
And 4, the Bluetooth module replies a second random number to the data forwarding platform, and the data forwarding platform sends the second random number to the cloud server.
And 5, the cloud server responds to the data forwarding platform successfully, and the data forwarding platform sends a command for acquiring the equipment description information to the Bluetooth module through Bluetooth.
And 6, the Bluetooth module replies module information to the data forwarding platform, and the data forwarding platform sends the equipment description information to the cloud server.
And 7, the cloud server responds to the receiving of the second random number and the authorization application command, generates system authorization information based on the first random number, the second random number and the equipment description information in the storage module, and responds the system authorization information to the data forwarding platform, and the data forwarding platform sends the system authorization information to the Bluetooth module.
And 8, verifying whether the system authorization information is legal information or not based on a preset verification rule by the Bluetooth module, and taking the system authorization information which passes the security verification as module information to carry out local storage.
And 9, automatically restarting the Bluetooth module.
And 10, powering up the module, and loading the system program from the local storage to the running memory by the BootLoader.
Step 11, completing the software and hardware initialization preparation work before the system is started through a BootLoader, which comprises the following steps: the system clock, the memory management unit, the power management unit, the system bus, the memory initialization and other preparation works.
Step 12, calling main function by assembler instruction
And step 13, judging whether the system authorization information is stored in the module information.
And step 14, if not, returning to the step 2.
And 15, if yes, authorizing the operation system by using the system authorization information, starting a system kernel, and executing normal service functions.
Example III
Fig. 3 is a schematic structural diagram of an operating system authorization device of a bluetooth module according to a third embodiment of the present invention.
As shown in fig. 3, the apparatus includes:
the module information obtaining module 310 is configured to obtain locally stored module information during a power-up process of the bluetooth module;
the local storage module 320 is configured to perform at least one information interaction with the cloud server through the data forwarding platform when the built-in operating system is determined to be an unauthorized operating system according to the module information, obtain system authorization information, and perform local storage with the system authorization information that passes the security check as a module information;
the module restarting module 330 is configured to execute a bluetooth module restarting procedure, and after restarting, re-execute the operation of obtaining the locally stored module information, so as to execute the service processing operation through the authorized operating system.
According to the technical scheme, the locally stored module information is acquired in the power-on process of the Bluetooth module, then when the built-in operating system is determined to be an unauthorized operating system according to the module information, at least one information interaction is carried out between the data forwarding platform and the cloud server to obtain system authorization information, the system authorization information which passes through security verification is used as one item of module information to be locally stored, finally, a Bluetooth module restarting process is executed, after restarting is completed, the operation of acquiring the locally stored module information is executed again, so that the operation of business processing is executed through the authorized operating system, and the authorization of the operating system under the offline condition of the Bluetooth module is realized.
Based on the above embodiment, the local storage module 320 further includes:
the random number acquisition unit is used for carrying out at least one information interaction with the cloud server through the data forwarding platform so as to respectively store at least two same random numbers in the local of the Bluetooth module and the storage module of the cloud server;
the device description information acquisition unit is used for acquiring the device description information of the Bluetooth module, executing the information calling instruction of the cloud server and sending the device description information to the cloud server for storage through the data forwarding platform;
the system authorization information generation unit is used for responding to a storage operation instruction sent by the cloud server for the equipment description information, generating response information and sending the response information to the cloud server through the data forwarding platform; the cloud server is used for responding to the response information and generating system authorization information based on the random number and the equipment description information in the storage module;
and the system authorization information receiving unit is used for receiving the system authorization information fed back by the cloud service through the data forwarding platform.
On the basis of the above embodiment, the random number acquisition unit further includes:
the first random number storage unit is used for sending an authorization application command to the cloud server through the data forwarding platform and acquiring a first random number based on the authorization application command; the cloud server is used for responding to an authorization application command of the Bluetooth module to generate a first random number, and storing the first random number into a local flash memory while sending the first random number to the Bluetooth module through the data forwarding platform;
the second random number storage unit is used for responding to the first random number sent by the cloud server, generating a second random number, and sending and storing the second random number to the cloud server through the data forwarding platform while locally storing the second random number.
Based on the above embodiment, the local storage module 320 further includes:
the legal information judging unit verifies whether the system authorization information is legal information or not based on a preset verification rule;
and the module information storage unit is used for locally storing the system authorization information as one module information.
And the information deleting unit is used for deleting the system authorization information and returning to execute the operation of acquiring the locally stored module information so as to request the system authorization information to the cloud server again.
On the basis of the above embodiment, the operating system authorization device of the bluetooth module further includes: the pre-loading module is used for carrying out a Bluetooth module restarting process, and after the restarting process is completed, carrying out the operation of obtaining the locally stored module information again, and then carrying out pre-loading work on the operating system to obtain a system to be authorized; extracting system authorization information in the local storage based on the system to be authorized; and authorizing the system to be authorized according to the extracted system authorization information so as to obtain an operating system after authorization.
The operating system authorization device of the Bluetooth module provided by the embodiment of the invention can execute the operating system authorization method of the Bluetooth module provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the operating system authorization method of the bluetooth module.
Accordingly, the method comprises the following steps:
in the power-on process of executing the Bluetooth module, locally stored module information is acquired;
when the built-in operating system is determined to be an unauthorized operating system according to the module information, carrying out at least one information interaction with a cloud server request through a data forwarding platform to obtain system authorization information, and taking the system authorization information which passes the security check as a module information to carry out local storage;
executing the restarting process of the Bluetooth module, and after the restarting process is completed, re-executing the operation of acquiring the locally stored module information so as to execute the business processing operation through the authorized operating system.
In some embodiments, the operating system authorization method of the bluetooth module may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of the operating system authorization method of the bluetooth module described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the operating system authorization method of the bluetooth module in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.

Claims (10)

1. An operating system authorization method of a bluetooth module, executed by the bluetooth module, is characterized by comprising the following steps:
in the power-on process of executing the Bluetooth module, locally stored module information is acquired;
when the built-in operating system is determined to be an unauthorized operating system according to the module information, carrying out at least one information interaction with a cloud server request through a data forwarding platform to obtain system authorization information, and taking the system authorization information which passes the security check as a module information to carry out local storage;
executing the restarting process of the Bluetooth module, and after the restarting process is completed, re-executing the operation of acquiring the locally stored module information so as to execute the business processing operation through the authorized operating system.
2. The method of claim 1, wherein when the built-in operating system is determined to be an unauthorized operating system according to the module information, performing at least one information interaction with a cloud server request through a data forwarding platform to obtain system authorization information, including:
at least one information interaction is carried out with the cloud server request through the data forwarding platform so as to respectively store at least two same random numbers in the local of the Bluetooth module and the storage module of the cloud server;
acquiring equipment description information of the Bluetooth module, executing an information calling instruction of the cloud server, and sending the equipment description information to the cloud server for storage through the data forwarding platform;
responding to a storage operation instruction sent by a cloud server for equipment description information, generating response information and sending the response information to the cloud server through the data forwarding platform; the cloud server is used for responding to the response information and generating system authorization information based on the random number and the equipment description information in the storage module;
and receiving the system authorization information fed back by the cloud service through the data forwarding platform.
3. The method of claim 2, wherein the requesting, by the data forwarding platform, at least one information interaction with the cloud server to store the same at least two random numbers in the local of the bluetooth module and the storage module of the cloud server, respectively, comprises:
sending an authorization application command to the cloud server through a data forwarding platform and acquiring a first random number based on the authorization application command; the cloud server is used for responding to an authorization application command of the Bluetooth module to generate a first random number, and storing the first random number into a local flash memory while sending the first random number to the Bluetooth module through the data forwarding platform;
and generating a second random number in response to the first random number sent by the cloud server, and sending and storing the second random number to the cloud server through the data forwarding platform while locally storing the second random number.
4. The method of claim 1, wherein locally storing the system authorization information that passes the security check as a piece of module information, comprises:
verifying whether the system authorization information is legal information or not based on a preset verification rule;
if yes, the system authorization information is used as a piece of module information to be stored locally.
5. The method of claim 4, further comprising, after verifying whether the system authorization information is legal information based on a preset verification rule:
if not, deleting the system authorization information, and returning to execute the operation of acquiring the locally stored module information so as to request the system authorization information to the cloud server again.
6. The method of claim 1, wherein after performing the bluetooth module restart procedure and after performing the operation of obtaining the locally stored module information again after the restart is completed, further comprising:
the method comprises the steps of carrying out preloading work on an operating system to obtain a system to be authorized;
extracting system authorization information in the local storage based on the system to be authorized;
and authorizing the system to be authorized according to the extracted system authorization information so as to obtain an operating system after authorization.
7. The method according to any one of claims 1-6, wherein the data transmission mode between the bluetooth module and the data forwarding platform is bluetooth transmission;
the data transmission mode between the data forwarding platform and the cloud server is network transmission.
8. An operating system authorization device of a bluetooth module, executed by the bluetooth module, comprising:
the module information acquisition module is used for acquiring locally stored module information in the power-on process of executing the Bluetooth module;
the local storage module is used for carrying out at least one information interaction with the cloud server request through the data forwarding platform when the built-in operating system is determined to be an unauthorized operating system according to the module information, obtaining system authorization information, and taking the system authorization information which passes the security check as a module information to carry out local storage;
and the module restarting module is used for executing the Bluetooth module restarting flow, and after restarting, executing the operation of acquiring the locally stored module information again so as to execute the business processing operation through the authorized operating system.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the operating system authorization method of the bluetooth module of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to execute the operating system authorization method of the bluetooth module of any one of claims 1-7.
CN202310693917.3A 2023-06-12 2023-06-12 Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony Pending CN116600279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310693917.3A CN116600279A (en) 2023-06-12 2023-06-12 Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310693917.3A CN116600279A (en) 2023-06-12 2023-06-12 Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony

Publications (1)

Publication Number Publication Date
CN116600279A true CN116600279A (en) 2023-08-15

Family

ID=87589945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310693917.3A Pending CN116600279A (en) 2023-06-12 2023-06-12 Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony

Country Status (1)

Country Link
CN (1) CN116600279A (en)

Similar Documents

Publication Publication Date Title
CN113766487B (en) Cloud mobile phone information acquisition method, device, equipment and medium
CN115273289B (en) Physical key activation method, system, device, equipment and medium
CN112434278A (en) Bare computer authentication method, apparatus, device and medium
CN115038062A (en) Bluetooth authentication method, device and equipment
CN114513350A (en) Identity verification method, system and storage medium
CN116126380A (en) Firmware upgrading method and device, electronic equipment and storage medium
CN116600279A (en) Operating system authorization method, device and equipment of Bluetooth module based on OpenHarmony
CN115314258B (en) Method and device for detecting weak password, electronic equipment and storage medium
CN115080205B (en) Task execution method, device, electronic equipment and readable storage medium
CN114996169B (en) Device diagnosis method, device, electronic device, and storage medium
CN116661821A (en) Application upgrading method and device, electronic equipment and storage medium
CN117560209A (en) Object information sharing method, device and server
CN116962114A (en) Equipment interconnection method, device, equipment and medium based on distributed soft bus
CN116094835A (en) Service data encryption method, service data decryption method, device and equipment
CN117670341A (en) Authentication method, device, equipment and storage medium for payment terminal
CN116627469A (en) Method, device, equipment and medium for generating unique identifier of Android equipment
CN115801286A (en) Calling method, device, equipment and storage medium of microservice
CN117077125A (en) Secure installation starting method, device, equipment and medium for mobile application program
CN116318769A (en) Gateway interception method, device, electronic equipment and storage medium
CN117061125A (en) Equipment interconnection method and system and electronic equipment
CN117076168A (en) SDK processing method, device, equipment and storage medium
CN114398616A (en) Login method and device of embedded system, electronic equipment and readable storage medium
CN117580004A (en) Service processing method, device and system based on 5G message
CN117061110A (en) Message sharing method and device, electronic equipment and storage medium
CN117632545A (en) Data sharing method and device of business system and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination