Method for setting parameters of electric energy meter through Bluetooth broadcast, medium and terminal

Through Bluetooth broadcasting technology, the batch setting of electricity meter parameters is solved, which solves the problems of low efficiency and high cost in the existing technology, improves production efficiency and reduces the setting cost.

CN120075771APending Publication Date: 2025-05-30WASION GROUP HLDG
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510082666.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-20
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

The existing power meter parameter setting method is inefficient and costly, especially when batch setting parameters take up a long time. Although increasing the number of computers increases efficiency, it increases costs and is complex in management.

Method used

Using Bluetooth broadcast technology, by formulating the Payload data format of the Bluetooth broadcast of the power meter, encrypting the broadcast commands with Bluetooth broadcast tooling, setting the power meter parameters, using Bluetooth relay forwarding tooling to realize batch settings, scanning and monitoring of the broadcast message for setting parameters, and completing parameter settings.

Benefits of technology

It improves the efficiency of setting the parameter of the power meter, reduces costs, avoids the plug-in and unplugging of wired connections, and simplifies production management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120075771A_ABST
    Figure CN120075771A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of intelligent electric meters, and relates to a method for setting electric energy meter parameters through Bluetooth broadcast, a medium and a terminal, and the method comprises the steps: S10, formulating an electric energy meter Bluetooth broadcast Payload data format used for broadcast parameter setting identification; s20, encrypting the broadcast command through the Bluetooth broadcast tool to enter a factory parameter setting state; s30, the upper computer issues the protocol parameter setting command to the Bluetooth broadcast main tool, and the Bluetooth broadcast main tool encrypts the parameter setting command and then broadcasts a message; s40, a plurality of Bluetooth broadcast forwarding tools with broadcast relay functions are placed in the parameter setting network, and the broadcast relays forward parameter setting content; s50, the electric energy meter scans and monitors the encrypted parameter setting broadcast message sent by the Bluetooth forwarding tool, and electric energy meter parameters are set after decryption; and S60, after parameter setting is completed, exiting the in-plant parameter setting state through a Bluetooth broadcast command. The parameter setting method can set parameters for electric energy meters in batches, and is high in parameter setting efficiency and low in cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of smart meters, and particularly relates to a method, medium, and terminal for setting electricity meter parameters through Bluetooth broadcasting. Background Art

[0002] Currently, the method for setting parameters of electricity meters mainly uses RS485 or other wired methods for point-to-point parameter setting. The parameter setting process is to communicate with each electricity meter on the production line in sequence and set parameters in sequence. When there are a large number of batch electricity meters, it takes a long time, greatly affecting the production parameter setting efficiency. Some manufacturers, in order to improve the production line efficiency, may increase the number of computers with parameter setting software, that is, install parameter setting software and solutions on multiple computers, and then power on multiple electricity meters simultaneously for parameter setting. The method of increasing the number of computers, although improving the parameter setting efficiency, on the one hand, increases the cost of computer quantity, and on the other hand, when changing batches of electricity meters or parameter setting solutions, it is necessary to modify or replace the solutions on all parameter setting computers, which is also troublesome in parameter setting and production management.

[0003] The patent application with the publication number CN219417716U provides an automatic parameter setting module for an electricity meter, including a housing, a main control unit, a communication unit, a power supply unit, and a display unit are arranged inside the housing. The communication unit includes an infrared communication unit and a barcode scanning control unit. The main control unit is used to process the signals transmitted by the barcode scanning control unit. The infrared communication unit is used to transmit the data processed by the main control unit to the electricity meter for parameter setting communication interaction; the display unit includes an indicator light control unit and a voice prompt control unit. The voice prompt control unit is used to play the parameters modified by the electricity meter through voice. The voice prompt control unit is communicatively connected to the server, and the power supply unit is used to provide power to each unit. Although the parameter setting of the electricity meter can be realized in this patent application, it can only set parameters for one electricity meter at a time, and no relevant technical solutions are given for how to perform batch parameter setting of electricity meters.

[0004] Therefore, how to provide a method with high parameter setting efficiency and low cost, which can perform batch parameter setting of electricity meters, is an urgent problem to be solved by those skilled in the art. Summary of the Invention

