Bluetooth-based smart power grid communication method, device and system, electronic equipment and storage medium
By adopting the Bluetooth module with PAwR function in the smart grid, efficient and reliable power meter data acquisition is achieved without being limited by the number of connections, and the efficiency and reliability problems of traditional Bluetooth communication methods in large-scale data acquisition are solved.
Patent Information
- Application Number
- CN202411410586.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-10
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-10-10
AI Technical Summary
Traditional Bluetooth communication methods are difficult to meet the efficiency and reliability requirements of large-scale power meter data acquisition due to problems such as limited connection number and congestion of broadcast channels in smart grids.
Using the responsive periodic broadcast (PAwR) function, by integrating Bluetooth modules that support PAwR function in the power grid communication master and slave device, one-to-many two-way communication is achieved without establishing a traditional connection, through The group number and short address are uniquely addressed to realize time-division multiple access TDMA mode data transmission.
It significantly improves the efficiency and reliability of smart grid communication, breaks through the limit on the number of connections, supports two-way communication between the main equipment of the grid communications and thousands of slave equipment, and optimizes resource utilization and system stability.
Smart Images

Figure CN119277474A_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] In the power system, the widespread application of Internet of Things technology has greatly promoted the intelligentization of the power grid. Most traditional energy meters use infrared communication technology for data transmission, but infrared communication has limitations such as strong directionality, susceptibility to environmental interference and short communication distance, which makes it difficult to meet the needs of modern smart grids for efficient and reliable data transmission. Therefore, in recent years, the energy meters in the State Grid Internet of Things have gradually adopted Bluetooth technology to replace infrared communication, which has become the mainstream method of data transmission for energy meters.
[0003] Bluetooth technology has been widely used in the field of Internet of Things due to its short distance, low power consumption, high security and easy integration. In the State Grid Internet of Things meter, each electric energy meter has a built-in Bluetooth module, which enables external devices (such as meter readers, circuit breaker controllers, etc.) to communicate with the electric energy meter through Bluetooth connection, realizing functions such as remote meter reading and circuit breaker control, greatly improving the operating efficiency and management level of the power system.
[0004] However, with the deepening of smart grid construction, higher requirements are put forward for the efficiency and reliability of data collection of electric energy meters. The traditional Bluetooth communication method is mainly based on Bluetooth connection, and data is transmitted on the data channel after the connection is established. However, limited by the RAM resources of the internal processor of Bluetooth, a master device can usually only connect to a limited number of slave devices (generally about 10), and the State Grid's requirement for the Bluetooth connection of IoT meters is two masters and three slaves, that is, a device can be connected to up to three Bluetooth slave devices when it is a Bluetooth master device, and can be connected to up to two Bluetooth master devices when it is a Bluetooth slave device. This greatly limits the number of electric energy meters that a single Bluetooth master device can connect and manage at the same time. When large-scale electric energy meter data is collected, this connection method obviously cannot meet the needs, resulting in low data collection efficiency, and may even miss some data due to insufficient connections.
[0005] In actual applications, a smart meter box or rail meter may need to connect up to 32 or even more energy meters for real-time data collection. If the traditional Bluetooth connection method is used, it will not be possible due to the limited number of connections. In addition, even if the Bluetooth broadcast method is used for data collection, it will face problems such as crowded broadcast channels, many interferences, and low communication reliability, which makes it difficult to meet the needs 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 issue that needs to be addressed. 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 the service 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 service operation data message is sent to the power grid communication slave device through the PAwR event, send the specified service operation data message to one or more specified power grid communication slave devices through the PAwR sub-event, and receive the service response data corresponding to the specified service operation data message returned by the one or more specified power grid communication slave devices through 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 for 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 in the following manner according to a locally maintained configuration information mapping table:
[0013] Establishing a BLE GATT connection with the power grid communication slave device, including: 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;
[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 corresponding to the MAC address of the power grid communication slave device in the configuration information mapping table, 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;
[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 in the following manner according to a locally maintained configuration information mapping table:
[0017] 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 and obtains the configuration information matching its own MAC address in the configuration information mapping table; 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 an extended broadcast indication message including first synchronization information on a 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, wherein 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, 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 so as to establish PAwR synchronization with the power grid communication slave device comprises:
[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 duration.
[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 in 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 step of sending the service operation data message to the power grid communication slave device through a PAwR event on a designated data channel according to the second synchronization information and the third synchronization information includes:
[0027] 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 and at the sending time indicated by the second synchronization information; 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; and sending the AUX_SYNC_SUBEVENT_IND message at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information when sending each PAwR sub-event;
[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 a 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 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, it is also configured to: establish PAwR synchronization with the power grid communication master device, including:
[0031] 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;
[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 on the secondary broadcast physical channel corresponding to the channel 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; the receiving of 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, at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information, receiving the AUX_SYNC_SUBEVENT_IND message;
[0037] The method of acquiring 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, and sending the 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, comprises:
[0038] After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with 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, 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 power grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the power 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 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, the communication method includes:
[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 an extended broadcast indication message including first synchronization information on a 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, wherein 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, 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 so as to establish PAwR synchronization with the power grid communication slave device comprises:
[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 duration.
[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 in 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 step of sending the service operation data message to the power grid communication slave device through a PAwR event on a designated data channel according to the second synchronization information and the third synchronization information includes:
[0052] 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 and at the sending time indicated by the second synchronization information; 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; and sending the AUX_SYNC_SUBEVENT_IND message at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information when sending each PAwR sub-event;
[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 a 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, wherein the description information of the service operation data message includes: a byte length of the service operation data message and a priority of the service operation data message;
[0057] Acquire 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 situation 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 receiving 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] The description information of the historical business operation data message, the equipment performance parameters of the power grid communication slave device receiving 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, 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 message are used 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 the back propagation 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, the communication method is applied to a power grid communication slave device in a smart grid communication system, the communication system includes: a power grid communication master device and a power 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 for 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 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 communication method further includes: establishing PAwR synchronization with the power grid communication master device, including:
[0066] 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;
[0067] 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 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 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 the offset relative to the sending time of the ADV_EXT_IND message; the second synchronization information includes: the data channel information, the time offset information and the PAwR event interval for sending the auxiliary synchronization indication message; the third synchronization information includes: the PAwR sub-event interval, the number of PAwR sub-events, the PAwR sub-event response time slot delay and the PAwR sub-event response time 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; the receiving of 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, at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information, receiving the AUX_SYNC_SUBEVENT_IND message;
[0072] The method of acquiring 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, and sending the service response data corresponding to the service 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 according to the short address of the power grid communication slave device in the local configuration information, comprises:
[0073] After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with 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, 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 power grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the power grid communication slave device in the local configuration information.
[0076] 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 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 in the following manner according to a locally maintained configuration information mapping table:
[0078] Establishing a BLE GATT connection with the power grid communication slave device, including: 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;
[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 the reply confirmation information of 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 in the following manner according to a locally maintained configuration information mapping table:
[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 broadcasting 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 comprises: a grid communication master device and a grid communication slave device, wherein the communication device comprises:
[0083] A service operation data message sending module is configured to send the service 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 service operation data message is sent to the power grid communication slave device through the PAwR event, a specified service operation data message is sent to one or more specified power grid communication slave devices through the PAwR sub-event;
[0084] The service operation data message response receiving module is configured to receive service response data corresponding to the specified service operation data message returned by the one or more specified 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 comprises: a grid communication master device and a grid communication slave device, and the communication device comprises:
[0086] A service operation data message receiving module is 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 for 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 electronic device is provided in an embodiment of the present disclosure, 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 aspect and the third aspect.
[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, a computer program product is provided in an embodiment of the present disclosure, comprising a computer program, characterized in that when the computer program is executed by a processor, the communication method described in any one of the second aspect and the third aspect of the claims is implemented.
[0091] According to the technical solution provided by the embodiment of the present disclosure, by integrating a Bluetooth module supporting the PAwR function in 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 including 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 service operation data message to the power grid communication slave device, a periodic broadcast PAwR mechanism with a response is used. After PAwR synchronization is established with the power grid communication slave device, the service 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 service operation data message is sent to the power grid communication slave device through the PAwR event, the power grid communication master device sends the service 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. When the power grid communication slave device is in a 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 achieved 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 present 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 A structural block diagram of a Bluetooth-based smart grid communication system according to an embodiment of the present disclosure is shown;
[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;
[0098] Figure 5 A flowchart showing a PAwR synchronization process between a power grid communication slave device and a power grid communication master device according to an embodiment of the present disclosure;
[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 flow chart showing a Bluetooth-based smart grid communication method according to an embodiment of the present disclosure is shown;
[0101] Figure 8 A flowchart showing 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] Fig. 9 A flow chart showing another Bluetooth-based smart grid communication method according to an embodiment of the present disclosure;
[0103] Fig.10 A structural block diagram of a Bluetooth-based smart grid communication device according to an embodiment of the present disclosure is shown;
[0104] Fig.11 A structural block diagram showing another Bluetooth-based smart grid communication device according to an embodiment of the present disclosure is shown;
[0105] Fig.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, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.
[0108] It should also be noted that, in the absence of conflict, the embodiments and features in 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 prior art communicates based on Bluetooth, the smart meter box or rail meter is unable to achieve real-time data collection with more electric energy meters through Bluetooth connection due to the limited number of connections. If the electric energy meter data is collected on a dedicated broadcast channel through Bluetooth broadcast technology, although this method is quite convenient to implement, 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 the error rate increased. Therefore, when faced with complex scenarios that require processing of large amounts of data communications, the use of traditional Bluetooth broadcasting methods is obviously difficult to meet the needs of efficient and stable data transmission.
[0110] In the face of complex scenarios that require processing of large amounts of data communications, in order to improve the efficiency and reliability of smart grid communications based on Bluetooth communications, the inventors of the present invention have, after careful research and consideration, for the first time forward-lookingly introduced the Bluetooth 5.4 periodic advertising with response (PAwR) function into smart grid communications, and built-in Bluetooth modules that support the PAwR function in smart grid communication devices (such as power grid communication master devices and power grid communication slave devices). By utilizing PAwR's bidirectional, connectionless, one-to-many, TDMA time-sharing, encrypted transmission and other communication characteristics, the power grid communication master device (such as a smart meter box or a rail meter) can simultaneously perform high-frequency, large-volume real-time data collection with multiple power grid communication slave devices (such as electric energy meters or sensors) without being limited by the number of Bluetooth connections.
[0111] Figure 1 FIG. 1 is a block diagram showing a structure 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 taken 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 a periodic broadcast PAwR function with a response. Multiple power grid communication slave devices can be divided into multiple groups, and power grid communication slave devices in different groups have different group numbers. 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 performing 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 by Bluetooth 5.4, it is necessary to ensure that both the power grid communication master device and the power grid communication slave device support Bluetooth 5.4 or higher. The power grid communication master device includes but is not limited to: any one or more of a smart meter box, a rail meter, and a collection device, and the power grid communication slave device includes but is not limited to: any one or more of a smart meter and a sensor.
[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, and 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 group to which the power grid communication slave device belongs; 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, but because they each have a different short address, or, even if the power grid communication slave devices in different groups share the same short address, but because they each have a different group number, 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 communicating with different power grid communication slave devices through Bluetooth.
[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 the power grid communication master device configuring 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 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] Among them, the power grid communication device (including the power grid communication master device and the power grid communication slave device) can use its device address as the Bluetooth MAC (Media Access Control) address to identify and distinguish 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 the area under its jurisdiction in advance so that PAwR events can be broadcast and scanned synchronously 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 acquired 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 sent message of 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. BLE GATT connection refers to: Bluetooth Low Energy Generic Attribute Connection.
[0122] Specifically, it is necessary to ensure that both the power grid communication master device and the power 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 process of establishing a BLE GATT connection is completed through broadcasting, scanning, and connection requests. When the grid communication slave device is to be connected, it will enter the broadcast state and broadcast data packets on public channels (usually 37, 38, and 39); the grid communication master device will switch to the Scanning state and listen for broadcast packets on these broadcast channels. When the grid communication master device determines the grid communication slave device to be connected, it will initiate 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 has completed 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: Configuration 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 broadcasting, Bluetooth extended broadcasting or Bluetooth periodic broadcasting.
[0127] For the above method 1, configuration through BLE GATT connection can ensure stable and reliable data transmission between the power grid communication master device and the power grid communication slave device, thereby ensuring the integrity and accuracy of the configuration information. In addition, BLEGATT supports encryption and authentication mechanisms, which can protect the configuration information from being stolen or tampered with during transmission.
[0128] For the above method 2, since the Bluetooth broadcast method does not require the establishment of a complex connection, the power grid communication slave device only needs to listen to the broadcast to obtain the configuration information, which simplifies the configuration process. In addition, the broadcast method does not need to maintain a long-term connection state, so the power consumption is lower.
[0129] In specific applications, the method you choose depends on the specific application scenario and requirements. If you need to be reliable, secure, and support complex configuration information, you can choose method 1; if you want to be simple, fast, low-power, and not require high security, you can choose method 2.
[0130] After completing the configuration of the grid communication slave device, the grid communication master device can identify and distinguish different grid communication slave devices in the periodic broadcast and response process, so as to send business operation data messages to the designated grid communication slave device and receive the response data of the grid communication slave device to the business operation data message. Before sending the business operation data message to the grid communication slave device through periodic advertising with response, the grid communication master device and the grid communication slave device need to 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 in 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 the present 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 a primary broadcast physical channel and a secondary broadcast physical channel. 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 except 37, 38, and 39), which are also distributed on the LE spectrum.
[0134] Figure 2 FIG. 2 is a 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. Figure 2 As shown, the power grid communication master device is configured to first broadcast a service operation data message on the primary broadcast physical channel ( Figure 2 The invention 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 designated business operation data message to one or more designated power grid communication slave devices through the PAwR sub-event, and receives business response data corresponding to the designated business operation data message returned by the one or more designated power grid communication slave devices.
[0135] According to an embodiment of the present disclosure, sending an extended broadcast indication message including first synchronization information on a primary broadcast physical channel includes:
[0136] An extended broadcast indication ADV_EXT_IND message is sent on the main 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] In the Bluetooth 5.4 specification, the extended broadcast indication message is defined as the ADV_EXT_IND message. "Extended broadcast indication" is the Chinese explanation of "ADV_EXT_IND". The "extended broadcast indication ADV_EXT_IND message" mentioned above is the extended broadcast indication message or ADV_EXT_IND message. The ADV_EXT_IND message is a message type used for broadcasting in Bluetooth low energy (BLE) technology. It is broadcast on the main broadcast physical channel and is used to mark the start of an extended broadcast event. The ADV_EXT_IND message has a detailed definition 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), wherein 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 sending time of the auxiliary broadcast indication message is used to indicate the sending time of the auxiliary broadcast indication message. It is usually an offset relative to the sending time of the ADV_EXT_IND message, expressed in a certain time unit (such as microseconds or Bluetooth clock cycles). The power grid communication slave device can calculate the exact sending time of the AUX_ADV_IND message based on this time offset, and scan on the secondary broadcast physical channel at this time point.
[0140] The channel information for sending the auxiliary broadcast indication message is used to specify the secondary broadcast physical channel on which the AUX_ADV_IND message will be sent. The Bluetooth 5.4 specification defines multiple secondary broadcast physical channels, each of which has a unique number or index. The secondary broadcast physical channel uses the same channel index as the data physical channel. Based on the channel information, the power grid communication slave device can scan on the correct secondary broadcast physical channel to receive the AUX_ADV_IND message.
[0141] The PHY information is physical layer information, which is used to indicate the physical layer type that the AUX_ADV_IND message will use. Bluetooth 5.0 and higher versions support multiple physical layer types, including LE 1M (low power 1Mbit / s), LE 2M (low power 2Mbit / s), LE Coded, etc. Based on the PHY information, the power grid communication slave device can configure its physical layer to match the transmission mode of the AUX_ADV_IND message, thereby ensuring that the broadcast data is correctly received.
[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, number of PAwR sub-events, PAwR sub-event response slot delay and PAwR sub-event response slot duration.
[0144] In the Bluetooth 5.4 specification, the auxiliary broadcast indication message is defined as the AUX_ADV_IND message. "Auxiliary broadcast indication" is the Chinese explanation of "AUX_ADV_IND". The "auxiliary broadcast indication AUX_ADV_IND message" mentioned above is the auxiliary broadcast indication message or AUX_ADV_IND message. The AUX_ADV_IND message is a message type used for broadcasting in Bluetooth low energy (BLE) technology. It is broadcast on a channel other than the primary broadcast physical channel (i.e., the secondary broadcast 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 has a detailed definition 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). Among them, the SyncInfo field is a key field in the AUX_ADV_IND message. In the present disclosure, the SyncInfo field describes the transmission parameters of the auxiliary synchronization indication message, such as the starting channel, time point, cycle interval, etc. 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 slot delay and PAwR sub-event response 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 to 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-arranged PAwR event starts (i.e., the time point when the AUX_SYNC_SUBEVENT_IND message is sent), so as to allow the power grid communication slave device to synchronize and receive subsequent broadcast PAwR event data according to this parameter, 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 determines the frequency of PAwR events, affecting the real-time performance and power consumption of data transmission.
[0149] If a PAwR event contains multiple PAwR sub-events (for example, each PAwR sub-event contains different business operation data packets), then the PAwR sub-event interval defines the time interval between these PAwR sub-events, that is, the time interval between the starting points 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 more PAwR sub-events there are, 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 power 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 in which the power grid communication slave device can send a response, that is, the time interval between the start of two adjacent TDMA response slots in the PAwR sub-event. This parameter can be an integer multiple of 0.625ms, and the valid value range can be 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, the business operation data message is then sent 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 the present disclosure refers to a data packet sent by a power grid communication master device to a power grid communication slave device, which meets the power grid communication specifications (such as DLT645 or DLT698) and is used to perform specific power grid operations or transmit power 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 step of sending the service operation data message to the power grid communication slave device through a PAwR event on a designated data channel according to the second synchronization information and the third synchronization information includes:
[0160] sending one or more PAwR events according to the PAwR event interval in the second synchronization information at the sending time indicated by the second synchronization information and on the data channel corresponding to the data channel information; when sending each PAwR event, 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, 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 one PAwR event including four PAwR sub-events); when sending each PAwR sub-event, at the beginning 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 the 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~RN, where R0~RN correspond to N power grid communication slave devices, 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 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:
[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 a 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 the 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 through broadcast or other means, indicating that the data has been received and processed. For erroneous or lost data, the grid communication master device can re-request the energy meter to send it, or adopt other error recovery mechanisms.
[0164] About power grid communication slave devices:
[0165] 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.
[0166] In the present disclosure, when a power grid communication slave device has not established a connection with a power grid communication master device, it synchronizes with the power grid communication master device by continuously listening to broadcast messages on the primary broadcast physical channel and the secondary broadcast physical channel and the designated data channel in a scanning state, and then synchronously receives business operation data on the data channel.
[0167] Figure 5 A flowchart showing a PAwR synchronization process between a power grid communication slave device and a power grid communication master device according to an embodiment of the present disclosure is shown, including 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 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.
[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 usually specifies the wireless communication technology standard used (such as Bluetooth LE, Zigbee, LoRa, etc.) and the specific configuration under the standard (such as modulation mode, 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 the AUX_ADV_IND message will use for transmission. Based on the parsed PHY information, the power grid communication slave device will adjust the settings of its local physical layer, such as adjusting the frequency, channel, modulation mode, transmission power and other parameters of the wireless module 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 of sending the auxiliary broadcast indication message, 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, and 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.
[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 the second synchronization information and the third synchronization information are obtained, 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 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 is shown. When 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, and sends the 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 power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message, and the ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message are compared with 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. If they are consistent, the designated business operation data message carried in the AUX_SYNC_SUBEVENT_IND message is taken out.
[0179] In step S620, business response data corresponding to the designated business operation data message is generated according to the designated business operation data message.
[0180] Specifically, after the power grid communication slave device obtains the specified business operation data message, it parses it and determines the corresponding business response data through the content carried by the business operation data message. For example: if the business operation data message is an instruction to "obtain the reading of the electric energy meter", the power grid communication slave device obtains the current reading, which usually includes parameters such as total power, current power, voltage, current, etc., and then formats the read electric energy meter reading and other information that may be needed (such as meter status, timestamp, etc.) according to the requirements of the communication protocol to generate a business 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 the power grid communication slave device determines the TDMA response time slot corresponding to the short address of the power grid communication slave device in the local configuration information, it determines it according to the PAwR sub-event response time slot delay and the PAwR sub-event response time slot length in the third synchronization information and in combination with the short address. At the beginning of each PAwR sub-event, after the power grid communication master device sends the AUX_SYNC_IND message, after the preset PAwR sub-event response time slot delay time, the corresponding power grid communication slave device sends the AUX_SYNC_SUBEVENT_RESP message in its allocated time slot. 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 adds 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 sends 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 the scenario of large data volume, thus supporting high-frequency and large-scale communication; moreover, the mechanism has strong scalability, and the power grid communication master device can define the power grid communication slave device that receives 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] In the periodic broadcast and response process between the power grid communication master device and the power grid communication slave device, all transmitted data can be encrypted. For example, strong encryption algorithms such as AES can be used to encrypt broadcast data packets and response data packets, which enhances the security of broadcast data. The encrypted broadcast data can only be decrypted by devices with the same key, ensuring the security of communication and the confidentiality of data.
[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 the key to ensuring coordinated communication between the power grid communication master device and the power grid communication slave device. Through multiple synchronizations (first, second, and third synchronization information), the system can more accurately calibrate the time reference 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 on multiple broadcast physical channels can more effectively utilize the bandwidth and energy resources of Bluetooth communication. 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 the overall efficiency of the system.
[0189] 3. Support large-scale device management and multicast communication. The power grid communication slave devices are grouped and uniquely addressed by group number and short address, so that the power grid communication master device can flexibly send business operation data messages to different groups or individual devices. Multi-level synchronization information helps to ensure that each target device can accurately receive and process data in multicast communication, which is crucial for managing large-scale device networks.
[0190] 4. The design of the synchronization mechanism takes into account possible future expansion requirements and enhances the scalability and flexibility of the system. As the smart grid continues to develop, more devices may join the communication network or more complex communication modes may need to be supported. By using multi-level synchronization information, the system can more easily adapt to these changes without large-scale modifications to the existing architecture.
[0191] 5. Simplified coordination between devices. After receiving synchronization information, the power grid communication slave device can automatically adjust the timing of receiving and sending data according to the local configuration information to keep in sync with the power 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. Support efficient time division multiple access (TDMA) communication. After establishing PAwR synchronization, the power grid communication slave device can return service response data in a time division multiple access manner. This communication method can more effectively utilize communication resources, avoid data conflicts and channel congestion, and thus improve the efficiency and reliability of data transmission.
[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, and provide 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 the ADV_EXT_IND message, the AUX_ADV_IND message and the AUX_SYNC_SUBEVENT_IND message, thereby 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, wherein the communication method is applied to 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. Figure 7 As shown, the communication method includes the following steps S710-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 a 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 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 through a PAwR event on a designated data channel.
[0200] According to an embodiment of the present disclosure, sending an extended broadcast indication message including first synchronization information on a 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, wherein 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, 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 so as to establish PAwR synchronization with the power grid communication slave device comprises:
[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 duration.
[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 in 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 step of sending the service operation data message to the power grid communication slave device through a PAwR event on a designated data channel according to the second synchronization information and the third synchronization information includes:
[0206] 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 and at the sending time indicated by the second synchronization information; 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; and sending the AUX_SYNC_SUBEVENT_IND message at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information when sending each PAwR sub-event;
[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 a 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 obtained, and 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 includes: network delay, packet loss rate, network signal strength and / or interference situation data, and the device performance parameters include: device type and / or processing speed and / or response time.
[0212] In step S830, 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.
[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 obtain 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, a higher prediction accuracy can be obtained. In practical applications, if you pursue higher accuracy and model complexity, 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 trees (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 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, 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 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 the business operation data message and the specific conditions of multiple power grid communication slave devices. Through the above steps S810 and S820, the description information of the business operation data message and the performance parameters of the power grid communication slave device and the current transmission network condition data are collected respectively. This information provides a comprehensive input for the subsequent synchronization information prediction, making the predicted synchronization information more accurate and better adapted to the actual communication environment, thereby improving the accuracy of the synchronization information. In addition, the traditional synchronization information setting often requires manual intervention and is configured according to experience or fixed rules. However, through the automated prediction method of steps S810 to S830, the need for manual intervention can be greatly reduced, and the operation and maintenance costs can be reduced. At the same time, the prediction method based on the machine learning model can automatically learn and optimize the synchronization strategy, further improving the intelligence level of the system. In addition, by inputting the collected data into the pre-trained neural network model, step S830 can comprehensively consider multiple factors such as the priority of the business message, the device processing speed, the response time, the network delay, the packet loss rate, etc., and predict the synchronization information that is most suitable for the current communication environment. This method based on big data and machine learning can dynamically adjust the synchronization strategy, optimize the system performance, and improve the efficiency and reliability of data transmission.
[0219] Fig. 9 A flowchart 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. Fig. 9 As shown, the communication method includes the following steps S910-S920:
[0220] In step S910, the service 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.
[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 for 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 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 communication method further includes: establishing PAwR synchronization with the power 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 of 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 the offset relative to the sending time of the ADV_EXT_IND message; the second synchronization information includes: the data channel information, the time offset information and the PAwR event interval for sending the auxiliary synchronization indication message; the third synchronization information includes: the PAwR sub-event interval, the number of PAwR sub-events, the PAwR sub-event response time slot delay and the 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 of acquiring 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, and sending the service response data corresponding to the service 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 according to the short address of the power grid communication slave device in the local configuration information, comprises:
[0230] After receiving the AUX_SYNC_SUBEVENT_IND message, parse the AUX_SYNC_SUBEVENT_IND message, obtain the ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message, and compare the obtained ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device that receives the AUX_SYNC_SUBEVENT_IND message with 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. If they are consistent, take out the designated business operation data message carried in the AUX_SYNC_SUBEVENT_IND message.
[0231] Generate business response data corresponding to the designated business operation data message according to the designated business 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 power grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the power grid communication slave device in the local configuration information.
[0233] According to an embodiment of the present disclosure, the power grid communication slave device saves the local configuration information, and 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 to the MAC address of the power grid communication slave device one by one, 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.
[0234] According to an embodiment of the present disclosure, the power grid communication master device configures the power grid communication slave device in the following manner according to a locally maintained configuration information mapping table:
[0235] Establishing a BLE GATT connection with the power grid communication slave device, including: 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 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 in the following manner according to a locally maintained configuration information mapping table:
[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 broadcasting includes: Bluetooth standard broadcasting, Bluetooth extended broadcasting or Bluetooth periodic broadcasting.
[0238] Fig.10 The structure block diagram of a Bluetooth-based smart grid communication device according to an embodiment of the present disclosure is shown. The communication device is set 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. Fig.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] Fig.11The structure block diagram of another Bluetooth-based smart grid communication device according to an embodiment of the present disclosure is shown. The communication device is set 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. Fig.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 the 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 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 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 for 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.
[0240] According to the technical solution provided by the embodiment of the present disclosure, by integrating a Bluetooth module supporting the PAwR function in 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 including 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 service operation data message to the power grid communication slave device, a periodic broadcast PAwR mechanism with a response is used to first send an extended broadcast indication message including first synchronization information on a broadcast physical channel. Then, based on the first synchronization information, an auxiliary broadcast indication message including 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. After that, based on the first synchronization information, According to the second synchronization information and the third synchronization information, the service operation data message is sent to the power grid communication slave device through the PAwR event on the designated data channel, and the power grid communication slave device, in the scanning state, receives the PAwR sub-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 in the PAwR event according to the local configuration information to obtain the service operation data message sent by the power grid communication master device, and sends the service response data corresponding to the service operation data message to the power grid communication master device through the received PAwR sub-event in time division multiple access TDMA mode according to the short address of the power grid communication slave device in the local configuration information. In this way, one-to-many two-way communication between power grid devices is realized on the data channel without establishing pairing and traditional Bluetooth connection, and based on PAwR, a more scalable, one-to-many, two-way transmission network topology is created between power grid devices, and the power grid communication master device can realize two-way communication with thousands of power grid communication slave devices without limiting the specific number of power grid communication slave devices, thereby significantly improving the efficiency and reliability of communication.
[0241] Fig.12 1 shows a structural block diagram of an electronic device according to an embodiment of the present disclosure. Fig.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 a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs 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, wherein when the computer program is executed by a processor, the communication method described in any one of the present disclosure is implemented.
[0244] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.
Claims
1. A Bluetooth-based smart grid communication system, characterized in that: The communication system comprises: 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 the service 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 service operation data message is sent to the power grid communication slave device through the PAwR event, send the specified service operation data message to one or more specified power grid communication slave devices through the PAwR sub-event, and receive the service response data corresponding to the specified service operation data message returned by the one or more specified power grid communication slave devices through the PAwR sub-event; 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 for 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.
2. The communication system according to claim 1, characterized in that 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 to the MAC address of the power grid communication slave device one by one, 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, characterized in that 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, including: 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 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 corresponding to the MAC address of the power grid communication slave device in the configuration information mapping table, 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; 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, characterized in that: 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 and obtains the configuration information matching its own MAC address in the configuration information mapping table; 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, characterized in that: 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.
6. The communication system according to claim 5, characterized in that: 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, wherein 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 so as to establish PAwR synchronization with the power grid communication slave device comprises: 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 duration.
7. The communication system according to claim 6, characterized in that: 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 in 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 step of sending the service operation data message to the power grid communication slave device through a PAwR event on a designated data channel according to the second synchronization information and the third synchronization information includes: 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 and at the sending time indicated by the second synchronization information; 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; and sending the AUX_SYNC_SUBEVENT_IND message at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information when sending each PAwR sub-event; 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 a 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.
8. The communication system according to claim 7, 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 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; 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 on the secondary broadcast physical channel corresponding to the channel 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.
9. The communication system according to claim 8, 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, at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information, receiving the AUX_SYNC_SUBEVENT_IND message; The method of acquiring 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, and sending the 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, comprises: After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with 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, 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 power grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the power grid communication slave device in the local configuration information.
10. A Bluetooth-based smart grid communication method, characterized in that: The communication method is applied to a power grid communication master device in a smart grid communication system, the communication system comprising: a power grid communication master device and a power 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.
11. The communication method according to claim 10, characterized in that: 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.
12. The communication method according to claim 11, characterized in that: 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, wherein 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 so as to establish PAwR synchronization with the power grid communication slave device comprises: 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 duration.
13. The communication method according to claim 12, characterized in that: 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 in 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 step of sending the service operation data message to the power grid communication slave device through a PAwR event on a designated data channel according to the second synchronization information and the third synchronization information includes: 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 and at the sending time indicated by the second synchronization information; 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; and sending the AUX_SYNC_SUBEVENT_IND message at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information when sending each PAwR sub-event; 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 a 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.
14. The communication method according to claim 11, characterized in that: 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, wherein the description information of the service operation data message includes: a byte length of the service operation data message and a priority of the service operation data message; Acquire 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 situation 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.
15. The communication method according to claim 14, characterized in that: The neural network model is trained in the following manner: 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 receiving 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; The description information of the historical business operation data message, the equipment performance parameters of the power grid communication slave device receiving 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, 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 message are used 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 the back propagation algorithm; The neural network model is trained using the sending records of the historical business operation data messages.
16. A Bluetooth-based smart grid communication method, characterized in that: The communication method is applied to a power grid communication slave device in a smart grid communication system, the communication system comprising: a power grid communication master device and a power 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 for 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.
17. The communication method according to claim 16, characterized in that: Before acquiring 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 communication method further includes: establishing 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 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; 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 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 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 the offset relative to the sending time of the ADV_EXT_IND message; the second synchronization information includes: the data channel information, the time offset information and the PAwR event interval for sending the auxiliary synchronization indication message; the third synchronization information includes: the PAwR sub-event interval, the number of PAwR sub-events, the PAwR sub-event response time slot delay and the PAwR sub-event response time 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.
18. The communication method according to claim 17, 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, at the beginning of the PAwR sub-event response time slot delay indicated by the third synchronization information, receiving the AUX_SYNC_SUBEVENT_IND message; The method of acquiring 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, and sending the service response data corresponding to the service 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 according to the short address of the power grid communication slave device in the local configuration information, comprises: After receiving the AUX_SYNC_SUBEVENT_IND message, parsing the AUX_SYNC_SUBEVENT_IND message, obtaining the ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message, and comparing the obtained ID of the power grid communication master device in the AUX_SYNC_SUBEVENT_IND message and the group number of the power grid communication slave device receiving the AUX_SYNC_SUBEVENT_IND message with 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, 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 power grid communication master device through a TDMA response time slot in the received PAwR sub-event corresponding to the short address of the power grid communication slave device in the local configuration information.
19. The communication method according to claim 16, characterized in that: 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 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.
20. The communication method according to claim 19, characterized in that: 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, including: 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 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 the reply confirmation information of the power grid communication slave device after receiving the configuration information is received.
21. The communication method according to claim 19, characterized in that: 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 broadcasting includes: Bluetooth standard broadcasting, Bluetooth extended broadcasting or Bluetooth periodic broadcasting.
22. A Bluetooth-based smart grid communication device, characterized in that: The communication device is arranged in 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 device comprising: A service operation data message sending module is configured to send the service 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 service operation data message is sent to the power grid communication slave device through the PAwR event, a specified service operation data message is sent to one or more specified power grid communication slave devices through the PAwR sub-event; The service operation data message response receiving module is configured to receive service response data corresponding to the specified service operation data message returned by the one or more specified power grid communication slave devices through the PAwR sub-event.
23. A Bluetooth-based smart grid communication device, characterized in that: The communication device is arranged in a power grid communication slave device in a smart grid communication system, the communication system comprising: a power grid communication master device and a power grid communication slave device, the communication device comprising: A service operation data message receiving module is 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 for 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.
24. An electronic device, characterized in that: It 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 10 to 21.
25. 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 10 to 21 is implemented.
26. 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 10 to 21 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