Equipment adjusting method and system based on Bluetooth connection
By identifying device manufacturer logos and establishing a unified Bluetooth communication interface, the problem of connection and adjustment differences between devices from different manufacturers is solved, enabling unified management and efficient parameter adjustment of devices from multiple manufacturers, thereby improving user experience and system reliability.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- ANHUI YILU WEIHANG TECH CO LTD
- Filing Date
- 2026-03-09
- Publication Date
- 2026-05-01
AI Technical Summary
The differences in communication protocols between Bluetooth devices from different manufacturers require users to use different adjustment tools and operating logic, resulting in a poor user experience.
The system obtains device information via Bluetooth scanning, identifies the manufacturer's logo, selects the corresponding communication protocol adapter, establishes a unified Bluetooth communication interface, performs device connection and authentication, and sends parameter adjustment commands through the unified interface.
It enables the connection, authentication, and parameter adjustment of devices from different manufacturers through the same upper-layer application, improving versatility, reducing user learning costs, and enhancing the reliability of device management and user experience.
Smart Images

Figure CN121968053A_ABST
Abstract
Description
A device adjustment method and system based on Bluetooth connection Technical Field
[0001] This application relates to the field of Bluetooth communication, and in particular to a device adjustment method and system based on Bluetooth connection. Background Technology
[0002] With the rapid development of IoT technology, more and more smart devices are connecting to mobile terminals via Bluetooth to achieve functions such as remote parameter adjustment and status monitoring. For example, Electronic Toll Collection (ETC) technology has been widely used in highway toll systems; in the smart home field, Bluetooth smart locks, sensors, and other devices also need to be configured via mobile terminals; and in the industrial IoT field, Bluetooth data acquisition terminals also require flexible remote parameter setting functions.
[0003] However, the market currently offers similar devices from multiple manufacturers. For example, ETC OBU devices are available from brands like JinYi, JuLi, and Etes, and smart home devices also come from various brands. Each manufacturer's devices often employ unique Bluetooth communication protocols and proprietary command formats. However, the Bluetooth communication protocols of different manufacturers' devices differ significantly, lacking a unified management interface. Therefore, users need to use different adjustment tools for different manufacturers' devices, and these tools have different operating logics, resulting in a poor user experience. Summary of the Invention
[0004] Therefore, it is necessary to provide a device adjustment method and system based on Bluetooth connection.
[0005] A device adjustment method based on Bluetooth connection, comprising:
[0006] Device information is obtained by scanning via Bluetooth, and the device information includes at least a manufacturer identifier;
[0007] Select the corresponding communication protocol adapter based on the manufacturer's identifier;
[0008] Based on the aforementioned communication protocol adapter, a unified Bluetooth communication interface is established;
[0009] Device connection and authentication are performed through the Bluetooth communication interface;
[0010] If the authentication result meets the preset conditions, a parameter adjustment command is sent to the device through the Bluetooth communication interface to adjust the parameters.
[0011] In another embodiment, establishing a unified Bluetooth communication interface includes:
[0012] Establish a standardized Bluetooth communication service, and set a unified service UUID and a unified feature value UUID for the Bluetooth communication service.
[0013] In another embodiment, establishing a unified Bluetooth communication interface further includes:
[0014] A unified data transmission mechanism is set up for the Bluetooth communication service;
[0015] The data transmission mechanism includes: dividing the transmitted data into packets according to a preset data length, verifying the communication data during the packet transmission process, and retransmitting data packets with abnormal verification results.
[0016] In another embodiment, the device adjustment method further includes:
[0017] The status of the monitoring parameter adjustment process includes one or more of the following: connection status, adjustment progress, and completion status.
[0018] If an abnormality occurs in the stated state, an abnormality feedback message is generated and a feedback operation is performed to indicate that the parameter adjustment process is abnormal.
[0019] In another embodiment, the device adjustment method further includes:
[0020] Verify the validity of the parameter adjustment results, and record the parameter adjustment process and historical data of the device's status changes.
[0021] In another embodiment, the parameter adjustment commands include one or more of the following: sensitivity adjustment, voice on / off commands, and start / stop commands.
[0022] A Bluetooth-based device control system includes:
[0023] The front-end module is used to provide a visual interface to the user and receive adjustment commands input by the user;
[0024] The device is adapted to a Bluetooth connection module and connected to the front-end module. It stores communication protocol adapters for multiple manufacturers' devices and is used to obtain device information by scanning via Bluetooth. The device information includes at least a manufacturer identifier. The corresponding communication protocol adapter is selected based on the manufacturer identifier. A unified Bluetooth communication interface is established based on the communication protocol adapter. Device connection and authentication are performed through the Bluetooth communication interface.
[0025] The parameter adjustment module is connected to the front-end module and the adapter and Bluetooth connection module. It is used to receive parameter adjustment instructions from the front-end module and, if the authentication result meets the preset conditions, send parameter adjustment instructions to the device through the adapter and Bluetooth connection module to perform parameter adjustment.
[0026] In another embodiment, it further includes:
[0027] A status monitoring module, connected to the front-end module and the adapter and Bluetooth connection module, is used to monitor the status of the parameter adjustment process. If there is an abnormality in the status, it generates abnormal feedback information and performs feedback operations to indicate that the parameter adjustment process is abnormal. The status includes one or more of connection status, adjustment progress, and completion status.
[0028] In another embodiment, it further includes:
[0029] The data management module, connected to the adapter and Bluetooth connection module, is used to record historical data of the parameter adjustment process and the status changes of the device;
[0030] The status monitoring module is also used to verify the validity of the parameter adjustment results.
[0031] In another embodiment, the front-end module is a WeChat mini-program, and the device is a non-stop electronic toll collection system device.
[0032] The aforementioned Bluetooth-based device adjustment method and system automatically identifies the device manufacturer's logo and selects the corresponding manufacturer's communication protocol adapter, establishing a unified Bluetooth communication interface. This enables the connection, authentication, and parameter adjustment of devices from different manufacturers to be completed through a single upper-layer application. This improves versatility across different manufacturers' devices and reduces the learning curve for users. Attached Figure Description
[0033] To more clearly illustrate the technical solutions in the embodiments of this application or the conventional technology, the drawings used in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0034] Figure 1 is a flowchart of a device adjustment method based on Bluetooth connection according to an embodiment;
[0035] Figure 2 is a flowchart of a device adjustment method based on Bluetooth connection according to another embodiment;
[0036] Figure 3 is a connection diagram of a Bluetooth-based device adjustment system module according to an embodiment;
[0037] Figure 4 is a connection diagram of a device adjustment system module based on Bluetooth connection according to another embodiment;
[0038] Figure 5 is a connection diagram of a device adjustment system module based on Bluetooth connection according to another embodiment.
[0039] Explanation of reference numerals in the attached figures:
[0040] 301. Front-end module; 302. Adaptor and Bluetooth connection module; 303. Parameter adjustment module; 401. Status monitoring module; 501. Data management module. Detailed Implementation
[0041] To facilitate understanding of this application, a more complete description will be provided below with reference to the accompanying drawings, which illustrate embodiments of the present application. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that the disclosure of this application will be thorough and complete.
[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
[0043] It is understood that the term "connection" in the following embodiments should be understood as "electrical connection," "communication connection," etc., if the connected circuits, modules, units, etc., have electrical signal or data transmission with each other.
[0044] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising / including” or “having,” etc., specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. Meanwhile, the term “and / or” as used in this specification includes any and all combinations of the associated listed items.
[0045] As shown in Figure 1, this application proposes a device adjustment method based on Bluetooth connection, including steps 101, 102, 103, 104, and 105.
[0046] 101. Obtain device information via Bluetooth scanning, wherein the device information includes at least the manufacturer's identifier.
[0047] The user's mobile device obtains device information via Bluetooth scanning. This information includes the device manufacturer's identifier, and may also include the device's name and MAC address. For example, the mobile device can identify the manufacturer's identifier from the obtained device name according to preset rules. For instance, if the device name is "JY_XXX", the manufacturer identifier can be identified as "JY"; if the device name is "JL_XXX", the manufacturer identifier can be identified as "JL". The mobile device can also scan for nearby devices via Bluetooth and obtain broadcast information from each device, including the device name, MAC address, and the manufacturer identifier field in the device manufacturer's custom broadcast data.
[0048] 102. Select the corresponding communication protocol adapter according to the manufacturer's identifier.
[0049] The mobile device accesses a protocol database containing communication protocol adapters from multiple device manufacturers. Each adapter encapsulates the specific Bluetooth communication protocol for its corresponding manufacturer's device, including command format and communication timing. Based on the manufacturer identifier identified in step 101, the mobile device searches the protocol database for and loads the communication protocol adapter corresponding to that manufacturer identifier. The selected protocol adapter will be responsible for all subsequent Bluetooth communication interactions with that manufacturer's device.
[0050] 103. Based on the aforementioned communication protocol adapter, establish a unified Bluetooth communication interface.
[0051] The unified Bluetooth communication interface is a set of standardized application programming interfaces (APIs) exposed to the upper-layer application interface. It shields the hardware and protocol differences of the underlying Bluetooth communication, uniformly encapsulating standardized communication operations such as device connection, data transmission, data reception, and connection termination. Upper-layer applications can control Bluetooth communication by calling these standardized APIs. Internally, the interface calls the protocol conversion logic encapsulated in the adapter selected in step 102, converting the general instructions of the upper-layer application into the proprietary instruction format of the corresponding manufacturer's device. This design achieves unified encapsulation of protocols from multiple manufacturers, eliminating the need for upper-layer applications to be aware of the differences in the underlying protocols.
[0052] 104. Connect and authenticate devices via the Bluetooth communication interface.
[0053] The mobile device's Bluetooth module initiates a connection request to the device based on the device's MAC address or other identifiers. Upon receiving the request, the device establishes a Bluetooth communication path. After the communication path is established, the mobile device sends an authentication request to the device. If authentication is successful, the mobile device confirms that the currently connected device is legitimate and can proceed with subsequent operations; if authentication fails, the mobile device can disconnect. This step improves the security of data transmission.
[0054] 105. If the authentication result meets the preset conditions, send a parameter adjustment command to the device through the Bluetooth communication interface to adjust the parameters.
[0055] Once authentication is successful, meaning the authentication result meets the preset conditions, the mobile device can send parameter adjustment commands to the device via a unified Bluetooth communication interface. The user selects the parameter items to be adjusted through the upper-layer application, which then translates the user's actions into corresponding parameter adjustment commands and sends them to the device via the unified Bluetooth communication interface, thus completing the parameter adjustment process.
[0056] The Bluetooth-based device adjustment method proposed in this embodiment automatically identifies the device manufacturer's logo and selects the corresponding manufacturer's communication protocol adapter, establishing a unified Bluetooth communication interface. This enables the connection, authentication, and parameter adjustment of devices from different manufacturers to be completed through the same upper-layer application. This improves versatility across different manufacturers' devices and reduces the learning curve for users.
[0057] In another embodiment, establishing a unified Bluetooth communication interface includes:
[0058] Establish a standardized Bluetooth communication service, and set a unified service UUID and a unified feature value UUID for the Bluetooth communication service.
[0059] The service UUID is configured as a fixed, universally unique identifier, such as FEE7. The service UUID uniquely identifies the standardized Bluetooth communication service provided by this device. After establishing a Bluetooth connection, the mobile device can locate and invoke the corresponding communication service by scanning and matching the service UUID. The feature UUID is also configured as a fixed, universally unique identifier, such as FEC7 or FEC8. Different feature UUIDs correspond to different operations such as data writing and data reading.
[0060] Through the above operations, regardless of the manufacturer of the currently connected device, the mobile device will use the same service UUID and unified feature UUID to interact with the device. The selected adapter converts the user's parameter adjustment commands into the corresponding manufacturer's proprietary command format and sends them out using the service UUID and unified feature UUID. At the same time, the adapter also receives data returned by the device using the service UUID and unified feature UUID, converts it into a universal format, and sends it to the upper-layer application.
[0061] This embodiment standardizes the communication entry point for devices from different manufacturers by setting a unified service UUID and a unified feature value UUID. All protocol differences are handled by the adapter, which simplifies the development difficulty of the front end and improves scalability. When a new manufacturer's device needs to be added, only the corresponding adapter needs to be added to complete the connection, parameter adjustment and other actions. Unified management of devices from different manufacturers can be achieved without modifying the communication layer's UUID.
[0062] In another embodiment, establishing a unified Bluetooth communication interface further includes:
[0063] A unified data transmission mechanism is set up for the Bluetooth communication service;
[0064] The data transmission mechanism includes: dividing the transmitted data into packets according to a preset data length, verifying the communication data during the packet transmission process, and retransmitting data packets with abnormal verification results.
[0065] Packet segmentation refers to the fact that Bluetooth Low Energy (BLE) communication has a limited data length for a single transmission, typically 20 bytes. Therefore, when parameter adjustment commands or data returned by the device exceed a preset length threshold, a unified interface is needed to segment the data. For example, if a device from one manufacturer has a parameter adjustment command of 18 bytes, it can be sent directly in one go. However, if a parameter adjustment command from another manufacturer is longer than 20 bytes, the command will be split into multiple data packets according to the preset maximum length per packet (e.g., 20 bytes) and sent sequentially.
[0066] Data verification is performed to ensure the integrity of data transmission. The unified interface appends verification information to each data packet when sending it and performs verification upon receiving data. For example, when sending a command, the unified interface calculates the CRC16 checksum of the entire command data and appends this checksum to the end of the data packet. After receiving the data packet, the device recalculates the CRC16 and compares it with the received checksum.
[0067] Retransmission is handled when an error occurs during verification. For example, after a mobile device sends a command, it starts a timer (e.g., 500ms). If no acknowledgment response is received from the device before the timer expires, or if a verification failure notification is received, the unified interface automatically retransmits the current data packet. The number of retransmissions can be preset (e.g., 3 times). If the retransmission still fails after exceeding the maximum number of retransmissions, the user is prompted with "Communication error, please try again".
[0068] This embodiment establishes a standardized data transmission mechanism, overcomes the single transmission length limit through data packetization, ensures instruction integrity through data verification, and automatically handles communication interference through abnormal retransmission. Thus, without relying on specific manufacturer's proprietary protocols, it improves the reliability and success rate of parameter adjustment in complex Bluetooth environments, providing users with a more stable device management experience.
[0069] In another embodiment, the device adjustment method further includes steps 201 and 202.
[0070] 201. Monitor the status of the parameter adjustment process, the status including one or more of the following: connection status, adjustment progress, and completion status.
[0071] The connection status indicates whether the device maintains a normal connection, such as through RSSI signal strength monitoring or heartbeat detection via a Bluetooth link. The adjustment progress, for instructions requiring multiple steps, allows the device to return the current percentage of progress or the identifier of each step. The completion status is the final result returned by the device after execution, such as "adjustment successful" or "adjustment failed".
[0072] 202. If the state is abnormal, generate abnormal feedback information and perform feedback operation to indicate that the parameter adjustment process is abnormal.
[0073] When an abnormal state is detected (such as connection loss, progress stalling beyond a threshold, device returning an error code, etc.), the mobile device immediately generates abnormal feedback information and executes corresponding feedback operations:
[0074] If the connection is lost, it will automatically attempt to reconnect and display "Connection lost, reconnecting..." on the upper interface; if the progress stalls, it will display "Communication timeout, please check if the device is close to the phone"; if the device returns an error code, it will analyze the specific reason based on the error code, such as "incorrect command format" or "parameter exceeded", and display the corresponding prompt to the user.
[0075] This embodiment monitors the connection status, adjustment progress, and completion status in real time during the parameter adjustment process, and generates timely feedback information to prompt the user when an anomaly is detected. This allows the user to clearly understand the progress and results of the parameter adjustment process, thus improving the user experience.
[0076] In another embodiment, the device adjustment method further includes:
[0077] Verify the validity of the parameter adjustment results and record the historical data of the parameter adjustment process and the changes in the equipment status.
[0078] After receiving a "Parameter adjustment complete" notification from the device, the mobile device will proactively initiate a parameter reading command before confirming completion with the user. This command uses the unified Bluetooth communication interface to query the device's current parameter values and compares them with the user's desired target values. For example, if the user adjusts the sensitivity from "Medium" to "High," the mobile device sends the corresponding command, and the device returns "Parameter adjustment complete." The mobile device then sends a "Read current sensitivity" command, and the device returns the current sensitivity value (e.g., "High"). The mobile device compares the read value with the target value ("High"). If they match, the adjustment is considered effective; otherwise, if they do not match (e.g., the return value is still "Medium"), the adjustment is considered a failure, and the user is prompted "Adjustment not effective, please try again."
[0079] After the above process is completed, the mobile device will record relevant information about this operation to a local database or the cloud. This information includes, but is not limited to: timestamp (to record the specific time the operation occurred), device information, operation type, and adjustment results. Users or staff can view the historical records to trace changes in device status or check the causes of anomalies.
[0080] This embodiment avoids sending erroneous information to users by setting up validity checks; and by setting up a process for recording and saving historical results, it provides users with traceable operation logs, which facilitates subsequent auditing, troubleshooting, or statistical analysis, thereby improving the reliability and manageability of the system and providing data support for monitoring and optimizing the long-term operating status of the equipment.
[0081] In another embodiment, the parameter adjustment instructions include one or more of the following: sensitivity adjustment, voice on / off instructions, and start / stop instructions.
[0082] Taking ETC as an example, sensitivity adjustment controls the signal strength detected by the ETC device, typically supporting three levels: high sensitivity, medium sensitivity, and low sensitivity. The voice switch controls whether the device plays voice prompts during transactions. The start / stop function enables or disables the device, for example, when it needs to be temporarily disabled.
[0083] This embodiment takes ETC as an example. By specifying parameter adjustment commands into three types—sensitivity adjustment, voice switch, and start / stop function—users only need to select the desired function through the upper-layer application interface. The system can automatically call the corresponding adapter to generate commands that conform to the manufacturer's proprietary protocol and send them out for execution through a unified Bluetooth communication interface. This design allows users to complete common operations such as device sensitivity adjustment, voice broadcast control, and device start / stop switching without having to remember the operating logic or command formats of different manufacturers, thus improving the system's practicality and scalability.
[0084] This application also proposes a device adjustment system based on Bluetooth connection, as shown in Figure 2, including: a front-end module 201, an adapter and Bluetooth connection module 202, and a parameter adjustment module 203.
[0085] The front-end module 201 is used to provide a visual interface to the user and receive adjustment commands input by the user;
[0086] It is understood that the front-end module 201 mentioned here is the upper-layer application mentioned in the previous embodiment. The user can select the parameters to be adjusted in the visual interface. The user's selection is received by the front-end module 201 as an adjustment command and passed to the back-end module for execution. At the same time, the device status and operation results are displayed in the visual interface.
[0087] The adapter is connected to the Bluetooth connection module 202 and the front-end module 201. It stores communication protocol adapters for multiple manufacturers' devices and is used to obtain device information by scanning via Bluetooth. The device information includes at least the manufacturer's identifier. The corresponding communication protocol adapter is selected according to the manufacturer's identifier. A unified Bluetooth communication interface is established based on the communication protocol adapter. Device connection and authentication are performed through the Bluetooth communication interface.
[0088] After the Bluetooth adapter and Bluetooth connection module 202 identifies a Bluetooth device within its range, it sends the identified device information to the front-end module 201 for display to the user. After the user selects the device to be connected through the front-end module 201, the Bluetooth adapter and Bluetooth connection module 202 selects the corresponding communication protocol adapter based on the manufacturer identifier in the acquired device information, and completes the connection and authentication with the device by establishing a unified Bluetooth communication interface. After successful authentication, the communication channel is officially established and can be used for subsequent parameter adjustment.
[0089] The parameter adjustment module 203 is connected to the front-end module 201 and the adapter and Bluetooth connection module 202. It is used to receive parameter adjustment instructions from the front-end module 201 and, when the authentication result meets the preset conditions, send parameter adjustment instructions to the device through the adapter and Bluetooth connection module 202 to perform parameter adjustment.
[0090] The parameter adjustment commands include, but are not limited to, one or more of the following: sensitivity adjustment, voice on / off commands, and start / stop commands. Specifically, when the authentication result meets the preset conditions, the parameter adjustment module 203 sends the received parameter adjustment command to the Bluetooth adapter module 202. The Bluetooth adapter module 202, through the established unified Bluetooth communication interface and by calling the corresponding communication protocol adapter, converts the command into a private command format that can be recognized by the device and sends it to the device for execution, thus completing the parameter adjustment of the device.
[0091] This embodiment establishes a Bluetooth-based device adjustment system comprising a front-end module, an adapter and Bluetooth connection module, and a parameter adjustment module. This system allows users to connect to and adjust the parameters of Bluetooth devices from different manufacturers through a unified architecture within the front-end module; device manufacturers can provide a unified parameter adjustment solution; and service providers can offer remote device management capabilities through the front-end module. This system can be applied to all IoT devices requiring Bluetooth parameter adjustment.
[0092] In another embodiment, as shown in FIG4, the system further includes:
[0093] The status monitoring module 401 is connected to the front-end module 301 and the adapter and Bluetooth connection module 302, and is used to monitor the status of the parameter adjustment process. The status includes one or more of the following: connection status, adjustment progress, and completion status.
[0094] The status monitoring module 401 continuously monitors the status data returned by the device through the Bluetooth connection module 302, including connection status, adjustment progress, and completion status. The connection status data can be heartbeat response data, the adjustment progress can be the progress of packet transmission, and the completion status can be execution success or failure. The status monitoring module 401 sends the above data to the front-end module 301 in real time for visualization, such as displaying the adjustment progress as a progress bar.
[0095] Optionally, the state monitoring module 401 internally employs a state machine module to manage the entire parameter adjustment process. The system predefines several states, including: idle state, scan state, connected state, authentication state, adjustment state, completed state, and abnormal state. Only the operation corresponding to each state is allowed to be executed in each state. When the operation is successfully completed, the state machine automatically transitions to the next state; if the operation fails or an exception occurs, it transitions to the abnormal state or rolls back to the previous state.
[0096] The status monitoring module 401 is also used to generate abnormal feedback information and perform feedback operations when the status is abnormal, so as to indicate that the parameter adjustment process is abnormal.
[0097] In cases of connection loss, progress stalling, or device error code return, the status monitoring module 401 will generate abnormal feedback information and perform feedback operations. For example, if the status monitoring module 401 detects a connection loss, it will generate a message "Connection failed, attempting to reconnect" and send it to the front-end module 201 so that the user can obtain this information and automatically attempt to reconnect.
[0098] This embodiment introduces a monitoring and feedback mechanism by setting up a status monitoring module, which allows users to directly obtain the status and abnormal guidance of the current parameter adjustment process, and ensures the reliability of the entire parameter adjustment process, thereby improving the user experience.
[0099] In another embodiment, as shown in FIG5, the system further includes:
[0100] The data management module 501 is connected to the adapter and Bluetooth connection module and is used to record historical data of the parameter adjustment process and the device status changes.
[0101] After each adjustment operation is completed, the data management module 301 will persistently store information such as timestamp, device information, operation type, parameters before and after adjustment, adjustment results, and abnormal records to the local database or cloud server, providing users with traceable operation logs for subsequent auditing, troubleshooting, or statistical analysis.
[0102] The status monitoring module 401 is also used to verify the validity of the parameter adjustment results.
[0103] Upon receiving the "Parameter Adjustment Complete" notification from the device, before confirming completion with the user, the status monitoring module 401 proactively initiates a parameter reading command. It queries the device's current parameter values via the unified Bluetooth communication interface and compares them with the user's expected target values. If they match, the adjustment result is deemed valid; otherwise, the adjustment is deemed a failure, and information is sent to the front-end module to provide a visual prompt to the user, such as displaying "Adjustment not effective, please try again." The result is then saved to the data management module via the adapter and Bluetooth connection module.
[0104] This embodiment achieves long-term storage of historical data by setting up a data management module, providing a data foundation for users and staff to trace the source of faults or errors; and by setting up verification of parameter results, it avoids the "false success" phenomenon caused by communication interference or abnormal equipment execution, significantly improving the reliability of the parameter adjustment process and the credibility of the results.
[0105] In another embodiment, the front-end module is a WeChat mini-program, and the device is a non-stop electronic toll collection system device.
[0106] In this embodiment, the front-end module 201 is specifically a WeChat mini-program running on the user's mobile device. Users do not need to download and install a separate application; they can simply scan a QR code or search for the mini-program name using WeChat to access the interface, offering cross-platform compatibility (supporting both iOS 9.0+ and Android 5.0+). The device is an on-board unit in the ETC system, specifically including products from several mainstream manufacturers such as JinYi, JuLi, WanJi, MingChuang, and SooLin. These ETC devices have built-in Bluetooth modules and are pre-configured at the firmware level with a unified service UUID (such as FEE7) and characteristic UUID (such as FEC7 / FEC8) agreed upon with the server, enabling the WeChat mini-program to identify and connect to devices from different manufacturers through a unified Bluetooth communication interface.
[0107] Based on the architecture and process design of the aforementioned system embodiment, this embodiment can achieve the following technical indicators in practical applications:
[0108] Device connection success rate ≥ 95%
[0109] Parameter adjustment success rate ≥ 98%;
[0110] Adjust the response time to ≤ 60 seconds.
[0111] This embodiment implements the front-end module as a WeChat mini-program, allowing users to adjust the parameters of their ETC devices without installing additional applications, significantly lowering the barrier to entry. By specifically limiting the device to an ETC on-board unit, it solves the problems of difficult management and complex operation of devices from multiple manufacturers in the ETC field, and achieves unified remote management of ETC devices from multiple brands.
[0112] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in the above method embodiment.
[0113] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in the above method embodiment.
[0114] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described in the above method embodiments.
[0115] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory, magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0116] In the description of this specification, references to terms such as "some embodiments," "other embodiments," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative descriptions of the above terms do not necessarily refer to the same embodiments or examples.
[0117] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0118] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these modifications and improvements all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A device adjustment method based on Bluetooth connection, characterized in that, include: Device information is obtained by scanning via Bluetooth, and the device information includes at least a manufacturer identifier; Select the corresponding communication protocol adapter based on the manufacturer's identifier; establish a unified Bluetooth communication interface based on the communication protocol adapter; Device connection and authentication are performed through the Bluetooth communication interface; If the authentication result meets the preset conditions, a parameter adjustment command is sent to the device through the Bluetooth communication interface to adjust the parameters.
2. The method according to claim 1, characterized in that, The establishment of a unified Bluetooth communication interface includes: establishing a standardized Bluetooth communication service; and setting a unified service UUID and a unified feature value UUID for the Bluetooth communication service.
3. The method according to claim 2, wherein establishing a unified Bluetooth communication interface further includes: A unified data transmission mechanism is set up for the Bluetooth communication service; wherein the data transmission mechanism includes: processing the transmitted data into packets according to a preset data length, verifying the communication data during the packet transmission process, and retransmitting data packets with abnormal verification results.
4. The method according to claim 1, characterized in that, The device adjustment method further includes: monitoring the status of the parameter adjustment process, the status including one or more of connection status, adjustment progress and completion status; if the status is abnormal, generating abnormal feedback information and performing feedback operation to indicate that the parameter adjustment process is abnormal.
5. The method according to claim 1, characterized in that, The equipment adjustment method further includes: verifying the validity of the parameter adjustment results, and recording the parameter adjustment process and historical data of the equipment's state changes.
6. The method according to any one of claims 1-5, characterized in that, The parameter adjustment commands include one or more of the following: sensitivity adjustment, voice on / off commands, and start / stop commands.
7. A device adjustment system based on Bluetooth connectivity, characterized in that, include: The front-end module is used to provide a visual interface to the user and receive adjustment commands input by the user; The device is adapted to a Bluetooth connection module and connected to the front-end module. It stores communication protocol adapters for multiple manufacturers' devices and is used to obtain device information by scanning via Bluetooth. The device information includes at least a manufacturer identifier. The corresponding communication protocol adapter is selected based on the manufacturer identifier. A unified Bluetooth communication interface is established based on the communication protocol adapter. Device connection and authentication are performed through the Bluetooth communication interface. The parameter adjustment module is connected to the front-end module and the adapter and Bluetooth connection module. It is used to receive parameter adjustment instructions from the front-end module and, if the authentication result meets the preset conditions, send parameter adjustment instructions to the device through the adapter and Bluetooth connection module to perform parameter adjustment.
8. The system according to claim 7, characterized in that, Also includes: A status monitoring module, connected to the front-end module and the adapter and Bluetooth connection module, is used to monitor the status of the parameter adjustment process. If there is an abnormality in the status, it generates abnormal feedback information and performs feedback operations to indicate that the parameter adjustment process is abnormal. The status includes one or more of connection status, adjustment progress, and completion status.
9. The system according to claim 8, characterized in that, Also includes: The data management module, connected to the adapter and Bluetooth connection module, is used to record historical data of the parameter adjustment process and the status changes of the device; The status monitoring module is also used to verify the validity of the parameter adjustment results.
10. The system according to claim 7, characterized in that, The front-end module is a WeChat mini-program, and the device is a non-stop electronic toll collection system.
Citation Information
Patent Citations
Multi-device network bridge method and device, and electronic equipment
CN110912866A
Set top box Bluetooth configuration method and device, electronic equipment and storage medium
CN111954039A
Multi-protocol applet Bluetooth communication system, terminal device and storage medium
CN120881549A
React Native-based cross-platform Bluetooth communication unified implementation method and system
CN121568079A