[0005] Aiming at the deficiencies of the prior art, the purpose of the present invention is to provide a method for setting electricity meter parameters through Bluetooth broadcasting to solve the problems of low parameter setting efficiency and high cost caused by point-to-point parameter setting of electricity meters in the prior art; in addition, the present invention also provides a medium and a terminal for setting electricity meter parameters through Bluetooth broadcasting.

[0006] To solve the above technical problems, the present invention adopts the following technical solutions:

[0007] In a first aspect, the present invention provides a method for setting the parameters of an electric energy meter through Bluetooth broadcasting, including the following steps:

[0008] S10. Formulate the Bluetooth broadcast Payload data format for broadcast parameter setting identification of the electric energy meter;

[0009] S20. Enter the in-factory parameter setting state by encrypting the broadcast command through a Bluetooth broadcast tooling;

[0010] S30. The host computer issues a protocol parameter setting command to the Bluetooth broadcast master tooling, and the Bluetooth broadcast master tooling encrypts the parameter setting command and then performs message broadcasting;

[0011] S40. Place several Bluetooth broadcast forwarding toolings with broadcast relay functions in the parameter setting network, and the broadcast relay forwards the parameter setting content;

[0012] S50. The electric energy meter scans and listens to the encrypted parameter setting broadcast message sent by the Bluetooth forwarding tooling, decrypts it, and sets the parameters of the electric energy meter;

[0013] S60. After the parameter setting is completed, exit the in-factory parameter setting state through a Bluetooth broadcast command.

[0014] Further, in the step S10, the Bluetooth broadcast Payload data format of the electric energy meter includes a device category code for identifying the device type in the Bluetooth network, a broadcast counter for managing the relay forwarding of the Bluetooth broadcast tooling, a feature code indicating functions and device characteristics, and 16-byte extended content data for implementing complex device functions or state transmission.

[0015] Further, the 16-byte extended content data format is defined as data identification + length + parameter content without encoding. After the Bluetooth broadcast master tooling receives the protocol parameter setting command from the host computer, the protocol format is removed, and the protocol identification content, length, and parameter content are retained as the extended content in the broadcast message for broadcasting.

[0016] Further, during Bluetooth broadcasting, the 16-byte extended content is encrypted, using the Bluetooth MAC address as the encryption factor or key, and symmetric encryption is performed to obtain an encrypted broadcast message.

[0017] Further, the broadcast counter in the broadcast Payload is used for the Bluetooth tooling to identify a new parameter setting command, update the Bluetooth broadcast message for broadcast relay, the device category code of the electric energy meter is C1, and the device category code of the Bluetooth broadcast tooling is C3.

[0018] Further, the value of the feature code 0001 is the in-factory command, the value 0002 is the out-of-factory command, and the value 0003 is the parameter setting command.

[0019] Further, the step S50 specifically includes: specifying the Bluetooth devices listened by the Bluetooth module for broadcasting and the Bluetooth broadcast reporting format. The content filtered by the Bluetooth module for listening to the broadcast device category includes the Bluetooth MAC address and the device category. The Bluetooth broadcast content reported by the Bluetooth module to the electric energy meter application layer includes the MAC address, the feature code, the broadcast counter, and 16-byte extended content. The Bluetooth listening device category is the device category C3 of the Bluetooth broadcast tooling.

[0020] Further, the Bluetooth broadcast tooling supports one master and one slave Bluetooth. The master Bluetooth channel is used for Bluetooth broadcasting, and the slave Bluetooth channel is used for scanning and listening to Bluetooth broadcasts.

[0021] In a second aspect, the present invention further provides a computer-readable storage medium. The storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method is implemented.

[0022] In a third aspect, the present invention further provides an electronic terminal, including: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory so that the terminal executes the above-mentioned method.

[0023] The method, medium, and terminal for setting the parameters of an electric energy meter through Bluetooth broadcasting provided by the present invention have at least the following beneficial effects compared with the prior art:

