Bluetooth-based smart grid communication method, device, system, electronic device, and storage medium
By introducing the PAwR function and TDMA mechanism of Bluetooth 5.4 into the smart grid, the connection limit and channel congestion problems of traditional Bluetooth communication methods in electricity meter data collection are solved, and efficient and reliable large-scale electricity meter data collection is achieved.
Patent Information
- Application Number
- CN202411410586.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-09-12
- Estimated Expiration
- 2044-10-10
AI Technical Summary
Traditional Bluetooth communication methods are unable to meet the efficiency and reliability requirements of large-scale electricity meter data collection in smart grids due to the limited number of connections and crowded broadcast channels.
It adopts the Periodic Advertisement with Response (PAwR) function of Bluetooth 5.4, establishes synchronization between the power grid communication master and slave devices through PAwR events, uses the time division multiple access (TDMA) mechanism for data transmission, realizes one-to-many two-way communication, and avoids the limitation of the number of traditional Bluetooth connections.
It realizes efficient and reliable two-way communication between the main power grid communication device and thousands of slave devices, breaking through the limitation of the number of traditional Bluetooth connections and improving the efficiency and reliability of data collection.
Smart Images

Figure CN119277474B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of smart grid communication technology, and in particular to a Bluetooth-based smart grid communication method, device, system, electronic device, and storage medium. Background Art
[0002] The widespread adoption of IoT technology in power systems has significantly advanced the intelligentization of power grids. Traditional electricity meters mostly use infrared communication technology for data transmission. However, infrared communication has limitations such as strong directionality, susceptibility to environmental interference, and short communication distances, making it difficult to meet the efficient and reliable data transmission requirements of modern smart grids. Therefore, in recent years, State Grid's IoT-based electricity meters have gradually adopted Bluetooth technology to replace infrared communication, making it the mainstream method for meter data transmission.
[0003] Bluetooth technology, with its short range, low power consumption, high security, and ease of integration, has been widely used in the Internet of Things (IoT). In State Grid's IoT meters, each electricity meter has a built-in Bluetooth module, enabling external devices (such as meter readers and circuit breaker controllers) to communicate with the meter via Bluetooth, enabling remote meter reading and circuit breaker control, significantly improving the operational efficiency and management of the power system.
[0004] However, with the deepening of smart grid construction, higher requirements have been placed on the efficiency and reliability of electricity meter data collection. Traditional Bluetooth communication methods are mainly based on Bluetooth connections, and data is transmitted on the data channel after the connection is established. However, due to the RAM resources of the Bluetooth internal processor, a master device can usually only connect to a limited number of slave devices (generally around 10). The State Grid's requirement for Bluetooth connections for IoT meters is two masters and three slaves. That is, a device can connect to up to three Bluetooth slave devices when acting as a Bluetooth master device, and can be connected to up to two Bluetooth master devices when acting as a Bluetooth slave device. This greatly limits the number of electricity meters that a single Bluetooth master device can simultaneously connect and manage. When conducting large-scale electricity meter data collection, this connection method obviously cannot meet the needs, resulting in low data collection efficiency and even the possibility of missing some data due to insufficient connections.
[0005] In practical applications, a single smart meter box or rail meter may need to connect to as many as 32 or more energy meters for real-time data collection. Using traditional Bluetooth connectivity would be impractical due to the limited number of connections. Furthermore, even using Bluetooth broadcasting for data collection would face challenges such as congested broadcast channels, frequent interference, and low communication reliability, making it difficult to meet the demands of real-time transmission of large amounts of data.
[0006] When faced with complex scenarios that require processing large amounts of data communications, how to improve the efficiency and reliability of smart grid communications based on Bluetooth is an urgent problem to be solved. Summary of the Invention
[0007] In order to solve the problems in the related art, the embodiments of the present disclosure provide a Bluetooth-based smart grid communication method, device, system, electronic device and storage medium.
[0008] In a first aspect, an embodiment of the present disclosure provides a Bluetooth-based smart grid communication system, the communication system comprising: a grid communication master device and a grid communication slave device, wherein:
[0009] The power grid communication master device is configured to: after establishing PAwR synchronization with the power grid communication slave device, send a service operation data message to the power grid communication slave device via a PAwR event; wherein the PAwR event includes one or more PAwR sub-events, and when sending the service operation data message to the power grid communication slave device via the PAwR event, send a specified service operation data message to one or more specified power grid communication slave devices via the PAwR sub-event, and receive service response data corresponding to the specified service operation data message returned by the one or more specified power grid communication slave devices via the PAwR sub-event;
[0010] The power grid communication slave device is configured to: obtain the business operation data message sent by the power grid communication master device through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and according to the short address of the power grid communication slave device in the local configuration information, send the business response data corresponding to the business operation data message to the power grid communication master device through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information in a time division multiple access (TDMA) manner; wherein the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when conducting Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device.
[0011] According to an embodiment of the present disclosure, the power grid communication slave device saves the local configuration information, and the local configuration information also includes: the ID number of the power grid communication master device; the local configuration information is configured by the power grid communication master device to the power grid communication slave device according to a locally maintained configuration information mapping table, and the configuration information mapping table includes the MAC address of the power grid communication slave device, and configuration information corresponding one-to-one to the MAC address of the power grid communication slave device, and the configuration information includes: the group number of the power grid communication slave device, the short address of the power grid communication slave device and the ID number of the power grid communication master device.
[0012] According to an embodiment of the present disclosure, the power grid communication master device configures the power grid communication slave device according to a locally maintained configuration information mapping table in the following manner:
[0013] Establishing a BLE GATT connection with the power grid communication slave device, comprising: initiating a BLE GATT connection request to the power grid communication slave device; and receiving a BLE GATT connection response returned by the power grid communication slave device;
[0014] After successfully establishing a BLE GATT connection, obtaining the MAC address of the power grid communication slave device based on the BLE GATT connection, then searching the configuration information mapping table for the configuration information corresponding to the MAC address of the power grid communication slave device, sending the configuration information corresponding to the MAC address of the power grid communication slave device to the power grid communication slave device, and receiving a reply confirmation message from the power grid communication slave device after receiving the configuration information;
[0015] The grid communication slave device receives the configuration information and saves the received configuration information as local configuration information.
[0016] According to an embodiment of the present disclosure, the power grid communication master device configures the power grid communication slave device according to a locally maintained configuration information mapping table in the following manner:
[0017] Broadcasting the configuration information mapping table via Bluetooth broadcasting, so that a power grid communication slave device that receives the configuration information mapping table searches the configuration information mapping table and obtains configuration information that matches its own MAC address; wherein the Bluetooth broadcasting includes: Bluetooth standard broadcasting, Bluetooth extended broadcasting, or Bluetooth periodic broadcasting;
[0018] The power grid communication slave device saves the acquired configuration information as local configuration information.
[0019] According to an embodiment of the present disclosure, after establishing PAwR synchronization with the power grid communication slave device, sending the service operation data message to the power grid communication slave device through a PAwR event includes:
[0020] An extended broadcast indication message containing first synchronization information is sent on the primary broadcast physical channel, and then, based on the first synchronization information, an auxiliary broadcast indication message containing second synchronization information and third synchronization information is sent on the designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device; thereafter, based on the second synchronization information and the third synchronization information, the business operation data message is sent to the power grid communication slave device through a PAwR event on the designated data channel.
[0021] According to an embodiment of the present disclosure, sending the extended broadcast indication message including the first synchronization information on the primary broadcast physical channel includes:
[0022] Sending an extended broadcast indication ADV_EXT_IND message on a primary broadcast physical channel according to a preset broadcast cycle interval, where the AuxPtr field of the ADV_EXT_IND message includes the first synchronization information, and the first synchronization information includes: a sending time of the auxiliary broadcast indication message, channel information and PHY information for sending the auxiliary broadcast indication message; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message;
[0023] The sending, based on the first synchronization information, an auxiliary broadcast indication message including second synchronization information and third synchronization information on a designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device includes:
[0024] An auxiliary broadcast indication AUX_ADV_IND message is sent at the sending time indicated by the first synchronization information and on the secondary broadcast physical channel corresponding to the channel information. The SyncInfo field of the AUX_ADV_IND message includes the second synchronization information, and the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the ACAD field of the AUX_ADV_IND message includes the third synchronization information, and the third synchronization information includes: PAwR sub-event interval, PAwR sub-event number, PAwR sub-event response slot delay and PAwR sub-event response slot length.
[0025] According to an embodiment of the present disclosure, the auxiliary synchronization indication message includes: an auxiliary synchronization sub-event indication AUX_SYNC_SUBEVENT_IND message, each PAwR sub-event includes an AUX_SYNC_SUBEVENT_IND message and one or more TDMA response time slots, the PAwR sub-event response time slot duration is used to describe the duration of the TDMA response time slot, and the content of the AUX_SYNC_SUBEVENT_IND message includes: the ID of the power grid communication master device, the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and the specified service operation data message;
[0026] The sending, based on the second synchronization information and the third synchronization information, the service operation data message to the power grid communication slave device on a designated data channel through a PAwR event, includes:
[0027] sending, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information; sending, when sending each PAwR event, one or more PAwR sub-events according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; and sending, when sending each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message at the start of the PAwR sub-event response slot delay indicated by the third synchronization information;
[0028] The receiving the service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices includes:
[0029] When sending each PAwR sub-event, after the PAwR sub-event response time slot delay indicated by the third synchronization information ends, the business response data corresponding to the specified business operation data message is received in the one or more TDMA response time slots; wherein, one TDMA response time slot corresponds to the business response data corresponding to the specified business operation data message returned by a power grid communication slave device with a specified group number and short address.
[0030] According to an embodiment of the present disclosure, before the grid communication slave device obtains the service operation data message sent by the grid communication master device through the PAwR sub-event corresponding to the group number of the grid communication slave device in the local configuration information, it is further configured to: establish PAwR synchronization with the grid communication master device, including:
[0031] The power grid communication slave device scans the extended broadcast indication ADV_EXT_IND message on the primary broadcast physical channel, and after receiving the ADV_EXT_IND message, parses the AuxPtr field of the ADV_EXT_IND message to obtain the first synchronization information in the AuxPtr field;
[0032] Configure the local physical layer according to the PHY information in the first synchronization information to match the transmission mode of the AUX_ADV_IND message; scan the AUX_ADV_IND message at the sending time indicated by the first synchronization information and the channel information for sending the auxiliary broadcast indication message in the first synchronization information, and after receiving the AUX_ADV_IND message, parse the SyncInfo field and the ACAD field of the AUX_ADV_IND message to obtain the second synchronization information in the SyncInfo field and the third synchronization information in the ACAD field;
[0033] receiving, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information;
[0034] Each PAwR sub-event in the one or more PAwR events is received according to the third synchronization information to synchronize with the grid communication master device.
[0035] According to an embodiment of the present disclosure, the local configuration information further includes: an ID number of the power grid communication master device; and receiving each PAwR sub-event in the one or more PAwR events according to the third synchronization information to synchronize with the power grid communication master device includes:
[0036] When receiving each PAwR event, one or more PAwR sub-events are received according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; when receiving each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message is received at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information;
[0037] The method further comprises: obtaining a service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and sending service response data corresponding to the service operation data message to the power grid communication master device through the received PAwR sub-event in a time division multiple access (TDMA) manner according to the short address of the power grid communication slave device in the local configuration information.
[0038] After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with the ID number of the grid communication master device and the group number of the grid communication slave device in the local configuration information; if they are consistent, taking out the designated service operation data message carried in the AUX_SYNC_SUBEVENT_IND message;
[0039] Generate business response data corresponding to the specified business operation data message according to the specified business operation data message;
[0040] The service response data is encapsulated into an AUX_SYNC_SUBEVENT_RESP message, and the AUX_SYNC_SUBEVENT_RESP message carrying the service response data is sent to the grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the grid communication slave device in the local configuration information.
[0041] In a second aspect, an embodiment of the present disclosure provides a Bluetooth-based smart grid communication method, the communication method being applied to a grid communication master device in a smart grid communication system, the communication system comprising: a grid communication master device and a grid communication slave device, the communication method comprising:
[0042] After establishing PAwR synchronization with the power grid communication slave device, sending the service operation data message to the power grid communication slave device through a PAwR event;
[0043] Among them, the PAwR event includes one or more PAwR sub-events. When the business operation data message is sent to the power grid communication slave device through the PAwR event, the specified business operation data message is sent to one or more specified power grid communication slave devices through the PAwR sub-event, and the business response data corresponding to the specified business operation data message returned by the one or more specified power grid communication slave devices is received through the PAwR sub-event.
[0044] According to an embodiment of the present disclosure, after establishing PAwR synchronization with the power grid communication slave device, sending the service operation data message to the power grid communication slave device through a PAwR event includes:
[0045] An extended broadcast indication message containing first synchronization information is sent on the primary broadcast physical channel, and then, based on the first synchronization information, an auxiliary broadcast indication message containing second synchronization information and third synchronization information is sent on the designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device; thereafter, based on the second synchronization information and the third synchronization information, the business operation data message is sent to the power grid communication slave device through a PAwR event on the designated data channel.
[0046] According to an embodiment of the present disclosure, sending the extended broadcast indication message including the first synchronization information on the primary broadcast physical channel includes:
[0047] Sending an extended broadcast indication ADV_EXT_IND message on a primary broadcast physical channel according to a preset broadcast cycle interval, where the AuxPtr field of the ADV_EXT_IND message includes the first synchronization information, and the first synchronization information includes: a sending time of the auxiliary broadcast indication message, channel information and PHY information for sending the auxiliary broadcast indication message; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message;
[0048] The sending, based on the first synchronization information, an auxiliary broadcast indication message including second synchronization information and third synchronization information on a designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device includes:
[0049] An auxiliary broadcast indication AUX_ADV_IND message is sent at the sending time indicated by the first synchronization information and on the secondary broadcast physical channel corresponding to the channel information. The SyncInfo field of the AUX_ADV_IND message includes the second synchronization information, and the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the ACAD field of the AUX_ADV_IND message includes the third synchronization information, and the third synchronization information includes: PAwR sub-event interval, PAwR sub-event number, PAwR sub-event response slot delay and PAwR sub-event response slot length.
[0050] According to an embodiment of the present disclosure, the auxiliary synchronization indication message includes: an auxiliary synchronization sub-event indication AUX_SYNC_SUBEVENT_IND message, each PAwR sub-event includes an AUX_SYNC_SUBEVENT_IND message and one or more TDMA response time slots, the PAwR sub-event response time slot duration is used to describe the duration of the TDMA response time slot, and the content of the AUX_SYNC_SUBEVENT_IND message includes: the ID of the power grid communication master device, the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and the specified service operation data message;
[0051] The sending, based on the second synchronization information and the third synchronization information, the service operation data message to the power grid communication slave device on a designated data channel through a PAwR event, includes:
[0052] sending, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information; sending, when sending each PAwR event, one or more PAwR sub-events according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; and sending, when sending each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message at the start of the PAwR sub-event response slot delay indicated by the third synchronization information;
[0053] The receiving the service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices includes:
[0054] When sending each PAwR sub-event, after the PAwR sub-event response time slot delay indicated by the third synchronization information ends, the business response data corresponding to the specified business operation data message is received in the one or more TDMA response time slots; wherein, one TDMA response time slot corresponds to the business response data corresponding to the specified business operation data message returned by a power grid communication slave device with a specified group number and short address.
[0055] According to an embodiment of the present disclosure, the first synchronization information, the second synchronization information, and the third synchronization information are determined in the following manner:
[0056] Acquire description information of the service operation data message, where the description information of the service operation data message includes: byte length of the service operation data message and priority of the service operation data message;
[0057] Obtaining device performance parameters of the power grid communication slave device and current transmission network condition data, wherein the transmission network condition data includes: network delay, packet loss rate, network signal strength and / or interference data, and the device performance parameters include: device type and / or processing speed and / or response time;
[0058] The description information of the business operation data message, the equipment performance parameters of the power grid communication slave device, and the current transmission network condition data are input into a pre-trained neural network model, and the neural network model is used to predict and output the first synchronization information, the second synchronization information, and the third synchronization information based on the description information of the business operation data message, the equipment performance parameters of the power grid communication slave device, and the current transmission network condition data.
[0059] According to an embodiment of the present disclosure, the neural network model is trained in the following manner:
[0060] Collecting sending records of historical business operation data messages, the sending records including: description information of the historical business operation data messages, device performance parameters and transmission network condition data of the power grid communication slave device that receives the historical business operation data messages, first synchronization information, second synchronization information, and third synchronization information used to send the historical business operation data messages, and sending success rates and response times corresponding to the first synchronization information, second synchronization information, and third synchronization information used to send the historical business operation data messages;
[0061] Using the description information of the historical business operation data message, the device performance parameters of the power grid communication slave device that receives the historical business operation data message, and the transmission network condition data as input features of the neural network model, using the first synchronization information, the second synchronization information, and the third synchronization information used to send the historical business operation data message as output features of the neural network model, and using the sending success rate and response time corresponding to the first synchronization information, the second synchronization information, and the third synchronization information used to send the historical business operation data message as evaluation indicators for evaluating the prediction effect of the neural network model, which are used to compare with the first synchronization information, the second synchronization information, and the third synchronization information output by the neural network model during the training process, so as to adjust the parameters of the neural network model through a backpropagation algorithm;
[0062] The neural network model is trained using the sending records of the historical business operation data messages.
[0063] In a third aspect, an embodiment of the present disclosure provides a Bluetooth-based smart grid communication method, which is applied to a grid communication slave device in a smart grid communication system. The communication system includes: a grid communication master device and a grid communication slave device. The communication method includes:
[0064] The business operation data message sent by the power grid communication master device is obtained through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and according to the short address of the power grid communication slave device in the local configuration information, the business response data corresponding to the business operation data message is sent to the power grid communication master device in a time division multiple access TDMA manner through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information; wherein, the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when conducting Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device.
[0065] According to an embodiment of the present disclosure, before obtaining the service operation data message sent by the grid communication master device through the PAwR sub-event corresponding to the group number of the grid communication slave device in the local configuration information, the communication method further includes: establishing PAwR synchronization with the grid communication master device, including:
[0066] The power grid communication slave device scans the extended broadcast indication ADV_EXT_IND message on the primary broadcast physical channel, and after receiving the ADV_EXT_IND message, parses the AuxPtr field of the ADV_EXT_IND message to obtain the first synchronization information in the AuxPtr field; the first synchronization information includes: the sending time of the auxiliary broadcast indication message, the channel information and PHY information of the auxiliary broadcast indication message;
[0067] configuring a local physical layer according to the PHY information in the first synchronization information to match the transmission mode of the AUX_ADV_IND message; scanning the AUX_ADV_IND message on the secondary broadcast physical channel corresponding to the sending time indicated by the first synchronization information and the channel information for sending the auxiliary broadcast indication message according to the first synchronization information; after receiving the AUX_ADV_IND message, parsing the SyncInfo field and the ACAD field of the AUX_ADV_IND message to obtain the second synchronization information in the SyncInfo field and the third synchronization information in the ACAD field; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message; the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the third synchronization information includes: PAwR sub-event interval, number of PAwR sub-events, PAwR sub-event response slot delay and PAwR sub-event response slot duration;
[0068] receiving, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information;
[0069] Each PAwR sub-event in the one or more PAwR events is received according to the third synchronization information to synchronize with the grid communication master device.
[0070] According to an embodiment of the present disclosure, the local configuration information further includes: an ID number of the power grid communication master device; and receiving each PAwR sub-event in the one or more PAwR events according to the third synchronization information to synchronize with the power grid communication master device includes:
[0071] When receiving each PAwR event, one or more PAwR sub-events are received according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; when receiving each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message is received at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information;
[0072] The method includes: obtaining a service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and sending service response data corresponding to the service operation data message to the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information in a time division multiple access (TDMA) manner according to the short address of the power grid communication slave device in the local configuration information.
[0073] After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with the ID number of the grid communication master device and the group number of the grid communication slave device in the local configuration information; if they are consistent, taking out the designated service operation data message carried in the AUX_SYNC_SUBEVENT_IND message;
[0074] Generate business response data corresponding to the specified business operation data message according to the specified business operation data message;
[0075] The service response data is encapsulated into an AUX_SYNC_SUBEVENT_RESP message, and the AUX_SYNC_SUBEVENT_RESP message carrying the service response data is sent to the grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the grid communication slave device in the local configuration information.
[0076] According to an embodiment of the present disclosure, the power grid communication slave device stores the local configuration information, and the local configuration information also includes: the ID number of the power grid communication master device; the local configuration information is configured by the power grid communication master device to configure the power grid communication slave device according to a locally maintained configuration information mapping table, and the configuration information mapping table includes the MAC address of the power grid communication slave device, and configuration information corresponding one-to-one to the MAC address of the power grid communication slave device, and the configuration information includes: the group number to which the power grid communication slave device belongs, the short address of the power grid communication slave device, and the ID number of the power grid communication master device.
[0077] According to an embodiment of the present disclosure, the power grid communication master device configures the power grid communication slave device according to a locally maintained configuration information mapping table in the following manner:
[0078] Establishing a BLE GATT connection with the power grid communication slave device, comprising: initiating a BLE GATT connection request to the power grid communication slave device; and receiving a BLE GATT connection response returned by the power grid communication slave device;
[0079] After successfully establishing a BLE GATT connection, the MAC address of the power grid communication slave device is obtained based on the BLE GATT connection, and then the configuration information corresponding to the MAC address of the power grid communication slave device is searched in the configuration information mapping table, the configuration information corresponding to the MAC address of the power grid communication slave device is sent to the power grid communication slave device, and a reply confirmation message from the power grid communication slave device after receiving the configuration information is received.
[0080] According to an embodiment of the present disclosure, the power grid communication master device configures the power grid communication slave device according to a locally maintained configuration information mapping table in the following manner:
[0081] The configuration information mapping table is broadcasted by Bluetooth broadcasting, so that the power grid communication slave device that receives the configuration information mapping table searches in the configuration information mapping table and obtains the configuration information matching its own MAC address; wherein, the Bluetooth broadcast includes: Bluetooth standard broadcasting, Bluetooth extended broadcasting or Bluetooth periodic broadcasting.
[0082] In a fourth aspect, an embodiment of the present disclosure provides a Bluetooth-based smart grid communication device, wherein the communication device is provided in a grid communication master device in a smart grid communication system, wherein the communication system includes: a grid communication master device and a grid communication slave device, and the communication device includes:
[0083] a service operation data message sending module, configured to send the service operation data message to the power grid communication slave device via a PAwR event after establishing PAwR synchronization with the power grid communication slave device; wherein the PAwR event includes one or more PAwR sub-events, and when the service operation data message is sent to the power grid communication slave device via the PAwR event, a specified service operation data message is sent to one or more specified power grid communication slave devices via the PAwR sub-events;
[0084] The service operation data message response receiving module is configured to receive service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices through the PAwR sub-event.
[0085] In a fifth aspect, an embodiment of the present disclosure provides a Bluetooth-based smart grid communication device, wherein the communication device is provided in a grid communication slave device in a smart grid communication system, wherein the communication system includes: a grid communication master device and a grid communication slave device, and the communication device includes:
[0086] a service operation data message receiving module, configured to obtain the service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information;
[0087] The business operation data message response sending module is configured to send the business response data corresponding to the business operation data message to the power grid communication master device in a time division multiple access (TDMA) manner through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information according to the short address of the power grid communication slave device in the local configuration information; wherein the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when conducting Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device.
[0088] In the sixth aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the communication method described in any one of the second and third aspects.
[0089] In a seventh aspect, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the communication method described in any one of the second and third aspects is implemented.
[0090] In an eighth aspect, an embodiment of the present disclosure provides a computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, it implements the communication method described in any one of the second and third aspects of the claims.
[0091] According to the technical solution provided by the embodiment of the present disclosure, by integrating a Bluetooth module supporting the PAwR function into a power grid device (such as a power grid communication master device and a power grid communication slave device), the power grid communication master device sends configuration information containing parameters such as a group number and a short address to the power grid communication slave device. When the power grid communication master device sends a business operation data message to the power grid communication slave device, the power grid communication master device uses a periodic broadcast PAwR mechanism with a response, and after establishing PAwR synchronization with the power grid communication slave device, the business operation data message is sent to the power grid communication slave device through a PAwR event; wherein, the PAwR event includes one or more PAwR sub-events. When the business operation data message is sent to the power grid communication slave device through the PAwR event, the power grid communication master device sends the business operation data message to the power grid communication slave device through the PAwR event. The R sub-event sends a specified business operation data message to one or more specified power grid communication slave devices, and receives the business response data corresponding to the specified business operation data message returned by the one or more specified power grid communication slave devices through the PAwR sub-event. In the scanning state, the power grid communication slave device obtains the business operation data message sent by the power grid communication master device through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and according to the short address of the power grid communication slave device in the local configuration information, sends the business response data corresponding to the business operation data message to the power grid communication master device through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information in a time division multiple access TDMA manner. In this way, without establishing pairing and traditional Bluetooth connection, one-to-many two-way communication between power grid devices is realized on the Bluetooth data channel. Moreover, based on PAwR, a more scalable, one-to-many, two-way transmission network topology is created between power grid devices. Without limiting the specific number of power grid communication slave devices, two-way communication between the power grid communication master device and thousands of power grid communication slave devices can be achieved, thereby significantly improving the efficiency and reliability of communication, and breaking through the limitation of the number of connections of the original connection-based Bluetooth communication method.
[0092] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:
[0094] Figure 1 FIG. 1 shows a structural block diagram of a Bluetooth-based smart grid communication system according to an embodiment of the present disclosure;
[0095] Figure 2A schematic diagram showing a timing diagram of a power grid communication master device establishing PAwR synchronization and sending a PAwR event in an embodiment of the present disclosure;
[0096] Figure 3 A schematic diagram showing the composition of a PAwR event in an embodiment of the present disclosure is shown;
[0097] Figure 4 A schematic diagram showing the composition of a PAwR sub-event in an embodiment of the present disclosure is shown;
[0098] Figure 5 A flowchart illustrating a process of establishing a PAwR synchronization between a power grid communication slave device and a power grid communication master device according to an embodiment of the present disclosure is shown;
[0099] Figure 6 A flowchart showing a process of processing an AUX_SYNC_SUBEVENT_IND message by a power grid communication slave device according to an embodiment of the present disclosure;
[0100] Figure 7 A flowchart showing a Bluetooth-based smart grid communication method according to an embodiment of the present disclosure is shown;
[0101] Figure 8 A flowchart illustrating a method for determining first synchronization information, second synchronization information, and third synchronization information according to an embodiment of the present disclosure is shown;
[0102] Figure 9 A flowchart illustrating another Bluetooth-based smart grid communication method according to an embodiment of the present disclosure is shown;
[0103] Figure 10 A block diagram illustrating a structure of a Bluetooth-based smart grid communication device according to an embodiment of the present disclosure is shown;
[0104] Figure 11 A structural block diagram of another Bluetooth-based smart grid communication device according to an embodiment of the present disclosure is shown;
[0105] Figure 12 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0106] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.
[0107] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, actions, components, parts, or combinations thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, actions, components, parts, or combinations thereof exist or are added.
[0108] It should also be noted that, in the absence of conflict, the embodiments and features of the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0109] As mentioned above, when the smart grid in the existing technology communicates based on Bluetooth, the smart meter box or rail meter is unable to connect to more electricity meters via Bluetooth for real-time data collection due to the limited number of connections. If the electricity meter data is collected on a dedicated broadcast channel using Bluetooth broadcast technology, although this method is quite convenient in implementation, its significant limitation is that the broadcast channel is overcrowded and highly interfering, which greatly weakens the reliability of communication, making the data transmission process susceptible to interference and increasing the error rate. Therefore, when faced with complex scenarios that require processing large amounts of data communications, the use of traditional Bluetooth broadcast methods is obviously difficult to meet the needs of efficient and stable data transmission.
[0110] When faced with complex scenarios that require processing large amounts of data communications, in order to improve the efficiency and reliability of smart grid communications when communicating based on Bluetooth, the inventors of the present disclosure, after careful research and consideration, have foresightedly introduced the Periodic Advertising with Response (PAwR) function of Bluetooth 5.4 into smart grid communications for the first time. Bluetooth modules that support the PAwR function are built into smart grid communication devices (such as grid communication master devices and grid communication slave devices). By utilizing PAwR's bidirectional, connectionless, one-to-many, TDMA time-sharing, encrypted transmission and other communication characteristics, the grid communication master device (such as a smart meter box or rail meter) can simultaneously perform high-frequency, large-volume real-time data acquisition with multiple grid communication slave devices (such as electricity meters or sensors) without being limited by the number of Bluetooth connections.
[0111] Figure 1 FIG. 1 shows a block diagram of a Bluetooth-based smart grid communication system according to an embodiment of the present disclosure. Figure 1 As shown, the communication system includes: a power grid communication master device and a power grid communication slave device ( Figure 1 (In the description, one power grid communication master device and four power grid communication slave devices are used as an example).
[0112] In a specific example, the power grid communication slave device and the power grid communication master device both have built-in Bluetooth modules, and the Bluetooth modules support the periodic broadcast PAwR function with response. Multiple power grid communication slave devices can be divided into multiple groups, and the power grid communication slave devices in different groups have different group numbers. The power grid communication slave devices in the same group have the same group number and different short addresses. The group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when conducting Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device. The power grid communication slave device stores local configuration information, and the local configuration information includes the group number and short address of the power grid communication slave device.
[0113] Specifically, since PAwR is a new feature introduced in Bluetooth 5.4, it is necessary to ensure that both the grid communication master and the grid communication slave devices support Bluetooth 5.4 or higher. The grid communication master device includes but is not limited to: any one or more of smart meter boxes, rail meters, and data collection devices; the grid communication slave devices include but are not limited to: any one or more of smart meters and sensors.
[0114] According to an embodiment of the present disclosure, the power grid communication master device assigns a unique group number and short address to each power grid communication slave device within its jurisdiction. The combination of the group number and the short address is used to identify and distinguish different power grid communication slave devices during the periodic broadcast and response process. Among them, the group number is an identifier used to distinguish different groups of power grid communication slave devices. Different groups of power grid communication slave devices are assigned different group numbers so that the power grid communication master device can identify and distinguish the groups to which the power grid communication slave devices belong; the short address is an identifier used to distinguish each power grid communication slave device in the same group. Even if the power grid communication slave devices in the same group share the same group number, they each have different short addresses, or even if the power grid communication slave devices in different groups share the same short address, they each have different group numbers. Therefore, in both cases, it can be ensured that the power grid communication master device can accurately address each specific power grid communication slave device when conducting Bluetooth communication with different power grid communication slave devices.
[0115] About the main equipment of power grid communication:
[0116] According to an embodiment of the present disclosure, the local configuration information also includes the ID number of the power grid communication master device. The local configuration information is configured by the power grid communication master device for the power grid communication slave device based on a locally maintained configuration information mapping table. The configuration information mapping table includes the MAC address of the power grid communication slave device and configuration information corresponding to the MAC address of the power grid communication slave device. The configuration information includes the group number of the power grid communication slave device, the short address of the power grid communication slave device, and the ID number of the power grid communication master device.
[0117] The power grid communication devices (including the power grid communication master device and the power grid communication slave device) may use their device addresses as Bluetooth MAC (Media Access Control) addresses for identifying and distinguishing different Bluetooth devices in Bluetooth communication.
[0118] Before the grid communication master device and the grid communication slave device perform connectionless bidirectional communication based on the PAwR mechanism, the grid communication master device needs to configure the grid communication slave devices in its jurisdiction in advance so that they can synchronously broadcast and scan PAwR events when communicating through the PAwR mechanism.
[0119] According to an embodiment of the present disclosure, the power grid communication slave device is configured to obtain the configuration information and save the obtained configuration information as local configuration information, so as to subsequently perform PAwR synchronization with the power grid communication master device according to the local configuration information to receive the message sent by the power grid communication master device and return a response message.
[0120] In the present disclosure, when the power grid communication master device configures the power grid communication slave device according to the locally maintained configuration information mapping table, it can be performed in the following two ways:
[0121] Method 1: Configuration is achieved by establishing a BLE (Bluetooth Low Energy) GATT (Generic Attribute Profile) connection. A BLE GATT connection refers to a Bluetooth Low Energy Generic Attribute connection.
[0122] Specifically, it is necessary to ensure that both the grid communication master device and the grid communication slave device support BLE and GATT communications.
[0123] First, the grid communication master device establishes a BLE GATT connection with the grid communication slave device. The BLE GATT connection establishment process is completed through broadcasting, scanning, and connection requests. When the grid communication slave device is ready to connect, it enters the broadcast state and broadcasts data packets on public channels (usually 37, 38, and 39); the grid communication master device switches to the Scanning state and listens for broadcast packets on these broadcast channels. After the grid communication master device determines the grid communication slave device to connect to, it initiates a BLE GATT connection request to the grid communication slave device by sending a connection request packet. The grid communication master device receives the BLE GATT connection response returned by the grid communication slave device, and the BLE GATT connection is successfully established.
[0124] Then, after successfully establishing the BLE GATT connection, the MAC address of the power grid communication slave device is obtained based on the BLE GATT connection, and then the configuration information corresponding to the MAC address of the power grid communication slave device in the configuration information mapping table is searched, and the configuration information corresponding to the MAC address of the power grid communication slave device is sent to the power grid communication slave device, so that the power grid communication slave device saves the received configuration information as local configuration information, and finally the power grid communication master device receives the reply confirmation information of the power grid communication slave device after receiving the configuration information. At this point, the power grid communication master device completes the configuration of the power grid communication slave device. In addition, the power grid communication master device can also configure other information of the power grid communication slave device based on the established BLEGATT connection, such as: the key for encrypting the broadcast packet, and receive the response of the power grid communication slave device to the configuration of other information. After completing all configurations, disconnect the BLE GATT connection.
[0125] Method 2: Configure via Bluetooth broadcast.
[0126] Specifically, the power grid communication master device broadcasts the configuration information mapping table through Bluetooth broadcasting. After the power grid communication slave device receives the configuration information mapping table, it searches and obtains the configuration information matching its own MAC address in the configuration information mapping table, so that the power grid communication slave device saves the obtained configuration information as local configuration information; wherein, the Bluetooth broadcast includes: Bluetooth standard broadcast, Bluetooth extended broadcast or Bluetooth periodic broadcast.
[0127] For method 1 above, configuring via a BLE GATT connection ensures stable and reliable data transmission between the grid communication master and slave devices, thereby ensuring the integrity and accuracy of the configuration information. Furthermore, BLE GATT supports encryption and authentication mechanisms, protecting configuration information from theft or tampering during transmission.
[0128] In method 2 above, since the Bluetooth broadcast method does not require a complex connection, the power grid communication slave device only needs to listen to the broadcast to obtain configuration information, simplifying the configuration process. In addition, the broadcast method does not require a long-term connection state, so the power consumption is lower.
[0129] The choice of method depends on the specific application scenario and requirements. If reliability, security, and support for complex configuration information are required, choose Method 1. If simplicity, speed, low power consumption, and low security requirements are desired, choose Method 2.
[0130] After configuring a slave device, the master device can identify and distinguish different slave devices during periodic broadcasts and responses. This allows the master device to send service operation data messages to designated slave devices and receive responses from slave devices. Before sending service operation data messages to slave devices via periodic advertising with responses ("Periodic Advertising"), the master device and slave device must establish PAwR synchronization.
[0131] According to an embodiment of the present disclosure, the power grid communication master device is configured to: after establishing PAwR synchronization with the power grid communication slave device, send the business operation data message to the power grid communication slave device through a PAwR event; wherein, the PAwR event includes one or more PAwR sub-events, and when the business operation data message is sent to the power grid communication slave device through the PAwR event, the power grid communication master device sends the specified business operation data message to one or more specified power grid communication slave devices through the PAwR sub-event, and receives the business response data corresponding to the specified business operation data message returned by the one or more specified power grid communication slave devices through the PAwR sub-event.
[0132] Among them, the designated business operation data message refers to all or part of the content of the business operation data message. For the business operation data message whose byte length exceeds the maximum length specified by the Bluetooth protocol, the power grid communication master device will divide it into multiple sub-business operation data messages when sending it, and send it multiple times; one or more designated power grid communication slave devices refer to one or more or all of the power grid communication slave devices, and each PAwR sub-event is responsible for sending the designated business operation data message to all or part of the power grid communication slave devices.
[0133] In this disclosure, PAwR synchronization is achieved by sending broadcast packets carrying specific synchronization information on the BLE broadcast physical channel. The BLE broadcast physical channel is divided into primary broadcast physical channels and secondary broadcast physical channels. The primary broadcast physical channel is a set of three fixed broadcast physical channels (channels 37, 38, and 39) distributed on the LE spectrum. The secondary broadcast physical channel is a set of 37 fixed broadcast physical channels (channels 0 to 36 in addition to 37, 38, and 39), also distributed on the LE spectrum.
[0134] Figure 2 FIG. 1 shows a timing diagram of the power grid communication master device establishing PAwR synchronization and sending PAwR events in an embodiment of the present disclosure. Figure 2 As shown, the power grid communication master device is configured to first send a service operation data message on the primary broadcast physical channel ( Figure 2 The embodiment shows that an extended broadcast indication message containing first synchronization information is sent on channels 37, 38 and 39, and then, based on the first synchronization information, an auxiliary broadcast indication message containing second synchronization information and third synchronization information is sent on a designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device. Thereafter, based on the second synchronization information and the third synchronization information, the business operation data message is sent to the power grid communication slave device on the designated data channel through a PAwR event (in the form of a series of auxiliary broadcast indication messages sent at fixed intervals); wherein the PAwR event includes one or more PAwR sub-events, each PAwR sub-event is responsible for sending the business operation data message to a group or a single power grid communication slave device, that is, the power grid communication master device sends a specified business operation data message to one or more specified power grid communication slave devices through the PAwR sub-event, and receives business response data corresponding to the specified business operation data message returned by the one or more specified power grid communication slave devices.
[0135] According to an embodiment of the present disclosure, sending the extended broadcast indication message including the first synchronization information on the primary broadcast physical channel includes:
[0136] An extended broadcast indication ADV_EXT_IND message is sent on the primary broadcast physical channel according to a preset broadcast cycle interval, and the AuxPtr field of the ADV_EXT_IND message includes the first synchronization information; wherein, the first synchronization information includes but is not limited to: the sending time of the auxiliary broadcast indication message, the channel information and PHY information for sending the auxiliary broadcast indication message; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message.
[0137] The Bluetooth 5.4 specification defines the Extended Advertising Indication message as the ADV_EXT_IND message. "Extended Advertising Indication" is the Chinese translation of "ADV_EXT_IND." The "Extended Advertising Indication ADV_EXT_IND message" mentioned above refers to the Extended Advertising Indication message or ADV_EXT_IND message. The ADV_EXT_IND message is a type of message used for broadcast in Bluetooth Low Energy (BLE) technology. It is broadcast on the primary broadcast physical channel and marks the start of an extended advertising event. The ADV_EXT_IND message is defined in detail in the Bluetooth 5.4 specification and includes multiple fields for indicating the type and parameters of the broadcast and the location and configuration of the subsequent auxiliary broadcast (AUX_ADV_IND). The AuxPtr field is a key field in the ADV_EXT_IND message. In the present disclosure, the AuxPtr field is used to point to the auxiliary broadcast indication message to be sent on the secondary broadcast physical channel, and includes all the information required for the power grid communication slave device to receive subsequent auxiliary broadcast indication messages, such as: the sending time of the auxiliary broadcast indication message, the channel information and PHY information for sending the auxiliary broadcast indication message.
[0138] in:
[0139] The Auxiliary Broadcast Indication message transmission time is used to indicate the transmission time of the auxiliary broadcast indication message. It is usually an offset relative to the transmission time of the ADV_EXT_IND message, expressed in some time unit (such as microseconds or Bluetooth clock cycles). Based on this time offset, the power grid communication slave device can calculate the exact transmission time of the AUX_ADV_IND message and scan on the secondary broadcast physical channel at that time.
[0140] The channel information for sending the auxiliary advertising indication message is used to specify the secondary advertising physical channel on which the AUX_ADV_IND message will be sent. The Bluetooth 5.4 specification defines multiple secondary advertising physical channels, each with a unique number or index. Secondary advertising physical channels use the same channel index as the data physical channel. Based on this channel information, the power grid communication slave device can scan for the correct secondary advertising physical channel to receive the AUX_ADV_IND message.
[0141] The PHY information is physical layer information used to indicate the physical layer type used in the AUX_ADV_IND message. Bluetooth 5.0 and later versions support multiple physical layer types, including LE 1M (Low Energy 1Mbit / s), LE 2M (Low Energy 2Mbit / s), and LE Coded. Based on the PHY information, the power grid communication slave device can configure its physical layer to match the transmission method of the AUX_ADV_IND message, thereby ensuring correct reception of the broadcast data.
[0142] According to an embodiment of the present disclosure, sending an auxiliary broadcast indication message including second synchronization information and third synchronization information on a designated secondary broadcast physical channel according to the first synchronization information so as to establish PAwR synchronization with the power grid communication slave device includes:
[0143] An auxiliary broadcast indication AUX_ADV_IND message is sent at the sending time indicated by the first synchronization information and on the secondary broadcast physical channel corresponding to the channel information, and the SyncInfo field of the AUX_ADV_IND message includes the second synchronization information; the ACAD field of the AUX_ADV_IND message includes the third synchronization information; wherein, the second synchronization information includes but is not limited to: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the third synchronization information includes but is not limited to: PAwR sub-event interval, PAwR sub-event number, PAwR sub-event response slot delay and PAwR sub-event response slot length.
[0144] The Bluetooth 5.4 specification defines the AUX_ADV_IND message as the AUX_ADV_IND message. "AUX_ADV_IND" is the Chinese translation of "AUX_ADV_IND." The AUX_ADV_IND message mentioned above refers to the AUX_ADV_IND message or AUX_ADV_IND message. The AUX_ADV_IND message is a type of message used for broadcast in Bluetooth Low Energy (BLE) technology. It is broadcast on a channel other than the primary advertising physical channel (i.e., the secondary advertising physical channel), immediately following the ADV_EXT_IND message, and is used to provide detailed information about subsequent PAwR events. The AUX_ADV_IND message is defined in detail in the Bluetooth 5.4 specification and includes multiple fields for indicating the type and parameters of the broadcast and the location and configuration of the subsequent auxiliary synchronization indication message (AUX_SYNC_SUBEVENT_IND message). The SyncInfo field is a key field in the AUX_ADV_IND message. In this disclosure, the SyncInfo field describes the transmission parameters of the auxiliary synchronization indication message, such as the starting channel, time point, and cycle interval of the subsequent PAwR event. This information is crucial for the power grid communication slave device (Scanner) because they need this information to communicate with the power grid communication master device (Adverti ser) to maintain synchronization and correctly receive PAwR event data. Through the SyncInfo field, the power grid communication master device (Advertiser) can tell the power grid communication slave device (Scanner) which channels and time periods will be used to transmit PAwR event data, which helps to optimize the scanning strategy of the power grid communication slave device and reduce unnecessary energy consumption; the ACAD field is an optional field in the AUX_ADV_IND message. In the present disclosure, the ACAD field is used to describe the specific information of each sub-PAwR event in the PAwR event, such as: PAwR sub-event interval, PAwR sub-event number, PAwR sub-event response time slot delay and PAwR sub-event response time slot duration.
[0145] in:
[0146] The data channel information for sending the auxiliary synchronization indication message defines the data channel number or index for sending subsequent PAwR events. The data channel for sending the auxiliary synchronization indication message can use 37 physical channels other than the primary broadcast physical channel.
[0147] The time offset information is an offset relative to the sending time of the AUX_ADV_IND message, indicating when the power grid communication slave device should start listening for the auxiliary synchronization indication message or the start of the PAwR event.
[0148] The PAwR event interval defines the time interval between PAwR events, i.e., the time interval between two pre-scheduled PAwR event initiations (i.e., the time at which AUX_SYNC_SUBEVENT_IND messages are sent). This allows grid communication slave devices to synchronize and receive subsequent broadcast PAwR event data based on this parameter. This parameter can be an integer multiple of 1.25ms, with a valid range of 7.5ms to 81.91875 seconds. This parameter determines the frequency of PAwR events and affects the real-time nature of data transmission and power consumption.
[0149] If a PAwR event contains multiple PAwR sub-events (for example, each PAwR sub-event contains different business operation data packets), the PAwR sub-event interval defines the time interval between these PAwR sub-events, that is, the time interval between the start of two pre-scheduled AUX_SYNC_SUBEVENT_IND packets in the same PAwR event, which can be an integer multiple of 1.25ms, and the valid value range can be from 7.5ms to 81.91875 seconds. This parameter defines the time interval between PAwR sub-events and affects the density of business operation data packet transmission within a single PAwR event.
[0150] The number of PAwR sub-events defines the maximum number of PAwR sub-events contained in a PAwR event. Generally, due to the limitations of the broadcast interval, PAwR sub-event interval, and message size, the greater the number of PAwR sub-events, the greater the amount of data that can be transmitted in each broadcast cycle, but it may also increase the processing burden of the power grid communication slave device.
[0151] If the grid communication slave device needs to respond to the periodically broadcast PAwR sub-event, the PAwR sub-event response slot delay defines the time interval from the start of the AUX_SYNC_SUBEVENT_IND message of the PAwR sub-event to the start of the first TDMA response slot. This parameter can be an integer multiple of 1.25ms, and the valid value range can be from 1.25ms to 317.5ms.
[0152] The PAwR sub-event response slot duration defines the length of the time window within which a power grid communication slave device can send a response. This parameter defines the time interval between the start of two adjacent TDMA response slots within a PAwR sub-event. This parameter can be an integer multiple of 0.625ms, with a valid value range from 0.625ms to 158.75ms.
[0153] The PAwR sub-event response time slot delay and the PAwR sub-event response time slot duration define the position and duration of the TDMA response time slot, ensuring that the power grid communication slave device can send response data within the correct time window.
[0154] In practical applications, it is necessary to reasonably set the first synchronization information, the second synchronization information, and the third synchronization information according to specific requirements and network conditions to achieve the best data transmission effect.
[0155] In the present disclosure, after the power grid communication master device sends the corresponding synchronization information on the primary broadcast physical channel and the secondary broadcast physical channel respectively as described above, it then sends the business operation data message to the power grid communication slave device through the PAwR event on the data channel indicated by the synchronization information.
[0156] According to an embodiment of the present disclosure, the auxiliary synchronization indication message includes: an auxiliary synchronization sub-event indication AUX_SYNC_SUBEVENT_IND message, each PAwR sub-event includes an AUX_SYNC_SUBEVENT_IND message and one or more TDMA response time slots, the PAwR sub-event response time slot length is used to describe the length of the TDMA response time slot, and the content of the AUX_SYNC_SUBEVENT_IND message includes: the ID of the power grid communication master device, the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message and the specified service operation data message.
[0157] Among them, "auxiliary synchronization sub-event indication" is the Chinese explanation of "AUX_SYNC_SUBEVENT_IND", and the "auxiliary synchronization sub-event indication AUX_SYNC_SUBEVENT_IND message" mentioned above is the auxiliary synchronization sub-event indication message or AUX_SYNC_SUBEVENT_IND message.
[0158] The business operation data message in this disclosure refers to a data packet sent by the grid communication master device to the grid communication slave device, which meets the grid communication specifications (such as DLT645 or DLT698) and is used to perform specific grid operations or transmit grid management information, including but not limited to: control or operation instructions, such as adjusting power distribution, monitoring power quality, collecting meter readings or any other information that needs to be updated regularly.
[0159] The sending, based on the second synchronization information and the third synchronization information, the service operation data message to the power grid communication slave device on a designated data channel through a PAwR event, includes:
[0160] sending one or more PAwR events according to the PAwR event interval in the second synchronization information on the data channel corresponding to the data channel information at the sending time indicated by the second synchronization information; and sending one or more PAwR sub-events according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information when sending each PAwR event. Figure 3 A schematic diagram showing the composition of a PAwR event in an embodiment of the present disclosure ( Figure 3 In the example of a PAwR event including four PAwR sub-events); when sending each PAwR sub-event, at the start of the PAwR sub-event response time slot delay indicated by the third synchronization information, the AUX_SYNC_SUBEVENT_IND message is sent, Figure 4 A schematic diagram showing the composition of the PAwR sub-event in an embodiment of the present disclosure is shown as follows: Figure 4 As shown, T0 and T1 represent AUX_SYNC_SUBEVENT_IND messages sent in PAwR sub-event #0 and PAwR sub-event #1, respectively. A PAwR sub-event includes N TMDA response time slots, namely R0 to RN, where R0 to RN correspond to N power grid communication slave devices, respectively. For example, R0 corresponds to smart meter 1, R1 corresponds to smart meter 2, etc.
[0161] According to an embodiment of the present disclosure, the receiving of service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices includes:
[0162] When sending each PAwR sub-event, after the PAwR sub-event response time slot delay indicated by the third synchronization information ends, the business response data corresponding to the specified business operation data message is received in the one or more TDMA response time slots; wherein, one TDMA response time slot corresponds to the business response data corresponding to the specified business operation data message returned by a power grid communication slave device with a specified group number and short address.
[0163] Specifically, after receiving service response data from each grid communication slave device, the grid communication master device parses and verifies the data. If the data is successfully received and verified, the grid communication master device can send a confirmation message to the energy meter via broadcast or other means, indicating that the data has been received and processed. For erroneous or lost data, the grid communication master device can request the energy meter to send it again or implement other error recovery mechanisms.
[0164] About power grid communication slave devices:
[0165] The grid communication slave device is configured to obtain the business operation data message sent by the grid communication master device through the PAwR sub-event corresponding to the group number of the grid communication slave device in the local configuration information, and according to the short address of the grid communication slave device in the local configuration information, send the business response data corresponding to the business operation data message to the grid communication master device through the PAwR sub-event corresponding to the group number of the grid communication slave device in the local configuration information in a time division multiple access TDMA manner.
[0166] In the present disclosure, when the power grid communication slave device has not established a connection with the power grid communication master device, it achieves synchronization with the power grid communication master device by continuously listening to the broadcast messages on the primary broadcast physical channel and the secondary broadcast physical channel and the designated data channel in the scanning state, and then synchronously receives business operation data on the data channel.
[0167] Figure 5 A flowchart showing a process of establishing a PAwR synchronization between a power grid communication slave device and a power grid communication master device according to an embodiment of the present disclosure includes steps S510 to S550:
[0168] In step S510, the power grid communication slave device scans the extended broadcast indication ADV_EXT_IND message on the primary broadcast physical channel, and after receiving the ADV_EXT_IND message, parses the AuxPtr field of the ADV_EXT_IND message to obtain the first synchronization information in the AuxPtr field.
[0169] In step S520, the local physical layer is configured according to the PHY information in the first synchronization information to match the transmission mode of the AUX_ADV_IND message.
[0170] Generally speaking, PHY information typically specifies the wireless communication technology standard used (such as Bluetooth LE, Zigbee, LoRa, etc.) and the specific configuration under that standard (such as modulation method, frequency, channel, etc.). The power grid communication slave device needs to be able to identify and understand this PHY information to determine which physical layer will be used to transmit the AUX_ADV_IND message. Based on the parsed PHY information, the power grid communication slave device will adjust its local physical layer settings, such as adjusting the wireless module's frequency, channel, modulation method, transmit power, and other parameters to ensure that the power grid communication slave device can correctly receive and parse the AUX_ADV_IND message.
[0171] In step S530, according to the sending time of the auxiliary broadcast indication message in the first synchronization information and the channel information for sending the auxiliary broadcast indication message, the AUX_ADV_IND message is scanned on the sending time indicated by the first synchronization information and the secondary broadcast physical channel corresponding to the channel information. After receiving the AUX_ADV_IND message, the SyncInfo field and ACAD field of the AUX_ADV_IND message are parsed to obtain the second synchronization information in the SyncInfo field and the third synchronization information in the ACAD field.
[0172] In step S540, at the sending time indicated by the second synchronization information and on the data channel corresponding to the data channel information, one or more PAwR events are received according to the PAwR event interval in the second synchronization information.
[0173] Specifically, after obtaining the second synchronization information and the third synchronization information, the reception time of the first PAwR event can be calculated by using the time offset information obtained from the second synchronization information and the reception time of the AUX_ADV_IND message.
[0174] In step S550 , each PAwR sub-event in the one or more PAwR events is received according to the third synchronization information to synchronize with the grid communication master device.
[0175] According to an embodiment of the present disclosure, the receiving, according to the third synchronization information, each PAwR sub-event in the one or more PAwR events to synchronize with the power grid communication master device includes:
[0176] When receiving each PAwR event, one or more PAwR sub-events are received according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; when receiving each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message is received at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information.
[0177] Figure 6A flowchart illustrating a process of processing an AUX_SYNC_SUBEVENT_IND message by a power grid communication slave device according to an embodiment of the present disclosure is provided. The power grid communication slave device obtains a service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and transmits service response data corresponding to the service operation data message to the power grid communication master device through the received PAwR sub-event in a time division multiple access (TDMA) manner according to the short address of the power grid communication slave device in the local configuration information. The process includes the following steps S610 to S630:
[0178] In step S610, after receiving the AUX_SYNC_SUBEVENT_IND message, the AUX_SYNC_SUBEVENT_IND message is parsed to obtain the ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message, and the ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message are compared with the ID number of the grid communication master device and the group number of the grid communication slave device in the local configuration information. If they are consistent, the specified business operation data message carried in the AUX_SYNC_SUBEVENT_IND message is taken out.
[0179] In step S620, service response data corresponding to the designated service operation data message is generated according to the designated service operation data message.
[0180] Specifically, after receiving a designated service operation data message from the power grid communication slave device, it parses it and determines the corresponding service response data based on the content carried in the service operation data message. For example, if the service operation data message is a command to "get the energy meter reading," the power grid communication slave device obtains the current reading, which typically includes parameters such as total energy, current energy, voltage, and current. It then formats the energy meter reading and other potentially required information (such as meter status and timestamp) according to the requirements of the communication protocol to generate a service response data message.
[0181] In step S630, the service response data is encapsulated into an AUX_SYNC_SUBEVENT_RESP message, and the AUX_SYNC_SUBEVENT_RESP message carrying the service response data is sent to the grid communication master device through the TDMA response time slot corresponding to the short address of the grid communication slave device in the local configuration information in the received PAwR sub-event.
[0182] Specifically, when determining the TDMA response timeslot corresponding to the short address of the grid communication slave device in the local configuration information, the grid communication slave device determines the TDMA response timeslot based on the PAwR sub-event response timeslot delay and PAwR sub-event response timeslot duration in the third synchronization information, combined with the short address. At the start of each PAwR sub-event, after the grid communication master device sends an AUX_SYNC_IND message, the corresponding grid communication slave device sends an AUX_SYNC_SUBEVENT_RESP message within its assigned timeslot after a preset PAwR sub-event response timeslot delay has elapsed. For example: if the short address is defined by the index number of the TDMA response time slot, assuming it is 2, it means that the response data is returned in the second TDMA response time slot. The power grid communication slave device will add the sending time of the AUX_SYNC_SUBEVENT_IND message to the PAwR sub-event response time slot delay and the PAwR sub-event response time slot length to determine the starting point of the second TDMA response time slot, and then send the AUX_SYNC_SUBEVENT_RESP message carrying the service response data at this starting point.
[0183] Since the power grid communication slave device only sends the AUX_SYNC_SUBEVENT_RESP message in its own time slot when replying to it, there is no data conflict even in large data volume scenarios, thus supporting high-frequency and large-scale communication. Moreover, this mechanism is highly scalable. The power grid communication master device can define the power grid communication slave devices that receive the specified PAwR sub-event according to actual needs, and then use the PAwR sub-event to realize two-way one-to-many communication between multiple power grid communication slave devices and the power grid communication master device.
[0184] During the periodic broadcast and response process between the power grid communication master and slave devices, all transmitted data can be encrypted. For example, strong encryption algorithms such as AES can be used to encrypt both broadcast and response packets, enhancing the security of the broadcast data. Encrypted broadcast data can only be decrypted by devices with the same key, ensuring communication security and data confidentiality.
[0185] Through the above steps, the smart meter communication system can use the PAwR feature of Bluetooth 5.4 to achieve efficient, reliable and secure periodic broadcast and response communication, thereby supporting real-time data collection and control of large-scale IoT meters.
[0186] In the present disclosure, by using the first synchronization information, the second synchronization information and the third synchronization information for synchronization, the beneficial effects brought about are as follows:
[0187] 1. Improved communication reliability and accuracy. Synchronization information is key to ensuring coordinated communication between the power grid communication master and slave devices. Through multiple synchronizations (primary, secondary, and tertiary synchronization information), the system can more accurately calibrate the time base and communication timing of both parties, reducing communication errors caused by clock asynchrony or signal delays.
[0188] 2. Optimized resource utilization. Sending synchronization information in stages over multiple broadcast physical channels allows for more efficient use of Bluetooth communication bandwidth and energy resources. The primary broadcast physical channel is used for preliminary synchronization, while the secondary broadcast physical channel is used for more detailed synchronization information exchange. This design avoids overloading a single channel and improves overall system efficiency.
[0189] 3. Support for large-scale device management and multicast communication. Grid communication slave devices are grouped and uniquely addressed using group numbers and short addresses, allowing the master device to flexibly send service operation data packets to different groups or individual devices. Multi-level synchronization information helps ensure that each target device in multicast communication accurately receives and processes data, which is critical for managing large-scale device networks.
[0190] 4. The synchronization mechanism is designed to take into account potential future expansion needs, enhancing the system's scalability and flexibility. As the smart grid continues to evolve, more devices may be added to the communication network, or more complex communication modes may need to be supported. By using multiple levels of synchronization information, the system can more easily adapt to these changes without requiring large-scale modifications to the existing architecture.
[0191] 5. Simplified inter-device coordination. After receiving synchronization information, the grid communication slave device automatically adjusts the timing of its data reception and transmission based on local configuration information to maintain synchronization with the grid communication master device. This automated coordination reduces the need for human intervention, reduces operational complexity, and improves the overall stability and reliability of the system.
[0192] 6. Supports efficient time division multiple access (TDMA) communication. After PAwR synchronization is established, power grid communication slave devices can return service response data using TDMA. This communication method can more efficiently utilize communication resources, avoid data conflicts and channel congestion, and thus improve data transmission efficiency and reliability.
[0193] In summary, by using the first synchronization information, the second synchronization information and the third synchronization information for synchronization, the smart grid communication system can achieve more reliable, more efficient and more flexible Bluetooth communication, providing strong support for the operation, maintenance and management of the smart grid.
[0194] In the present disclosure, a more flexible and scalable broadcast mechanism is provided by combining ADV_EXT_IND message, AUX_ADV_IND message and AUX_SYNC_SUBEVENT_IND message, meeting the communication requirements for large-scale, low power consumption and high reliability in application scenarios such as smart grid communication systems.
[0195] Figure 7 A flowchart of a Bluetooth-based smart grid communication method according to an embodiment of the present disclosure is shown. The communication method is applied to a grid communication master device in a smart grid communication system. The communication system includes: a grid communication master device and a grid communication slave device. Figure 7 As shown, the communication method includes the following steps S710 to S720:
[0196] In step S710, after establishing PAwR synchronization with the power grid communication slave device, the business operation data message is sent to the power grid communication slave device through a PAwR event; wherein, the PAwR event includes one or more PAwR sub-events, and when the business operation data message is sent to the power grid communication slave device through the PAwR event, the specified business operation data message is sent to one or more specified power grid communication slave devices through the PAwR sub-event.
[0197] In step S720, service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices is received through the PAwR sub-event.
[0198] After establishing PAwR synchronization with the power grid communication slave device, sending the service operation data message to the power grid communication slave device through a PAwR event includes:
[0199] According to an embodiment of the present disclosure, an extended broadcast indication message containing first synchronization information is sent on the primary broadcast physical channel, and then, based on the first synchronization information, an auxiliary broadcast indication message containing second synchronization information and third synchronization information is sent on the designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device; thereafter, based on the second synchronization information and the third synchronization information, the business operation data message is sent to the power grid communication slave device through a PAwR event on the designated data channel.
[0200] According to an embodiment of the present disclosure, sending the extended broadcast indication message including the first synchronization information on the primary broadcast physical channel includes:
[0201] Sending an extended broadcast indication ADV_EXT_IND message on a primary broadcast physical channel according to a preset broadcast cycle interval, where the AuxPtr field of the ADV_EXT_IND message includes the first synchronization information, and the first synchronization information includes: a sending time of the auxiliary broadcast indication message, channel information and PHY information for sending the auxiliary broadcast indication message; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message;
[0202] The sending, based on the first synchronization information, an auxiliary broadcast indication message including second synchronization information and third synchronization information on a designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device includes:
[0203] An auxiliary broadcast indication AUX_ADV_IND message is sent at the sending time indicated by the first synchronization information and on the secondary broadcast physical channel corresponding to the channel information. The SyncInfo field of the AUX_ADV_IND message includes the second synchronization information, and the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the ACAD field of the AUX_ADV_IND message includes the third synchronization information, and the third synchronization information includes: PAwR sub-event interval, PAwR sub-event number, PAwR sub-event response slot delay and PAwR sub-event response slot length.
[0204] According to an embodiment of the present disclosure, the auxiliary synchronization indication message includes: an auxiliary synchronization sub-event indication AUX_SYNC_SUBEVENT_IND message, each PAwR sub-event includes an AUX_SYNC_SUBEVENT_IND message and one or more TDMA response time slots, the PAwR sub-event response time slot duration is used to describe the duration of the TDMA response time slot, and the content of the AUX_SYNC_SUBEVENT_IND message includes: the ID of the power grid communication master device, the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and the specified service operation data message;
[0205] The sending, based on the second synchronization information and the third synchronization information, the service operation data message to the power grid communication slave device on a designated data channel through a PAwR event, includes:
[0206] sending, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information; sending, when sending each PAwR event, one or more PAwR sub-events according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; and sending, when sending each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message at the start of the PAwR sub-event response slot delay indicated by the third synchronization information;
[0207] The receiving the service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices includes:
[0208] When sending each PAwR sub-event, after the PAwR sub-event response time slot delay indicated by the third synchronization information ends, the business response data corresponding to the specified business operation data message is received in the one or more TDMA response time slots; wherein, one TDMA response time slot corresponds to the business response data corresponding to the specified business operation data message returned by a power grid communication slave device with a specified group number and short address.
[0209] Figure 8 A flowchart of a method for determining first synchronization information, second synchronization information, and third synchronization information according to an embodiment of the present disclosure is shown. Figure 8 As shown, the first synchronization information, the second synchronization information, and the third synchronization information are determined through the following steps S810 to S830:
[0210] In step S810, description information of the service operation data message is acquired, where the description information of the service operation data message includes: the byte length of the service operation data message and the priority of the service operation data message.
[0211] In step S820, the device performance parameters of the power grid communication slave device and the current transmission network condition data are obtained, the transmission network condition data including: network delay, packet loss rate, network signal strength and / or interference situation data, and the device performance parameters including: device type and / or processing speed and / or response time.
[0212] In step S830, the description information of the business operation data message, the device performance parameters of the power grid communication slave device, and the current transmission network condition data are input into a pre-trained neural network model, and the neural network model is used to predict and output the first synchronization information, the second synchronization information, and the third synchronization information based on the description information of the business operation data message, the device performance parameters of the power grid communication slave device, and the current transmission network condition data.
[0213] Among them, when selecting a neural network model suitable for determining the synchronization information scheme in the embodiment of the present disclosure, considering that the input data of the neural network model is mainly numerical business operation data message description information, device performance parameters and network condition data, and the goal is to predict synchronization information (usually a numerical or classification task), a multi-layer perceptron (MLP) or a deep neural network (DNN) can be selected for training. Among them, the multi-layer perceptron (MLP) has a simple structure, is easy to implement and adjust parameters, and can usually achieve good prediction results for small to medium-sized data sets; the deep neural network (DNN) can learn complex nonlinear relationships and process high-dimensional data. By adjusting the network structure and parameters, higher prediction accuracy can be obtained. In practical applications, if higher accuracy and model complexity are pursued, it may be more appropriate to choose DNN; if you want to keep the model simple and easy to explain, MLP may be a better choice. At the same time, you can also consider using ensemble learning methods, such as gradient boosting tree (GBDT), to balance prediction accuracy and model interpretability.
[0214] According to an embodiment of the present disclosure, the neural network model is trained in the following manner:
[0215] Collect the sending records of historical business operation data messages, the sending records including: description information of the historical business operation data messages, equipment performance parameters and transmission network condition data of the power grid communication slave device that receives the historical business operation data messages, the first synchronization information, the second synchronization information and the third synchronization information used to send the historical business operation data messages, and the sending success rate and response time corresponding to the first synchronization information, the second synchronization information and the third synchronization information used to send the historical business operation data messages.
[0216] The description information of the historical business operation data message, the equipment performance parameters of the power grid communication slave device that receives the historical business operation data message, and the transmission network condition data are used as input features of the neural network model; the first synchronization information, the second synchronization information, and the third synchronization information used to send the historical business operation data message are used as output features of the neural network model; the sending success rate and response time corresponding to the first synchronization information, the second synchronization information, and the third synchronization information used to send the historical business operation data message are used as evaluation indicators for evaluating the prediction effect of the neural network model, and are used to compare with the first synchronization information, the second synchronization information, and the third synchronization information output by the neural network model during the training process, so as to adjust the parameters of the neural network model through the back propagation algorithm.
[0217] The neural network model is trained using the sending records of the historical business operation data messages.
[0218] The present disclosure takes into account the characteristics of service operation data packets and the specific conditions of multiple power grid communication slave devices. Steps S810 and S820 above collect descriptive information about service operation data packets, performance parameters of power grid communication slave devices, and current transmission network condition data, respectively. This information provides comprehensive input for subsequent synchronization information prediction, making the predicted synchronization information more accurate and better adapted to the actual communication environment, thereby improving the accuracy of synchronization information. Furthermore, traditional synchronization information settings often require manual intervention and are configured based on experience or fixed rules. The automated prediction method of steps S810 to S830 can significantly reduce the need for manual intervention and lower operation and maintenance costs. Furthermore, the prediction method based on a machine learning model can automatically learn and optimize synchronization strategies, further enhancing the intelligence level of the system. Furthermore, by inputting the collected data into a pre-trained neural network model, step S830 can comprehensively consider multiple factors, such as service message priority, device processing speed, response time, network latency, and packet loss rate, to predict the synchronization information most suitable for the current communication environment. This method, based on big data and machine learning, can dynamically adjust synchronization strategies, optimize system performance, and improve the efficiency and reliability of data transmission.
[0219] Figure 9 A flow chart of another Bluetooth-based smart grid communication method according to an embodiment of the present disclosure is shown, wherein the communication method is applied to a grid communication slave device in a smart grid communication system, wherein the communication system includes: a grid communication master device and a grid communication slave device. Figure 9 As shown, the communication method includes the following steps S910 to S920:
[0220] In step S910, a service operation data message sent by the power grid communication master device is obtained through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information.
[0221] In step S920, according to the short address of the power grid communication slave device in the local configuration information, the business response data corresponding to the business operation data message is sent to the power grid communication master device in a time division multiple access (TDMA) manner through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information; wherein the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when conducting Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device.
[0222] According to an embodiment of the present disclosure, before obtaining the service operation data message sent by the grid communication master device through the PAwR sub-event corresponding to the group number of the grid communication slave device in the local configuration information, the communication method further includes: establishing PAwR synchronization with the grid communication master device, including:
[0223] The power grid communication slave device scans the extended broadcast indication ADV_EXT_IND message on the main broadcast physical channel, and after receiving the ADV_EXT_IND message, parses the AuxPtr field of the ADV_EXT_IND message to obtain the first synchronization information in the AuxPtr field; the first synchronization information includes: the sending time of the auxiliary broadcast indication message, the channel information and PHY information for sending the auxiliary broadcast indication message.
[0224] The local physical layer is configured according to the PHY information in the first synchronization information to match the transmission mode of the AUX_ADV_IND message; according to the sending time of the auxiliary broadcast indication message and the channel information for sending the auxiliary broadcast indication message in the first synchronization information, the AUX_ADV_IND message is scanned on the secondary broadcast physical channel corresponding to the sending time indicated by the first synchronization information and the channel information; after receiving the AUX_ADV_IND message, the SyncInfo field and the ACAD field of the AUX_ADV_IND message are parsed to obtain the second synchronization information in the SyncInfo field and the third synchronization information in the ACAD field; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message; the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the third synchronization information includes: PAwR sub-event interval, number of PAwR sub-events, PAwR sub-event response time slot delay and PAwR sub-event response time slot duration.
[0225] At the sending time indicated by the second synchronization information and on the data channel corresponding to the data channel information, one or more PAwR events are received according to the PAwR event interval in the second synchronization information.
[0226] Each PAwR sub-event in the one or more PAwR events is received according to the third synchronization information to synchronize with the grid communication master device.
[0227] According to an embodiment of the present disclosure, the receiving, according to the third synchronization information, each PAwR sub-event in the one or more PAwR events to synchronize with the power grid communication master device includes:
[0228] When receiving each PAwR event, one or more PAwR sub-events are received according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; when receiving each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message is received at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information.
[0229] The method includes: obtaining a service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and sending service response data corresponding to the service operation data message to the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information in a time division multiple access (TDMA) manner according to a short address of the power grid communication slave device in the local configuration information.
[0230] After receiving the AUX_SYNC_SUBEVENT_IND message, parse the AUX_SYNC_SUBEVENT_IND message, obtain the ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message, and compare the obtained ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message with the ID number of the grid communication master device and the group number of the grid communication slave device in the local configuration information. If they are consistent, take out the designated business operation data message carried in the AUX_SYNC_SUBEVENT_IND message.
[0231] Generate service response data corresponding to the specified service operation data message according to the specified service operation data message.
[0232] The service response data is encapsulated into an AUX_SYNC_SUBEVENT_RESP message, and the AUX_SYNC_SUBEVENT_RESP message carrying the service response data is sent to the grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the grid communication slave device in the local configuration information.
[0233] According to an embodiment of the present disclosure, the power grid communication slave device stores the local configuration information, and the local configuration information is configured by the power grid communication master device to configure the power grid communication slave device according to a locally maintained configuration information mapping table. The configuration information mapping table includes the MAC address of the power grid communication slave device and the configuration information corresponding one-to-one to the MAC address of the power grid communication slave device. The configuration information includes: the group number to which the power grid communication slave device belongs, the short address of the power grid communication slave device, and the ID number of the power grid communication master device.
[0234] According to an embodiment of the present disclosure, the power grid communication master device configures the power grid communication slave device according to a locally maintained configuration information mapping table in the following manner:
[0235] Establishing a BLE GATT connection with the power grid communication slave device includes: initiating a BLE GATT connection request to the power grid communication slave device; receiving a BLE GATT connection response returned by the power grid communication slave device; after successfully establishing the BLE GATT connection, obtaining the MAC address of the power grid communication slave device based on the BLE GATT connection, then searching the configuration information mapping table for the configuration information corresponding to the MAC address of the power grid communication slave device, sending the configuration information corresponding to the MAC address of the power grid communication slave device to the power grid communication slave device, and receiving reply confirmation information from the power grid communication slave device after receiving the configuration information.
[0236] According to an embodiment of the present disclosure, the power grid communication master device configures the power grid communication slave device according to a locally maintained configuration information mapping table in the following manner:
[0237] The configuration information mapping table is broadcasted by Bluetooth broadcasting, so that the power grid communication slave device that receives the configuration information mapping table searches in the configuration information mapping table and obtains the configuration information matching its own MAC address; wherein, the Bluetooth broadcast includes: Bluetooth standard broadcasting, Bluetooth extended broadcasting or Bluetooth periodic broadcasting.
[0238] Figure 10 The following is a block diagram of a Bluetooth-based smart grid communication device according to an embodiment of the present disclosure. The communication device is provided in a grid communication master device in a smart grid communication system, and the communication system includes: a grid communication master device and a grid communication slave device. Figure 10 As shown, the communication device 1000 includes: a business operation data message sending module, which is configured to send the business operation data message to the power grid communication slave device through a PAwR event after establishing PAwR synchronization with the power grid communication slave device; wherein, the PAwR event includes one or more PAwR sub-events, and when the business operation data message is sent to the power grid communication slave device through the PAwR event, the power grid communication master device sends a specified business operation data message to one or more specified power grid communication slave devices through the PAwR sub-event; a business operation data message response receiving module, which is configured to receive business response data corresponding to the specified business operation data message returned by the one or more specified power grid communication slave devices through the PAwR sub-event.
[0239] Figure 11The following is a block diagram of another Bluetooth-based smart grid communication device according to an embodiment of the present disclosure. The communication device is provided in a grid communication slave device in a smart grid communication system, and the communication system includes: a grid communication master device and a grid communication slave device. Figure 11 As shown, the communication device 1100 includes: a business operation data message receiving module, which is configured to obtain the business operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information; a business operation data message response sending module, which is configured to send the business response data corresponding to the business operation data message to the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information in a time division multiple access TDMA manner according to the short address of the power grid communication slave device in the local configuration information; wherein the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when performing Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device.
[0240] According to the technical solution provided by the embodiment of the present disclosure, by integrating a Bluetooth module supporting the PAwR function in the power grid equipment (such as: the power grid communication master device and the power grid communication slave device), the power grid communication master device sends configuration information containing parameters such as group number and short address to the power grid communication slave device. When the power grid communication master device sends a service operation data message to the power grid communication slave device, a periodic broadcast PAwR mechanism with response is used to first send an extended broadcast indication message containing first synchronization information on the broadcast physical channel. Then, based on the first synchronization information, an auxiliary broadcast indication message containing second synchronization information and third synchronization information is sent on the designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device. Afterwards, based on Based on the second synchronization information and the third synchronization information, the service operation data message is sent to the power grid communication slave device via a PAwR event on a designated data channel. In a scanning state, the power grid communication slave device, based on local configuration information, receives a PAwR sub-event in the PAwR event corresponding to the ID number of the power grid communication master device and the group number of the power grid communication slave device in the local configuration information to obtain the service operation data message sent by the power grid communication master device. The service response data corresponding to the service operation data message is then sent to the power grid communication master device via a time division multiple access (TDMA) method via the received PAwR sub-event based on the short address of the power grid communication slave device in the local configuration information. This enables one-to-many, bidirectional communication between power grid devices on a data channel without establishing pairing or a traditional Bluetooth connection. Furthermore, based on PAwR, a more scalable, one-to-many, bidirectional transmission network topology is created between power grid devices. Bidirectional communication between the power grid communication master device and thousands of power grid communication slave devices can be achieved without limiting the specific number of power grid communication slave devices, significantly improving communication efficiency and reliability.
[0241] Figure 12 1 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 12 As shown, the electronic device includes a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the communication method as described in any one of the above method embodiments.
[0242] The present disclosure also provides a computer-readable storage medium, which may be included in the electronic device or computer system described in the above embodiments, or may be a standalone computer-readable storage medium not incorporated into the device. The computer-readable storage medium stores one or more programs, which are used by one or more processors to execute the communication method described in the present disclosure.
[0243] The present disclosure also provides a computer program product, including a computer program, which implements any communication method described in the present disclosure when executed by a processor.
[0244] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention herein is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
Claims
1. A Bluetooth-based smart grid communication system, characterized in that: The communication system includes: a power grid communication master device and a power grid communication slave device, wherein: The power grid communication master device is configured to: after establishing PAwR synchronization with the power grid communication slave device, send a service operation data message to the power grid communication slave device via a PAwR event; wherein the PAwR event includes one or more PAwR sub-events, and when sending the service operation data message to the power grid communication slave device via the PAwR event, send a specified service operation data message to one or more specified power grid communication slave devices via the PAwR sub-event, and receive service response data corresponding to the specified service operation data message returned by the one or more specified power grid communication slave devices via the PAwR sub-event; The power grid communication slave device is configured to: obtain a service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and send service response data corresponding to the service operation data message to the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information in a time division multiple access (TDMA) manner according to the short address of the power grid communication slave device in the local configuration information; wherein the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when performing Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device; After establishing PAwR synchronization with the power grid communication slave device, sending the service operation data message to the power grid communication slave device through a PAwR event includes: Sending an extended broadcast instruction message including first synchronization information on a primary broadcast physical channel, and then sending an auxiliary broadcast instruction message including second synchronization information and third synchronization information on a designated secondary broadcast physical channel based on the first synchronization information to establish PAwR synchronization with the power grid communication slave device; and then sending the service operation data message to the power grid communication slave device through a PAwR event on a designated data channel based on the second synchronization information and the third synchronization information; The sending of the extended broadcast indication message including the first synchronization information on the primary broadcast physical channel includes: Sending an extended broadcast indication ADV_EXT_IND message on a primary broadcast physical channel according to a preset broadcast cycle interval, where the AuxPtr field of the ADV_EXT_IND message includes the first synchronization information, and the first synchronization information includes: a sending time of the auxiliary broadcast indication message, channel information and PHY information for sending the auxiliary broadcast indication message; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message; The sending, according to the first synchronization information, an auxiliary broadcast indication message including second synchronization information and third synchronization information on a designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device includes: An auxiliary broadcast indication AUX_ADV_IND message is sent at the sending time indicated by the first synchronization information and on the secondary broadcast physical channel corresponding to the channel information. The SyncInfo field of the AUX_ADV_IND message includes the second synchronization information, and the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the ACAD field of the AUX_ADV_IND message includes the third synchronization information, and the third synchronization information includes: PAwR sub-event interval, PAwR sub-event number, PAwR sub-event response slot delay and PAwR sub-event response slot length.
2. The communication system according to claim 1, wherein: The power grid communication slave device stores the local configuration information, and the local configuration information also includes: the ID number of the power grid communication master device; the local configuration information is configured by the power grid communication master device to the power grid communication slave device according to a locally maintained configuration information mapping table, and the configuration information mapping table includes the MAC address of the power grid communication slave device and the configuration information corresponding one-to-one to the MAC address of the power grid communication slave device, and the configuration information includes: the group number of the power grid communication slave device, the short address of the power grid communication slave device and the ID number of the power grid communication master device.
3. The communication system according to claim 2, wherein: The power grid communication master device configures the power grid communication slave device according to the locally maintained configuration information mapping table in the following manner: Establishing a BLE GATT connection with the power grid communication slave device, comprising: initiating a BLE GATT connection request to the power grid communication slave device; and receiving a BLE GATT connection response returned by the power grid communication slave device; After successfully establishing a BLE GATT connection, obtaining the MAC address of the power grid communication slave device based on the BLE GATT connection, then searching the configuration information mapping table for the configuration information corresponding to the MAC address of the power grid communication slave device, sending the configuration information corresponding to the MAC address of the power grid communication slave device to the power grid communication slave device, and receiving a reply confirmation message from the power grid communication slave device after receiving the configuration information; The grid communication slave device receives the configuration information and saves the received configuration information as local configuration information.
4. The communication system according to claim 2, wherein: The power grid communication master device configures the power grid communication slave device according to the locally maintained configuration information mapping table in the following manner: Broadcasting the configuration information mapping table via Bluetooth broadcasting, so that a power grid communication slave device that receives the configuration information mapping table searches the configuration information mapping table and obtains configuration information that matches its own MAC address; wherein the Bluetooth broadcasting includes: Bluetooth standard broadcasting, Bluetooth extended broadcasting, or Bluetooth periodic broadcasting; The power grid communication slave device saves the acquired configuration information as local configuration information.
5. The communication system according to claim 1, wherein: The auxiliary synchronization indication message includes: an auxiliary synchronization sub-event indication AUX_SYNC_SUBEVENT_IND message, each PAwR sub-event includes an AUX_SYNC_SUBEVENT_IND message and one or more TDMA response time slots, the PAwR sub-event response time slot duration is used to describe the duration of the TDMA response time slot, and the content of the AUX_SYNC_SUBEVENT_IND message includes: the ID of the power grid communication master device, the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and the specified service operation data message; The sending, based on the second synchronization information and the third synchronization information, the service operation data message to the power grid communication slave device on a designated data channel through a PAwR event, includes: sending, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information; sending, when sending each PAwR event, one or more PAwR sub-events according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; and sending, when sending each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message at the start of the PAwR sub-event response slot delay indicated by the third synchronization information; The receiving the service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices includes: When sending each PAwR sub-event, after the PAwR sub-event response time slot delay indicated by the third synchronization information ends, the business response data corresponding to the specified business operation data message is received in the one or more TDMA response time slots; wherein, one TDMA response time slot corresponds to the business response data corresponding to the specified business operation data message returned by a power grid communication slave device with a specified group number and short address.
6. The communication system according to claim 5, characterized in that Before the power grid communication slave device obtains the service operation data message sent by the power grid communication master device through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, the power grid communication slave device is further configured to: establish PAwR synchronization with the power grid communication master device, including: The power grid communication slave device scans the extended broadcast indication ADV_EXT_IND message on the primary broadcast physical channel, and after receiving the ADV_EXT_IND message, parses the AuxPtr field of the ADV_EXT_IND message to obtain the first synchronization information in the AuxPtr field; Configure the local physical layer according to the PHY information in the first synchronization information to match the transmission mode of the AUX_ADV_IND message; scan the AUX_ADV_IND message at the sending time indicated by the first synchronization information and the channel information for sending the auxiliary broadcast indication message in the first synchronization information, and after receiving the AUX_ADV_IND message, parse the SyncInfo field and the ACAD field of the AUX_ADV_IND message to obtain the second synchronization information in the SyncInfo field and the third synchronization information in the ACAD field; receiving, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information; Each PAwR sub-event in the one or more PAwR events is received according to the third synchronization information to synchronize with the grid communication master device.
7. The communication system according to claim 6, wherein: The local configuration information further includes: an ID number of the power grid communication master device; and receiving each PAwR sub-event in the one or more PAwR events according to the third synchronization information to synchronize with the power grid communication master device, including: When receiving each PAwR event, one or more PAwR sub-events are received according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; when receiving each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message is received at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information; The method further comprises: obtaining a service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and sending service response data corresponding to the service operation data message to the power grid communication master device through the received PAwR sub-event in a time division multiple access (TDMA) manner according to the short address of the power grid communication slave device in the local configuration information. After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with the ID number of the grid communication master device and the group number of the grid communication slave device in the local configuration information; if they are consistent, taking out the designated service operation data message carried in the AUX_SYNC_SUBEVENT_IND message; Generate business response data corresponding to the specified business operation data message according to the specified business operation data message; The service response data is encapsulated into an AUX_SYNC_SUBEVENT_RESP message, and the AUX_SYNC_SUBEVENT_RESP message carrying the service response data is sent to the grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the grid communication slave device in the local configuration information.
8. A Bluetooth-based smart grid communication method, characterized in that: The communication method is applied to a grid communication master device in a smart grid communication system according to any one of claims 1 to 7, wherein the communication system comprises: a grid communication master device and a grid communication slave device, and the communication method comprises: After establishing PAwR synchronization with the power grid communication slave device, sending the service operation data message to the power grid communication slave device through a PAwR event; Among them, the PAwR event includes one or more PAwR sub-events. When the business operation data message is sent to the power grid communication slave device through the PAwR event, the specified business operation data message is sent to one or more specified power grid communication slave devices through the PAwR sub-event, and the business response data corresponding to the specified business operation data message returned by the one or more specified power grid communication slave devices is received through the PAwR sub-event.
9. The communication method according to claim 8, wherein: After establishing PAwR synchronization with the power grid communication slave device, sending the service operation data message to the power grid communication slave device through a PAwR event includes: An extended broadcast indication message containing first synchronization information is sent on the primary broadcast physical channel, and then, based on the first synchronization information, an auxiliary broadcast indication message containing second synchronization information and third synchronization information is sent on the designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device; thereafter, based on the second synchronization information and the third synchronization information, the business operation data message is sent to the power grid communication slave device through a PAwR event on the designated data channel.
10. The communication method according to claim 9, wherein: The sending of the extended broadcast indication message including the first synchronization information on the primary broadcast physical channel includes: Sending an extended broadcast indication ADV_EXT_IND message on a primary broadcast physical channel according to a preset broadcast cycle interval, where the AuxPtr field of the ADV_EXT_IND message includes the first synchronization information, and the first synchronization information includes: a sending time of the auxiliary broadcast indication message, channel information and PHY information for sending the auxiliary broadcast indication message; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message; The sending, according to the first synchronization information, an auxiliary broadcast indication message including second synchronization information and third synchronization information on a designated secondary broadcast physical channel to establish PAwR synchronization with the power grid communication slave device includes: An auxiliary broadcast indication AUX_ADV_IND message is sent at the sending time indicated by the first synchronization information and on the secondary broadcast physical channel corresponding to the channel information. The SyncInfo field of the AUX_ADV_IND message includes the second synchronization information, and the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the ACAD field of the AUX_ADV_IND message includes the third synchronization information, and the third synchronization information includes: PAwR sub-event interval, PAwR sub-event number, PAwR sub-event response slot delay and PAwR sub-event response slot length.
11. The communication method according to claim 10, wherein: The auxiliary synchronization indication message includes: an auxiliary synchronization sub-event indication AUX_SYNC_SUBEVENT_IND message, each PAwR sub-event includes an AUX_SYNC_SUBEVENT_IND message and one or more TDMA response time slots, the PAwR sub-event response time slot duration is used to describe the duration of the TDMA response time slot, and the content of the AUX_SYNC_SUBEVENT_IND message includes: the ID of the power grid communication master device, the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and the specified service operation data message; The sending, based on the second synchronization information and the third synchronization information, the service operation data message to the power grid communication slave device on a designated data channel through a PAwR event, includes: sending, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information; sending, when sending each PAwR event, one or more PAwR sub-events according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; and sending, when sending each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message at the start of the PAwR sub-event response slot delay indicated by the third synchronization information; The receiving the service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices includes: When sending each PAwR sub-event, after the PAwR sub-event response time slot delay indicated by the third synchronization information ends, the business response data corresponding to the specified business operation data message is received in the one or more TDMA response time slots; wherein, one TDMA response time slot corresponds to the business response data corresponding to the specified business operation data message returned by a power grid communication slave device with a specified group number and short address.
12. The communication method according to claim 9, wherein: The first synchronization information, the second synchronization information, and the third synchronization information are determined in the following manner: Acquire description information of the service operation data message, where the description information of the service operation data message includes: byte length of the service operation data message and priority of the service operation data message; Obtaining device performance parameters of the power grid communication slave device and current transmission network condition data, wherein the transmission network condition data includes: network delay, packet loss rate, network signal strength and / or interference data, and the device performance parameters include: device type and / or processing speed and / or response time; The description information of the business operation data message, the equipment performance parameters of the power grid communication slave device, and the current transmission network condition data are input into a pre-trained neural network model, and the neural network model is used to predict and output the first synchronization information, the second synchronization information, and the third synchronization information based on the description information of the business operation data message, the equipment performance parameters of the power grid communication slave device, and the current transmission network condition data.
13. The communication method according to claim 12, wherein: The neural network model is trained as follows: Collecting sending records of historical business operation data messages, the sending records including: description information of the historical business operation data messages, device performance parameters and transmission network condition data of the power grid communication slave device that receives the historical business operation data messages, first synchronization information, second synchronization information, and third synchronization information used to send the historical business operation data messages, and sending success rates and response times corresponding to the first synchronization information, second synchronization information, and third synchronization information used to send the historical business operation data messages; Using the description information of the historical business operation data message, the device performance parameters of the power grid communication slave device that receives the historical business operation data message, and the transmission network condition data as input features of the neural network model, using the first synchronization information, the second synchronization information, and the third synchronization information used to send the historical business operation data message as output features of the neural network model, and using the sending success rate and response time corresponding to the first synchronization information, the second synchronization information, and the third synchronization information used to send the historical business operation data message as evaluation indicators for evaluating the prediction effect of the neural network model, which are used to compare with the first synchronization information, the second synchronization information, and the third synchronization information output by the neural network model during the training process, so as to adjust the parameters of the neural network model through a backpropagation algorithm; The neural network model is trained using the sending records of the historical business operation data messages.
14. A Bluetooth-based smart grid communication method, characterized in that: The communication method is applied to a grid communication slave device in a smart grid communication system according to any one of claims 1 to 7, wherein the communication system comprises: a grid communication master device and a grid communication slave device, and the communication method comprises: The business operation data message sent by the power grid communication master device is obtained through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and according to the short address of the power grid communication slave device in the local configuration information, the business response data corresponding to the business operation data message is sent to the power grid communication master device in a time division multiple access TDMA manner through the PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information; wherein, the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when conducting Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device.
15. The communication method according to claim 14, characterized in that: Before acquiring the service operation data message sent by the grid communication master device through the PAwR sub-event corresponding to the group number of the grid communication slave device in the local configuration information, the communication method further includes: establishing PAwR synchronization with the grid communication master device, including: The power grid communication slave device scans the extended broadcast indication ADV_EXT_IND message on the primary broadcast physical channel, and after receiving the ADV_EXT_IND message, parses the AuxPtr field of the ADV_EXT_IND message to obtain the first synchronization information in the AuxPtr field; the first synchronization information includes: the sending time of the auxiliary broadcast indication message, the channel information and PHY information of the auxiliary broadcast indication message; configuring a local physical layer according to the PHY information in the first synchronization information to match the transmission mode of the AUX_ADV_IND message; scanning the AUX_ADV_IND message on the secondary broadcast physical channel corresponding to the sending time indicated by the first synchronization information and the channel information for sending the auxiliary broadcast indication message according to the first synchronization information; after receiving the AUX_ADV_IND message, parsing the SyncInfo field and the ACAD field of the AUX_ADV_IND message to obtain the second synchronization information in the SyncInfo field and the third synchronization information in the ACAD field; the sending time of the auxiliary broadcast indication message is an offset relative to the sending time of the ADV_EXT_IND message; the second synchronization information includes: data channel information, time offset information and PAwR event interval for sending the auxiliary synchronization indication message; the third synchronization information includes: PAwR sub-event interval, number of PAwR sub-events, PAwR sub-event response slot delay and PAwR sub-event response slot duration; receiving, at a sending time indicated by the second synchronization information and on a data channel corresponding to the data channel information, one or more PAwR events according to the PAwR event interval in the second synchronization information; Each PAwR sub-event in the one or more PAwR events is received according to the third synchronization information to synchronize with the grid communication master device.
16. The communication method according to claim 15, characterized in that: The local configuration information further includes: an ID number of the power grid communication master device; and receiving each PAwR sub-event in the one or more PAwR events according to the third synchronization information to synchronize with the power grid communication master device, including: When receiving each PAwR event, one or more PAwR sub-events are received according to the PAwR sub-event interval and the number of PAwR sub-events indicated by the third synchronization information; when receiving each PAwR sub-event, the AUX_SYNC_SUBEVENT_IND message is received at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information; The method includes: obtaining a service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information, and sending service response data corresponding to the service operation data message to the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information in a time division multiple access (TDMA) manner according to the short address of the power grid communication slave device in the local configuration information. After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with the ID number of the grid communication master device and the group number of the grid communication slave device in the local configuration information; if they are consistent, taking out the designated service operation data message carried in the AUX_SYNC_SUBEVENT_IND message; Generate business response data corresponding to the specified business operation data message according to the specified business operation data message; The service response data is encapsulated into an AUX_SYNC_SUBEVENT_RESP message, and the AUX_SYNC_SUBEVENT_RESP message carrying the service response data is sent to the grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the grid communication slave device in the local configuration information.
17. The communication method according to claim 14, wherein: The power grid communication slave device stores the local configuration information, and the local configuration information also includes: the ID number of the power grid communication master device; the local configuration information is configured by the power grid communication master device to configure the power grid communication slave device according to a locally maintained configuration information mapping table, and the configuration information mapping table includes the MAC address of the power grid communication slave device, and configuration information corresponding one-to-one to the MAC address of the power grid communication slave device, and the configuration information includes: the group number to which the power grid communication slave device belongs, the short address of the power grid communication slave device, and the ID number of the power grid communication master device.
18. The communication method according to claim 17, wherein: The power grid communication master device configures the power grid communication slave device according to the locally maintained configuration information mapping table in the following manner: Establishing a BLE GATT connection with the power grid communication slave device, comprising: initiating a BLE GATT connection request to the power grid communication slave device; and receiving a BLE GATT connection response returned by the power grid communication slave device; After successfully establishing a BLE GATT connection, the MAC address of the power grid communication slave device is obtained based on the BLE GATT connection, and then the configuration information corresponding to the MAC address of the power grid communication slave device is searched in the configuration information mapping table, the configuration information corresponding to the MAC address of the power grid communication slave device is sent to the power grid communication slave device, and a reply confirmation message from the power grid communication slave device after receiving the configuration information is received.
19. The communication method according to claim 17, wherein: The power grid communication master device configures the power grid communication slave device according to the locally maintained configuration information mapping table in the following manner: The configuration information mapping table is broadcasted by Bluetooth broadcasting, so that the power grid communication slave device that receives the configuration information mapping table searches in the configuration information mapping table and obtains the configuration information matching its own MAC address; wherein, the Bluetooth broadcast includes: Bluetooth standard broadcasting, Bluetooth extended broadcasting or Bluetooth periodic broadcasting.
20. A Bluetooth-based smart grid communication device, characterized in that: The communication device is provided in a grid communication master device in the smart grid communication system according to any one of claims 1 to 7, wherein the communication system comprises: a grid communication master device and a grid communication slave device, and the communication device comprises: a service operation data message sending module, configured to send the service operation data message to the power grid communication slave device via a PAwR event after establishing PAwR synchronization with the power grid communication slave device; wherein the PAwR event includes one or more PAwR sub-events, and when the service operation data message is sent to the power grid communication slave device via the PAwR event, a specified service operation data message is sent to one or more specified power grid communication slave devices via the PAwR sub-events; The service operation data message response receiving module is configured to receive service response data corresponding to the designated service operation data message returned by the one or more designated power grid communication slave devices through the PAwR sub-event.
21. A Bluetooth-based smart grid communication device, characterized in that: The communication device is provided in a grid communication slave device in the smart grid communication system according to any one of claims 1 to 7, wherein the communication system comprises: a grid communication master device and a grid communication slave device, and the communication device comprises: a service operation data message receiving module, configured to obtain the service operation data message sent by the power grid communication master device through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information; The business operation data message response sending module is configured to send the business response data corresponding to the business operation data message to the power grid communication master device in a time division multiple access (TDMA) manner through a PAwR sub-event corresponding to the group number of the power grid communication slave device in the local configuration information according to the short address of the power grid communication slave device in the local configuration information; wherein the group number and the short address are used by the power grid communication master device to uniquely address the power grid communication slave device when conducting Bluetooth communication with the power grid communication slave device without establishing a Bluetooth connection with the power grid communication slave device.
22. An electronic device, characterized in that: Comprises a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the communication method according to any one of claims 8 to 19.
23. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the communication method according to any one of claims 8 to 19 is implemented.
24. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the communication method according to any one of claims 8 to 19 is implemented.
Citation Information
Patent Citations
Bluetooth headset control method and system, storage medium and electronic equipment
CN118647010A
Wireless methods, devices and systems having operating parameter updates via periodic, broadcast message
US20240276304A1