[0024] The current method for setting parameters of an electric energy meter mainly uses RS485 or other wired methods for point-to-point parameter setting. The parameter setting process communicates with each electric energy meter on the production line in turn and sets parameters in turn. When there are many batch electric energy meters, it takes a long time, greatly affecting the production parameter setting efficiency, and at the same time, the cost is also relatively high. The process of the present invention is simple and the operation is convenient. Based on the Bluetooth broadcasting technology, the set parameter commands are broadcast from the Bluetooth tooling in the form of Bluetooth broadcasts. The electric energy meter receives the broadcast parameter setting command of the Bluetooth tooling, sets the parameters and saves them, changing the point-to-point parameter setting in production into simultaneous batch parameter setting, greatly improving the production parameter setting efficiency. Moreover, Bluetooth is a wireless technology, which can avoid wired plugging and wiring work, effectively reducing the cost in the parameter setting process. Description of the Drawings

[0025] In order to more clearly illustrate the solution of the present invention, the following will briefly introduce the drawings required for description in the embodiments. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0026] Figure 1 It is a flowchart of a method for setting the parameters of an electric energy meter through Bluetooth broadcasting provided by an embodiment of the present invention;

[0027] Figure 2 Schematic diagram of the Bluetooth broadcast parameter setting framework in a method for setting electricity meter parameters through Bluetooth broadcast provided by an embodiment of the present invention;

[0028] Figure 3 Schematic diagram of Bluetooth broadcast forwarding in a method for setting electricity meter parameters through Bluetooth broadcast provided by an embodiment of the present invention;

[0029] Figure 4 Schematic diagram of Bluetooth tooling relay broadcast forwarding in a method for setting electricity meter parameters through Bluetooth broadcast provided by an embodiment of the present invention;

[0030] Figure 5 Schematic diagram of the interaction between the electricity meter and the Bluetooth module in a method for setting electricity meter parameters through Bluetooth broadcast provided by an embodiment of the present invention;

[0031] Figure 6 Schematic diagram of the electricity meter receiving Bluetooth broadcast and decrypting parameter setting in a method for setting electricity meter parameters through Bluetooth broadcast provided by an embodiment of the present invention. Detailed implementation manners

[0032] To facilitate the understanding of the present invention, the present invention will be described more comprehensively below with reference to the relevant drawings. Preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, these embodiments are provided to make the understanding of the disclosure of the present invention more thorough and comprehensive.

[0033] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present invention belongs. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0034] The present invention provides a method for setting electricity meter parameters through Bluetooth broadcast, which is applied to the process of batch setting of electricity meter parameters. The method for setting electricity meter parameters through Bluetooth broadcast includes the following steps:

[0035] S10. Develop the data format of the power meter Bluetooth broadcast Payload for broadcast parameter setting recognition; S20. Enter the in-plant parameter setting state through the Bluetooth broadcast tooling by encrypting the broadcast command; S30. The host computer sends the protocol parameter setting command to the Bluetooth broadcast main tooling, and the Bluetooth broadcast main tooling encrypts the parameter setting command and then performs message broadcast; S40. Place several Bluetooth broadcast forwarding toolings with broadcast relay functions in the parameter setting network to forward the parameter setting content by broadcast relay; S50. The power meter scans and listens to the encrypted parameter setting broadcast message sent by the Bluetooth forwarding tooling, decrypts it, and sets the power meter parameters; S60. After the parameter setting is completed, exit the in-plant parameter setting state through the Bluetooth broadcast command.

[0036] The present invention can set parameters for power meters in batches, with high parameter setting efficiency and low cost.

[0037] In order to enable those skilled in the art of the present technology to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.

[0038] The present invention provides a method for setting power meter parameters through Bluetooth broadcast, which is applied to the process of batch setting of power meter parameters. In combination with Figures 1 to 5 , in the power meter production parameter setting link, all power meters are concentrated on the assembly line or in a local environment. The parameter setting command content is broadcast by the parameter setting Bluetooth tooling via Bluetooth. The power meter Bluetooth listens to the parameter setting broadcast content, parses the parameter setting command, and saves the parameters in the power meter. Among them, for the parameter setting Bluetooth tooling, the host computer parameter setting command is received by the Bluetooth main tooling, which is used as the first Bluetooth tooling for broadcast. Then, other Bluetooth toolings in the same network listen to the Bluetooth broadcast content in a fixed format and perform Bluetooth broadcast relay to extend the Bluetooth transmission distance of the production line so that all power meters can receive the parameter setting Bluetooth broadcast command.

[0039] For safety, before entering the Bluetooth broadcast parameter setting, the power meter needs to enter the in-plant parameter setting state, and the Bluetooth scan period of the power meter in the parameter setting state can be appropriately accelerated. Optionally, the in-plant parameter setting state can be entered through physical means such as short-circuiting a certain IO port or long pressing a key. In the embodiment of the present invention, the Bluetooth broadcast tooling with a special in-plant command is placed in the first link of the assembly line. After entering the parameter setting link, the power meter Bluetooth can enter the in-plant parameter setting state after listening to the in-plant parameter setting command, without manual wiring and intervention.

[0040] The parameter - setting host computer sets the parameter - setting protocol command to the Bluetooth parameter - setting main tooling through the USB serial port (the power meter Bluetooth tooling communicates with the host computer through the USB serial port, and it can also be other communication methods, such as the RS485 line, etc. Here, the USB serial port is taken as an example). The Bluetooth main tooling broadcasts the parameter - setting command in a fixed Bluetooth broadcast format. The Bluetooth main tooling supports at least one host connection for Bluetooth broadcasting. The Bluetooth broadcast format for parameter - setting is formatted data with protocol characteristics that are uniformly agreed upon.

[0041] Other Bluetooth toolings are Bluetooth toolings that support one master and one slave. The slave channel is responsible for scanning and listening for the parameter - setting broadcast message and broadcasting the broadcast message from the master channel, realizing the centralized broadcast forwarding so that all power meters in the parameter - setting state can monitor the parameter - setting Bluetooth broadcast message. The Bluetooth parameter - setting tooling can set a relatively large transmission power consumption. At the same time, considering the wireless signal transmission distance and cost, a Bluetooth parameter - setting tooling can be placed every certain distance, such as one every 8 to 10 meters. Also, in actual use, for the convenience of management, the Bluetooth main tooling also adopts a one - master - one - slave structure, so that the programs of all Bluetooth toolings can use the same version of the program.

[0042] The Bluetooth module of the power meter supports two masters and three slaves, continuously scans for Bluetooth broadcast messages with a predefined format, and reports them to the application layer of the power meter. The application layer parses the Bluetooth broadcast message, analyzes the parameter - setting protocol and content, and sets the parameters into the power meter.

[0043] After all parameters are set, for safety reasons, the power meter exits the Bluetooth broadcast parameter - setting state. Optionally, exiting the factory - internal parameter - setting state is also through the Bluetooth broadcast tooling with a special factory - exit command, which is placed in the last link of the production line. After parameter - setting is completed, the factory - internal parameter - setting state is exited.

[0044] Specifically, in combination with Figures 1 to 6 , in this embodiment, the method for setting power - meter parameters through Bluetooth broadcast includes the following steps:

[0045] S10. Formulate the power - meter Bluetooth broadcast Payload data format for broadcast parameter - setting identification, for broadcast parameter - setting identification.

[0046] Specifically, referring to Table 1, clarify the Bluetooth broadcast data format of each Bluetooth device in the power - meter Bluetooth broadcast parameter - setting network. The content of this broadcast data includes the device category code, broadcast counter, feature code, and 16 - byte power - meter protocol parameter - setting extended content data, which is used for the unified implementation of the power meter and Bluetooth tooling.

[0047] Table 1

[0048]

[0049]

[0050] A. Device class code: used to identify the parameter setting type in the Bluetooth network. In the present invention, the device class code of the electricity meter is C1, and the device class code of the Bluetooth tooling is C3, which is used for Bluetooth broadcast monitoring and management;

[0051] B. Broadcast counter: used to manage the Bluetooth tooling broadcast relay forwarding. The Bluetooth tooling will only update to a new broadcast packet for relay forwarding when it monitors a broadcast counter greater than the current one;

[0052] The Bluetooth broadcast counter of the main Bluetooth tooling for parameter setting starts from the first parameter setting command, and the broadcast counter increases sequentially. The Bluetooth tooling in the parameter setting environment monitors the Bluetooth broadcast message and judges the broadcast counter. Only when it monitors a broadcast counter greater than its own, will it update to a new broadcast packet for relay forwarding. After the broadcast parameter setting of the Nth command is completed, the parameter setting host computer issues the (N + 1)th parameter setting command to the main Bluetooth tooling for parameter setting. After receiving the setting command, the main Bluetooth tooling converts it into a Bluetooth broadcast command. At this time, the broadcast counter sent by the main Bluetooth tooling is N + 1. Since in the same network environment, the parameter setting tooling A may simultaneously monitor the Bluetooth broadcasts with broadcast counters of N (parameter setting tooling B) and N + 1 (main parameter setting tooling). At this time, the parameter setting tooling A considers the Bluetooth broadcast message with N + 1 to be new and updates it to the Bluetooth broadcast message with N + 1. Similarly, the parameter setting tooling B is also the same in the broadcast relay process.

[0053] In this embodiment, the broadcast counter is defined as two bytes; in some other embodiments, in actual use, it can be defined as a single byte according to requirements. After more than 256 commands, a rollover process is performed, and 1 byte is reserved for other extended function definitions. At the same time, when the electricity meter broadcast monitoring identifies that the broadcast counter has not changed, it is considered that the broadcast parameter setting command has not changed, and the same parameter does not need to be set repeatedly multiple times.

[0054] C. Feature code: represents the function and device features, and can be used for the function expansion of Bluetooth devices. This field can be combined with 16-byte extended content to form different functions; in this embodiment, this feature code is used to represent the features of broadcast data, such as the incoming factory command, outgoing factory command, parameter setting command, etc.

[0055] D. The extended content data can define different function contents according to different Bluetooth devices and requirements, and is used to implement more complex device functions or status transmissions. In this embodiment, it is used to transmit the incoming factory command, outgoing factory command, and parameter setting command. As shown in Table 2:

[0056] Table 2

[0057] Feature code Extended content Command content Function 0001 Factory entry command Factory entry password Enter the Bluetooth broadcast parameter setting state 0002 Factory exit command Factory exit password Exit the Bluetooth broadcast parameter setting state 0003 Parameter setting command Parameter setting content Set parameters

[0058] The extended content is in a 16-byte data format, and this data format is associated with the electricity meter communication protocol. Taking the domestic communication protocol setting and operation commands as an example:

[0059] The content format of the setting protocol in DL / T698.45 is as follows:

[0060] a. Setting protocol: SET+OAD+type+data, where the type may be single data content or composite type.

[0061] b. Operation protocol: ACTION+OMD+type+data, where the type may be single data content or composite type.

[0062] The content format of the setting protocol in DL / T645:

[0063] a. Setting protocol: SET+ID+data.

[0064] Whether it is DL / T698.45, DL / T645 or the overseas 62056 protocol, most of the parameters in the parameter setting protocols are set separately. Most of the individual parameters are less than 4-byte data. Some parameters may be composite parameters, but most of them will not exceed 10 bytes in total.

[0065] Furthermore, define the 16-byte extended content in the format of Table 3 below:

[0066] Table 3

[0067]

[0068]

[0069] The data identifier is OAD in DL / T698.45 and ID in DL / T645. The parameter is the data content without the encoding format. Because there is a data identifier, the format of the parameter is basically determined. To save the length of the broadcast data, the encoding format of DL / T698.45 is removed from the parameter content. In this embodiment, a length is added for parameter legality judgment. In this embodiment, with the length information, the parameter field can have at most 11-byte data. If it is less than 11 bytes, 0 can be filled at the end. This embodiment mainly describes using the DL / T698.45 protocol.

[0070] After the Bluetooth master tooling receives the parameter setting of the host computer standard protocol, it removes the protocol format (such as link layer messages, addresses, services, etc. that are irrelevant to the parameters), and retains the protocol identifier content, length, and parameter content for broadcasting as the extended content in the broadcast message.

[0071] Some composite parameter protocols may include several parameters at the same time, and the parameter content is relatively long. In this embodiment, the protocol can be split in the parameter setting scheme of the host computer and set separately. For example, for the following protocol, if the parameter setting is 401F0200, after removing the coding information, there are still 12 bytes, which exceeds 11 bytes. Then this protocol can be split into three protocols and sent separately, namely 401F0201, 401F0202, and 401F0203. Each parameter has only 4 bytes and can be used for broadcast parameter setting. As shown in Table 4:

[0072] Table 4

[0073]

[0074] In this embodiment, most of the parameters of the electric energy meter can be set. Limited by the length of the broadcast message in the Bluetooth protocol, the parameter setting of some very long format parameters (such as the time period table) cannot be realized in this embodiment. If parameter setting is required, after most of the parameters are set by Bluetooth broadcast in this embodiment, further separate parameter setting can be implemented.

[0075] For data security and production link security, the 16-byte extended content data is encrypted to avoid some parameter setting attack behaviors. For example, the encrypted message can use the MAC address of the Bluetooth tooling as the encryption factor or key, and further use the symmetric encryption algorithm with the 16-byte extended content plaintext data to generate encrypted data. The encrypted data can be decrypted through the symmetric decryption algorithm to obtain the 16-byte extended content plaintext data for electric energy meter command parsing and parameter setting. A specific encryption algorithm can be selected according to the encryption protection level to meet the security requirements of a symmetric encryption algorithm.

[0076] Furthermore, in this embodiment, in step S10, the Payload data format of the electric energy meter Bluetooth broadcast includes a device category code for identifying the device type in the Bluetooth network, a broadcast counter for managing the relay forwarding of the Bluetooth broadcast tooling, a feature code indicating functions and device characteristics, and 16-byte extended content data for implementing complex device functions or status transmission. The 16-byte extended content data format is defined as data identifier + length + parameter content without coding. After the Bluetooth broadcast master tooling receives the protocol parameter setting command from the host computer, it removes the protocol format (such as link layer message, address, service, etc. that are irrelevant to the parameters), and retains the protocol identifier content, length, and parameter content as the extended content in the broadcast message for broadcasting.

[0077] Further, in this embodiment, during Bluetooth broadcasting, for security reasons, the 16-byte extended content is further encrypted. The Bluetooth MAC address is used as the encryption factor or key for symmetric encryption to obtain the encrypted broadcast message. The broadcast counter in the broadcast Payload is used by the Bluetooth tooling to identify a new parameter setting command, and the Bluetooth broadcast message is updated for broadcast relay. The signature in the broadcast Payload is used to identify the specific command content in the Bluetooth broadcast. The values 0001, 0002, and 0003 represent the in-plant command, out-of-plant command, and parameter setting command respectively.

[0078] S20. Enter the in-plant parameter setting state through the Bluetooth broadcast tooling to encrypt the broadcast command. The Bluetooth broadcast tooling supports one master and one slave Bluetooth. The master Bluetooth channel is used for Bluetooth broadcasting, and the slave Bluetooth channel is used for scanning and listening to Bluetooth broadcasts.

[0079] S30. The host computer sends the protocol parameter setting command to the master Bluetooth broadcast tooling, and the master Bluetooth broadcast tooling encrypts the parameter setting command and then broadcasts the message.

[0080] S40. Place several Bluetooth broadcast forwarding toolings with broadcast relay functions in the parameter setting network, and the broadcast relay forwards the parameter setting content.

[0081] S50. The electricity meter scans and listens to the encrypted parameter setting broadcast message sent by the Bluetooth forwarding tooling, decrypts it, and sets the electricity meter parameters.

[0082] Specifically, in this embodiment, step S50 specifically includes: specifying the Bluetooth device and the Bluetooth broadcast reporting format listened to by the Bluetooth module. The content filtered by the Bluetooth module listening to the broadcast device category includes the Bluetooth MAC address and the device category. The Bluetooth broadcast content reported by the Bluetooth module to the electricity meter application layer includes the MAC address, signature, broadcast counter, and 16-byte extended content. The Bluetooth listening device category is the device category C3 of the Bluetooth broadcast tooling.

[0083] Specifically, filter out irrelevant Bluetooth broadcasts, transfer the Bluetooth parameter setting content of the broadcast from the Bluetooth module to the electricity meter application program, and the electricity meter application program performs the final parameter setting action.

[0084] Specifically, specify the Bluetooth device category and the Bluetooth MAC address listened to by the Bluetooth module, and report the Bluetooth broadcast content that meets the broadcast parameter setting format as monitored, as shown in Table 5:

[0085] Table 5

[0086]

[0087] a. Specify the Bluetooth module broadcast monitoring device: The electric energy meter application notifies the Bluetooth module to monitor the Bluetooth slave device with the specified MAC address and specific device category. If the Bluetooth device and MAC address to be monitored are not specified, the Bluetooth module will monitor all surrounding Bluetooth devices and report a lot of broadcast data, affecting the working performance of the Bluetooth module and application. In this embodiment, the device category of the electric energy meter and Bluetooth tooling monitoring filter is C3, that is, only the broadcast message of the Bluetooth tooling that conforms to the unified agreed format of the present invention is monitored, and then the broadcast message with the parameters is reported to the electric energy meter application for processing. In order to facilitate future expansion, the monitored device and MAC are defined in array format, that is, the same type of device and multiple MAC addresses can be monitored at the same time. In the present invention, only the device category of C3 is temporarily monitored.

[0088] b. Broadcast reported data content: Unify the data content format reported by the Bluetooth module to the power meter application. When reporting, the power meter can report multiple groups (array) of broadcast data at the same time to reduce the number of interactions between the application and the driver. The application decrypts and parses the collected feature codes, broadcast counters, MAC addresses, and broadcast specified data (see broadcast Payload format) to obtain the parameter setting commands and content, and sets the parameters to the power meter for storage. Among them, the Bluetooth parameter setting tooling, because it is only responsible for broadcast relay forwarding, can quickly scan the reported data content and update the broadcast data in time. The power meter does not need to process the broadcast message cycle very quickly because it needs to maintain metering work.

[0089] S60: After the parameter setting is completed, exit the factory parameter setting state through a Bluetooth broadcast command.

[0090] Furthermore, in this embodiment, considering that Bluetooth broadcasting is not 100% reliable, in order to check the integrity of Bluetooth broadcasting parameters, the parameter contents of all Bluetooth broadcasting parameters can be subjected to CRC calculation to obtain parameter CRC, which is displayed in real time on the LCD screen of the electric energy meter for parameter integrity and correctness checking. A parameter CRC protocol can also be customized to facilitate subsequent checking.

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

[0092] An embodiment of the present invention further provides an electronic terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes any one of the methods in this embodiment.

[0093] For the computer-readable storage medium in this embodiment, those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by hardware related to a computer program. The aforementioned computer program can be stored in a computer-readable storage medium. When this program is executed, it performs the steps including those in the above method embodiments; and the aforementioned storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0094] The electronic terminal provided in this embodiment includes a processor, a memory, a transceiver, and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store a computer program, the communication interface is used for communication, and the processor and the transceiver are used to run the computer program so that the electronic terminal executes each step of the above method.

[0095] Compared with the prior art, for the method, medium, and terminal for setting the parameters of an electric energy meter by Bluetooth broadcast described in the above embodiments, the current method for setting parameters of an electric energy meter mainly uses RS485 or other wired methods for point-to-point parameter setting. The parameter setting process communicates with each electric energy meter on the production line in sequence and sets parameters in sequence. When there are a large number of batch electric energy meters, it takes a long time, greatly affecting the production parameter setting efficiency, and at the same time, the cost is also relatively high. The process of the present invention is simple and convenient to operate. Based on Bluetooth broadcast technology, the set parameter command is broadcast from the Bluetooth tooling in the form of Bluetooth broadcast. The electric energy meter receives the broadcast parameter setting command of the Bluetooth tooling, sets the parameters and saves them, changing the point-to-point parameter setting in production to simultaneous batch parameter setting, greatly improving the production parameter setting efficiency. Moreover, Bluetooth is a wireless technology, which can avoid wired plugging and wiring work, effectively reducing the cost in the parameter setting process.

[0096] Obviously, the embodiments described above are only the preferred embodiments of the present invention, rather than all embodiments. The preferred embodiments of the present invention are shown in the drawings, but do not limit the patent scope of the present invention. The present invention can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, they can still modify the technical solutions described in the foregoing specific embodiments, or perform equivalent replacements for some of the technical features. Any equivalent structure directly or indirectly using the content of the specification and drawings of the present invention in other related technical fields is equally within the scope of the patent protection of the present invention.

Claims

1. A method for setting electric energy meter parameters via Bluetooth broadcast, characterized in that: The following steps are involved: S10. Formulate the Bluetooth broadcast Payload data format of the electric energy meter for broadcast parameter identification; S20, enter the factory parameter setting state through the Bluetooth broadcast tooling encrypted broadcast command; S30, the host computer sends the protocol parameter setting command to the Bluetooth broadcast main tooling, and the Bluetooth broadcast main tooling encrypts the parameter setting command and then broadcasts the message; S40, placing a number of Bluetooth broadcast forwarding tools with broadcast relay function in the parameter setting network, and forwarding the parameter setting content through broadcast relay; S50, the electric energy meter scans and monitors the encrypted parameter setting broadcast message sent by the Bluetooth forwarding tooling, and sets the electric energy meter parameters after decryption; S60: After the parameter setting is completed, exit the factory parameter setting state through a Bluetooth broadcast command.

2. A method for setting electric energy meter parameters through Bluetooth broadcasting according to claim 1, characterized in that: In step S10, the energy meter Bluetooth broadcast Payload data format includes a device category code for identifying the device type in the Bluetooth network, a broadcast counter for managing the Bluetooth broadcast tooling relay forwarding, a feature code representing the function and device characteristics, and a 16-byte extended content data for implementing complex device function or status transmission.

3. The method for setting electric energy meter parameters through Bluetooth broadcasting according to claim 2, characterized in that: The 16-byte extended content data format is defined as data identifier + length + non-encoded parameter content. After the Bluetooth broadcast main tool receives the protocol parameter setting command from the host computer, the protocol format is removed, and the protocol identifier content, length and parameter content are retained, and broadcast as extended content in the broadcast message.

4. The method for setting electric energy meter parameters through Bluetooth broadcasting according to claim 3, characterized in that: During Bluetooth broadcasting, the 16-byte extended content is encrypted, and the Bluetooth MAC address is used as an encryption factor or key to perform symmetric encryption to obtain an encrypted broadcast message.

5. The method for setting electric energy meter parameters through Bluetooth broadcasting according to claim 2, characterized in that: The broadcast counter in the broadcast payload is used by the Bluetooth tool to identify it as a new parameter setting command, update the Bluetooth broadcast message for broadcast relay, the device category code of the electric energy meter is C1, and the device category code of the Bluetooth broadcast tool is C3.

6. The method for setting electric energy meter parameters through Bluetooth broadcasting according to claim 2, characterized in that: The value 0001 of the feature code is a factory entry command, the value 0002 is a factory exit command, and the value 0003 is a parameter setting command.

7. The method for setting electric energy meter parameters through Bluetooth broadcasting according to claim 2, characterized in that: The step S50 specifically includes: specifying the Bluetooth device and Bluetooth broadcast reporting format that the Bluetooth module broadcasts and monitors, the content of the Bluetooth module monitoring broadcast device category filtering includes the Bluetooth MAC address and device category, the Bluetooth broadcast content reported by the Bluetooth module to the electric energy meter application layer includes the MAC address, feature code, broadcast counter and 16-byte extension content, and the Bluetooth monitoring device category is the device category C3 of the Bluetooth broadcast tooling.

8. The method for setting electric energy meter parameters through Bluetooth broadcasting according to claim 1, characterized in that: The Bluetooth broadcast tooling supports one master and one slave Bluetooth, the master Bluetooth channel is used for Bluetooth broadcasting, and the slave Bluetooth channel is used for scanning codes to monitor Bluetooth broadcasting.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

10. An electronic terminal, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the terminal executes the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Automatic parameter setting module of electric energy meter

    CN219417716U