A bluetooth-based charging pile control system and method

By filtering the continuous requests and connection times of Bluetooth devices, binding behavior identifiers, and optimizing channel allocation, the problems of misallocation of permissions and communication interference in the Bluetooth charging pile control system were solved, and a stable operation chain and task execution were achieved.

CN120526570BActive Publication Date: 2026-04-24CHANGXING POTEK ELECTRONICS & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHANGXING POTEK ELECTRONICS & TECH CO LTD
Filing Date
2025-05-29
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing Bluetooth charging pile control systems fail to effectively identify and manage discontinuous request behaviors, leading to misassignment of permissions, unclear relationships between control commands and operational behaviors, delayed identification of abnormal states, frequent communication interference, and impact on the continuity of task execution and the integrity of the control chain.

Method used

By extracting Bluetooth addresses and connection times, devices with the same number of consecutive requests are filtered out, behavior identifiers are bound and interruptions are identified, channel allocation is optimized, control commands are ensured to correspond in numerical order, the operation chain is kept intact, and communication conflicts are reduced.

Benefits of technology

It achieves precise control over permission allocation, maintains the continuity of the operation chain and the stability of communication, reduces the probability of communication conflicts, and ensures the continuity of task execution and the integrity of the control chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120526570B_ABST
    Figure CN120526570B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of charging control, in particular to a charging pile control system and method based on Bluetooth, which comprises a Bluetooth access module, an instruction behavior management module, a charging behavior identification module, a communication channel control module and a charging control issuing module. In the application, abnormal connection is filtered through request frequency and registration data double screening, the authority distribution range is limited, the control instruction and the behavior identification are corresponded according to the numbering sequence, the operation chain is maintained and the instruction sequence is kept complete, the abnormal paragraph is positioned by a response state marker, the interruption position is independently identified in the local behavior structure without the need of full-process dependence, the channel allocation is completed according to the comparison of the interference level and the idle state to match the channel, the multi-node conflict is avoided, the communication conflict probability is reduced, the control instruction is written according to the consistent condition of the state field, the task injection path under the condition of uninterrupted communication is formed, and the stable trigger structure in the Bluetooth path is supported.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of charging control technology, and in particular to a Bluetooth-based charging pile control system and method. Background Technology

[0002] The field of charging control technology encompasses the dynamic management, distribution, and regulation of electrical energy, as well as the optimized scheduling of energy transmission paths within power systems, particularly in the control of power supply interfaces for battery-powered equipment. The core components of this technology include management strategies for the energy input and output of electric equipment, methods for adjusting charging current and voltage parameters, control methods for energy conversion efficiency, and state identification and control logic during the charging process. Charging control is widely used in electric vehicles, mobile devices, and portable energy systems, and is gradually integrating wireless communication technology to achieve remote monitoring, authentication, and data reporting. The overall technical system covers power supply path identification, energy flow optimization control, power electronic interface design, power supply access coordination, and charging strategy switching logic, forming a complete charging management system from the grid side to the end-load side.

[0003] The Bluetooth-based charging pile control system refers to a control device and system structure that uses short-range wireless communication to execute status commands and manage operational permissions for charging piles. The technical aspects addressed in this patent include user identification upon access to the charging pile, transmission of charging task initiation commands, real-time acquisition of operational status information, and detection and handling of communication anomalies. The system uses the Bluetooth protocol to achieve information transmission between the main control device and the user terminal, establishes a charging permission authentication channel through a physical layer connection, controls the on / off logic of the charging relay according to user terminal commands, and simultaneously encodes and reports the operational data to the processing platform for recording operational behavior and status feedback. The entire process constructs a closed-loop control path with Bluetooth as the sole communication medium, forming a local control mechanism independent of the public network communication network.

[0004] Existing technologies use single connection requests as the judgment criterion, failing to consider the time matching characteristics of access records and registration table data. This leads to some discontinuous request behaviors being identified as legitimate connections, resulting in incorrect permission allocation. There is no numbered binding relationship between control commands and operational behaviors, leading to ambiguous behavior trigger paths and unclear execution boundaries between different types of commands, easily causing confusion of control targets during overlapping behaviors. Abnormal state identification relies on centralized state management, resulting in delayed responses in local control execution scenarios and difficulty in locating the control interruption point at the initial abnormality. The backup channel allocation process ignores the current channel usage status, relying solely on a preset list for rotation, leading to frequent instances of multiple Bluetooth nodes sharing channels, increasing communication interference and the probability of feedback failure. The task command injection process relies on network state synchronization; when the communication chain is unstable or the master control node malfunctions, there is a risk of interruption between command uploading and distribution, affecting the continuity of task execution and the integrity of the control chain. Summary of the Invention

[0005] The purpose of this invention is to address the shortcomings of existing technologies by proposing a Bluetooth-based charging pile control system and method.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: A Bluetooth-based charging pile control system includes: a Bluetooth access module extracting the Bluetooth address and connection time recorded in the Bluetooth identification module; when the number of consecutive requests and the number of registrations are consistent within the recording period, the Bluetooth address is written into the control access area to obtain a list of accessed Bluetooth devices; an instruction behavior management module, based on the access results of the accessed Bluetooth device list, reads the instruction number and behavior identifier transmitted by the controller, numbers them sequentially and adds a control index, processes the Bluetooth address and index item accordingly to obtain a behavior identifier binding result; a charging behavior identification module, based on the behavior identifier binding result, extracts feedback markers, locates continuous unresponsive segments, groups the Bluetooth address corresponding to the interruption segment with the index number to obtain a behavior interruption identification result; a communication channel control module, based on the behavior interruption identification result, extracts the interference marker and allocation status of the backup channel, selects an idle channel and binds it to the target Bluetooth address control chain, registers the channel number, and obtains the interruption segment communication channel allocation result; a charging control issuing module, based on the interruption segment communication channel allocation result, when the control terminal response marker and Bluetooth frame bit status are consistent, writes the control frame to the task buffer to obtain the control instruction for the Bluetooth path.

[0007] As a further embodiment of the present invention, the access Bluetooth device list includes access Bluetooth address, connection request time, number of matches, and number of consecutive requests; the behavior identifier binding result includes Bluetooth address, control index information, behavior identifier number, and binding pairing data; the behavior interruption identification result includes interruption field position, response status marker segment, and mapping relationship between control index number and Bluetooth address; the communication channel allocation result includes channel number, Bluetooth address control chain, channel switching action registration item, and configurable channel information; and the control command includes control frame sequence, status bit comparison field, charging behavior index, and trigger action Bluetooth address record item.

[0008] As a further embodiment of the present invention, the Bluetooth access module includes: an address record extraction submodule that obtains the access Bluetooth address and connection request time recorded by the Bluetooth identification module in the Bluetooth charging pile control, extracts all Bluetooth addresses and corresponding times within the current recording period, and performs clustering and merging processing on data with the same Bluetooth address based on the connection request time to obtain an address aggregation table within the period; a connection frequency statistics submodule that extracts the registration records of Bluetooth addresses from the access registration table based on the address aggregation table within the period, filters Bluetooth address groups whose registration quantity matches the aggregation frequency, and synchronously compares the two types of data according to the address field to obtain a registration request consistency dataset; and an access status filtering submodule that extracts Bluetooth address data whose connection frequency and registration quantity are consistent within the recording period based on the registration request consistency dataset, writes it into the Bluetooth control access area, and obtains a list of access Bluetooth devices.

[0009] As a further embodiment of the present invention, the instruction behavior management module includes: an instruction number extraction submodule, which reads the control instruction number and corresponding marker time transmitted by the charging pile main controller based on the Bluetooth address recorded in the list of access Bluetooth devices, extracts the instruction number associated with each Bluetooth address and sorts it according to the transmission time, divides the belonging boundary according to the time order, and obtains the Bluetooth address instruction distribution value; a behavior sequence sorting submodule, which calls the Bluetooth address instruction distribution value, extracts the operation behavior identifier corresponding to each group of instructions, arranges the behavior identifiers in sequence according to the transmission order, assigns behavior segment position information to the behavior identifiers according to the sequence number, and combines the sequence number and behavior identifier to obtain the behavior sorting segment identifier value; and a control index pairing submodule, which extracts the marked segment position and index field in each sequence based on the behavior sorting segment identifier value, and determines the relationship between the corresponding Bluetooth address field and the control index field to obtain the behavior identifier binding result.

[0010] As a further embodiment of the present invention, the charging behavior recognition module includes: a feedback field extraction submodule, which extracts response status markers from the feedback field of the control status frame corresponding to each index in the behavior identifier binding result, extracts all marker values ​​within the recording period and arranges them in segments according to the index number to obtain a feedback marker aggregation interval value; a response status aggregation submodule, which calls the feedback marker aggregation interval value, retrieves the response status field of adjacent markers in each segment, identifies the distribution position of continuous repetition of status field values, calculates the switching frequency value of the status field in each segment from non-response to response, and marks the field segments whose frequency values ​​exceed the switching frequency reference to obtain a repetitive status segment distribution value; and a behavior segment marking submodule, which extracts the Bluetooth address and index number corresponding to the marked concentrated area based on the repetitive status segment distribution value, writes the segments with repeated responses in the same Bluetooth address into the structure table according to the segment order, locates the location range of the interrupted behavior segment, and obtains the behavior interruption recognition result.

[0011] As a further aspect of the present invention, the calculation formula for the switching frequency value of the status field within each segment changing from non-response to response is specifically as follows: ;in, Indicates the first The switching frequency value for the segment status field to change from non-acknowledgment to acknowledgement. Indicates the first The number of transitions from a non-responding state to a responding state within a segment. This represents the cumulative frame distance between the transition position and the starting field in the segment. This indicates the average position index value of the response field corresponding to each state change in the segment. Indicates the first Section 1 The response value of each response status field. Indicates the first The average value of all response status field values ​​in the segment. Indicates the first The number of blocks containing state change behaviors within a segment. This represents the global average number of state behavior blocks across all paragraphs. Indicates the first Total number of response status fields in the segment.

[0012] As a further embodiment of the present invention, the communication channel control module includes: a backup channel extraction submodule, which extracts the interference flag, communication interruption count, and current channel allocation status of each channel from the backup channel list based on the Bluetooth addresses listed in the behavior interruption identification results, rearranges all channel numbers in chronological order, extracts a set of channel numbers without associated communication flags, and obtains a pool of available channel numbers; a conflict relationship screening submodule, which calls the pool of available channel numbers, extracts the connection field associated with the channel number based on the communication number corresponding to the current Bluetooth address, identifies data segments with duplicate flags or cross-use in the channel, calculates the conflict field density value of each channel number, and filters channel numbers with a density value of zero to obtain a group of conflict-free channel numbers; and a channel switching execution submodule, which extracts the channel number with the highest idleness tag based on the group of conflict-free channel numbers, writes the Bluetooth address corresponding to the number into the channel allocation table, records the corresponding channel number and address binding result, and writes a switching identifier to obtain the interrupted segment communication channel allocation result.

[0013] As a further aspect of the present invention, the formula for calculating the collision field density value of each channel number is as follows: ;in, Represents channel number Conflict field density value, Represents channel number In the Conflict flag values ​​on each field Representing the The maximum collision flag value among all channel numbers in each field. Represents channel number In the Cross-conflict weighting coefficients on the field Represents channel number The number of fields traversed Represents channel number The average of the conflict markers across all its fields.

[0014] As a further embodiment of the present invention, the communication channel control module includes: a channel response extraction submodule, which reads the instruction response marker segment of the charging pile control terminal based on the Bluetooth address and channel number in the interrupted communication channel allocation result, extracts and serializes the response field corresponding to each group of Bluetooth addresses to obtain the channel response field sequence value; a status field comparison submodule, which calls the channel response field sequence value, extracts the current status bit in the master control Bluetooth frame, compares the two field sequences bit by bit, filters the index segments with consistent field values ​​and records the field correspondence to obtain the field synchronization mapping identifier group; and a behavior information binding submodule, which extracts the behavior number and Bluetooth address in the corresponding index of the field based on the field synchronization mapping identifier group, writes them into the task buffer and binds them as a set of control records as trigger items to obtain the control instruction of the Bluetooth path.

[0015] A Bluetooth-based charging pile control method includes the following steps: S1: Obtain the access Bluetooth address and connection time recorded by the Bluetooth identification module, filter the connection requests within the period, match the field values ​​of the address record connection count with the registration record, extract the addresses whose request count matches the registration count and write them into the access control area to obtain the access Bluetooth device list.

[0016] S2: Based on the address in the list of access Bluetooth devices, read the instruction number and behavior identifier issued by the controller, sequentially number and pair them, organize the pairing results into an index group according to the address dimension, sort the number sequence and append it to the behavior field to obtain the behavior identifier binding result.

[0017] S3: Based on the number field in the behavior identifier binding result, extract the response marker in the corresponding status frame, locate the start and end of the continuous abnormal field, generate abnormal segment marker data according to the number and address, and obtain the behavior interruption identification result.

[0018] S4: Based on the Bluetooth address in the behavior interruption identification result, read the interference mark and allocation status of the backup channel, filter the channel number with zero interference and no occupation, record the allocable channel and address pairing information, and obtain the interruption segment communication channel allocation result.

[0019] S5: Based on the address and channel number in the interrupted communication channel allocation result, extract the control terminal instruction response field and the master control status field, write the control frame at the consistent field position and register the behavior and address fields to obtain the control instruction of the Bluetooth path.

[0020] Compared with the prior art, the advantages and positive effects of the present invention are as follows: In the present invention, abnormal connections are filtered by dual screening of request frequency and registration data, the scope of permission allocation is limited, control instructions and behavior identifiers correspond in numerical order, the operation chain is maintained and the instruction sequence is kept intact, abnormal segments are located by response status markers, the interruption position is independently identified in the local behavior structure without relying on the whole process, channel allocation is completed by comparing interference level and idle state to complete channel matching, avoid multi-node conflicts, reduce the probability of communication conflicts, control instructions are written according to the consistency condition of status field, forming a task injection path under the condition of uninterrupted communication, and supporting a stable triggering structure within the Bluetooth path. Attached Figure Description

[0021] Figure 1 This is a system flowchart of the present invention.

[0022] Figure 2 This is a system block diagram of the present invention.

[0023] Figure 3 This is a flowchart of the method steps of the present invention. Detailed Implementation

[0024] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.

[0025] In the description of this invention, it should be understood that the terms "length," "width," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," etc., indicating orientation or positional relationships, are based on the orientation or positional relationships shown in the accompanying drawings and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, in the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0026] Please see Figure 1 A Bluetooth-based charging pile control system includes: a Bluetooth device access module that obtains the access Bluetooth address and connection request time recorded by the Bluetooth identification module in the Bluetooth-based charging pile control, extracts the matching record of the current Bluetooth address from the access registration table, extracts the total number of connection requests of the address in the recent period, filters the connection frequency and the number of matching records, and writes the Bluetooth address into the control access area when the number of consecutive requests of the address and the number of registration records are consistent within the recording period, thereby obtaining a list of access Bluetooth devices.

[0027] The instruction behavior binding management module reads the control instruction number transmitted by the charging pile main controller based on the Bluetooth address recorded in the list of access Bluetooth devices, extracts the operation behavior identifier sequence corresponding to the Bluetooth address, arranges the control instruction number and operation behavior identifier in the corresponding order, numbers the arranged behavior identifiers in sequence and adds control index information, and pairs the Bluetooth address with the control index information to obtain the behavior identifier binding result.

[0028] The charging behavior interruption identification module extracts the response status marker from the feedback field based on the control status frame corresponding to each index in the behavior identifier binding result, identifies the continuous distribution position of the response status marker in the same behavior segment, repeatedly accumulates the response status marker and marks the segment where the interruption field is located, and maps and writes the Bluetooth address and control index number to obtain the behavior interruption identification result.

[0029] The communication channel switching control module, based on the Bluetooth addresses listed in the behavior interruption identification results, traverses the interference markers, communication interruption counts, and channel status records of the channels in the backup channel list, extracts the reconfigurable channels based on the channel allocation vacancies and the non-conflicting items of the current address, assigns the channels to the Bluetooth address control chain, registers the switching action and channel number, and obtains the communication channel allocation results for the interruption segment.

[0030] The charging control status dispatch module reads the instruction response flag segment in the charging pile control terminal interface structure based on the Bluetooth address and channel number in the interrupt segment communication channel allocation result. It compares the flag segment with the current status bit in the master control Bluetooth frame field by field. If the two statuses are consistent, it writes the complete control frame sequence to the charging pile control task buffer and records the information of the Bluetooth address corresponding to the current charging behavior index as the trigger action item to obtain the control instruction of the Bluetooth path.

[0031] The list of connected Bluetooth devices includes the connected Bluetooth address, connection request time, number of pairings, and number of consecutive requests. The behavior identifier binding result includes the Bluetooth address, control index information, behavior identifier number, and binding pairing data. The behavior interruption identification result includes the interruption field position, response status marker segment, and the mapping relationship between the control index number and the Bluetooth address. The communication channel allocation result includes the channel number, Bluetooth address control chain, channel switching action registration item, and configurable channel information. The control instructions include the control frame sequence, status bit comparison field, charging behavior index, and trigger action Bluetooth address record item.

[0032] Please see Figure 2The Bluetooth access module includes: an address record extraction submodule that obtains the access Bluetooth address and connection request time recorded by the Bluetooth identification module in the Bluetooth charging pile control, extracts all Bluetooth addresses and corresponding times in the current recording period, and performs clustering and merging processing on the data with the same Bluetooth address based on the connection request time to obtain the address aggregation table within the period.

[0033] First, all Bluetooth access records stored within the current period are read from the Bluetooth identification module. Each record contains a unique Bluetooth address and a corresponding connection request time. The records are extracted sequentially via a serial interface. During extraction, each record's timestamp is checked to ensure it falls within the set processing period. For example, if the period starts at 08:00:00 and ends at 08:05:00, only records whose connection times fall within this time frame are retained. After initial filtering, all extracted records are sorted by connection time from earliest to latest. Duplicate Bluetooth addresses are then merged. Records with the same address are grouped together, and the connection times of every two records within this group are compared. If the time difference is less than 15 seconds, then... Connections of the same type are merged. During the merging process, the first connection time is retained as the representative record, and other records are not retained again. For example, if a Bluetooth address initiates a connection at 08:02:05 and 08:02:17, with an interval of 12 seconds, which is less than the set 15-second merging threshold, it is merged into the same group. If the interval between two records exceeds 15 seconds, they are retained as two independent records. The threshold is set based on the common reconnection time characteristics of Bluetooth devices. In actual testing, it was found that devices often complete automatic reconnection within 8 to 12 seconds of disconnection. Therefore, the merging threshold of 15 seconds can cover the vast majority of reconnection behaviors. Finally, only one valid record is retained for each Bluetooth address in the processing cycle, resulting in the Bluetooth address aggregation table for that cycle.

[0034] The connection frequency statistics submodule extracts Bluetooth address registration records from the access registration table based on the address aggregation table within the period, filters Bluetooth address groups whose registration quantity matches the aggregation frequency, and compares the two types of data synchronously according to the address field to obtain the registration request consistency dataset.

[0035] First, all Bluetooth addresses and their respective aggregation counts are read from the address aggregation table within the cycle. This count represents the number of valid accesses each address has been identified in the current cycle. For example, if Bluetooth address A is identified 3 times between 08:00 and 08:05, its aggregation frequency is 3. Then, all registration records are extracted from the access registration table. Each record contains fields such as Bluetooth address, registration time, and registration method. For each Bluetooth address, the number of registrations within the same processing cycle is counted. For example, if Bluetooth address A registers 2 times in this cycle, its registration frequency is 2. The aggregation frequency is compared with the registration frequency, and Bluetooth addresses with equal values ​​are selected as candidate datasets. During the selection process, specific judgment actions are performed. For each address A, if the aggregation frequency equals the registration frequency, it is marked as a matching address; otherwise, the current address is ignored and the process moves to the next item. After filtering, all matching addresses are retrieved from the two data sources. Field values ​​are aligned according to the address field. The aggregation information of the address in the periodic aggregation table is compared synchronously with the registration information of the address in the access registration table. During this process, it is necessary to ensure that the comparison field format is consistent, using a unified standard MAC address format and removing duplicate and null fields from the address records. If the MAC format of an address record is incomplete, such as missing a field or incorrect format, the record is removed from the comparison. Next, each set of matching data is collected and organized into a consistency dataset. Each item in this dataset consists of a periodic aggregation record and a registration record with the same address. For example, if Bluetooth address B has an aggregation frequency of 4 and a registration frequency of 4 within a period, then this address is included as a valid matching item, and the final registration request consistency dataset is obtained.

[0036] The access status filtering submodule extracts Bluetooth address data that corresponds to the connection frequency and registration quantity within the recording period based on the registration request consistency dataset, writes it into the Bluetooth control access area, and obtains a list of access Bluetooth devices.

[0037] First, extract Bluetooth address data with the same connection frequency and registration number within the current recording period. For each data entry, perform field value extraction, including Bluetooth address, registration count, connection frequency, and recording time period. Next, determine if the registration count and connection frequency fields are equal. Records with unequal values ​​are skipped without further processing. If the values ​​are equal, the record is retained for the next step. For example, if Bluetooth address A has a connection frequency of 3 and a registration count of 3 within the period from 08:00 to 08:05, it is considered a match and the record is selected for retention. If address B has a connection frequency of 4 and a registration count of 2, it is excluded. After initial filtering, perform data structure rearrangement on the retained addresses, matching the address fields in the original records with the fields in the standard data format of the control access area. If the MAC address in the original record is in uppercase letters and uses hyphens, it needs to be uniformly converted to lowercase and separated by colons to match the control access area storage. The requirements are as follows: For example, the original address "AA-BB-CC-DD-EE-FF" is converted to "aa:bb:cc:dd:ee:ff". After unifying the format, the address writing operation is performed. The filtered address information is written to the Bluetooth control access area's preset data cache in sequence. During the writing process, a maximum capacity threshold is set. If the number of addresses written to the control access area exceeds the maximum capacity limit of 256, the writing is terminated and the number of unwritten addresses is recorded. Under the default configuration, the capacity threshold is set to 256, which comes from the Bluetooth cache capacity of the control chip. When expanding according to the Bluetooth connection scenario requirements, the threshold can be increased to 512. For capacity control, it is necessary to count the number of existing addresses in the current access area before each writing and compare it with the capacity threshold. If the threshold has not been reached, the writing is performed and the current address count counter is updated. If the threshold has been reached or exceeded, the writing is skipped and an overflow warning record is output. After the writing is completed, a list structure is generated for all written Bluetooth addresses to obtain the list of connected Bluetooth devices.

[0038] Please see Figure 2 The instruction behavior management module includes: an instruction number extraction submodule to obtain the Bluetooth addresses recorded in the list of connected Bluetooth devices, read the control instruction number and corresponding marker time transmitted by the charging pile main controller, extract the instruction number associated with each Bluetooth address and sort it according to the transmission time, divide the belonging boundary according to the time order, and obtain the Bluetooth address instruction distribution value.

[0039] First, each Bluetooth address is extracted sequentially from the list of connected Bluetooth devices. Each data entry in this list is a lowercase MAC address, with fields separated by underscores or colons. After address format verification, the control command numbers transmitted by the charging pile main controller within the processing cycle are read. Each command number record contains a number value and a corresponding timestamp field. All command records are initially sorted according to time order, arranged by the hours, minutes, and seconds of the timestamp field, from earliest to latest time. After sorting, a matching operation is performed, iterating through and matching each Bluetooth address with all records in the command number list. The method is to check if each command record contains the Bluetooth address identifier or if it has been associated with the channel to which the address belongs. If the address appears in a command record or is bound to that command in the transmission channel binding information, the command number is assigned to that Bluetooth address, and the corresponding time is recorded. During this operation, an address number association table is constructed. Each table entry contains a Bluetooth address and all its matched command numbers and corresponding time data. When multiple command records are associated with a certain address, their association numbers are sorted in ascending order by time. For example, if the address "aa:bb:cc:dd:ee:ff" is associated with command numbers 102, 104, and 107, and the marked times are 08:01:10, 08:02:40, and 08:04:15 respectively, they will be sorted as 102, 104, and 107. Then, a boundary delimitation operation is performed, dividing the multiple command numbers associated with each Bluetooth address according to time continuity. If the time interval between two records is less than 30 seconds, they are considered... For the same continuous operation behavior, no boundary segmentation is performed. If the time interval is greater than or equal to 30 seconds, it is divided into two instruction distribution segments. For example, if the interval between 102 and 104 is 90 seconds, the first segment is numbered 102, and the second segment starts at 104. The time threshold of 30 seconds is the preset segmentation judgment benchmark value. Its setting is based on the Bluetooth command continuity standard behavior characteristics, combined with the device response latency and user interaction rhythm. Finally, multiple instruction number segments divided by time continuity are formed under each Bluetooth address, resulting in the Bluetooth address instruction distribution value.

[0040] The behavior sequence sorting submodule calls the Bluetooth address command distribution value, extracts the operation behavior identifier corresponding to each group of commands, arranges the behavior identifiers in sequence according to the transmission order, assigns behavior segment position information to the behavior identifiers according to the sequence number, and combines the sequence number with the behavior identifier to obtain the behavior sorting segment identifier value.

[0041] First, read the command number sequence associated with each Bluetooth address. Extract the corresponding operation behavior identifier from each record. This behavior identifier is a marker field indicating the control operation content corresponding to the command number, typically a standardized English abbreviation or code number. For example, number 101 represents "START", number 102 represents "LOCK", number 103 represents "CHARGE", number 104 represents "UNLOCK", and number 105 represents "STOP". After extracting the behavior identifiers, sort them in ascending order according to their corresponding time field in the record. Record the behavior identifiers sequentially starting from the earliest behavior, forming the behavior sequence set corresponding to each Bluetooth address. During processing, invalid or duplicate command numbers must be removed. The criteria for judgment are whether the behavior identifier is empty or identical to the previous item with a time interval of less than 10 seconds. If either condition is met, skip the current record to ensure that each item in the behavior sequence is a valid and ordered action identifier. After sorting, process each behavior... Records are assigned sequential numbers, starting from 1 and incrementing sequentially. These numbers correspond one-to-one with behavior identifiers. For example, if a Bluetooth address receives "START" at 08:00:05, "LOCK" at 08:00:20, and "CHARGE" at 08:01:10, the corresponding behavior sequence for that address is 1-START, 2-LOCK, and 3-CHARGE. The sequential number and behavior identifier are combined using the hyphen "-" to form the sorting segment position information. The final behavior sorting segment consists of a set of "1-START", "2-LOCK", and "3-CHARGE". This set is stored in an array structure and archived according to address index. During the archiving process, the maximum capacity of each behavior segment is set to 20 records. If an address has more than 20 behavior sequences, only the first 20 are retained as valid behavior segments, and the remaining records are saved as historical action trajectories and are not included in the current sorting segment output range. Finally, the behavior sorting segment identifier value is obtained.

[0042] The control index pairing submodule extracts the marked segment position and index field in each sequence based on the behavior sorting segment identifier value, and the relationship between the corresponding Bluetooth address field and the control index field to obtain the behavior identifier binding result.

[0043] First, extract the segment position field and behavior identifier field from each behavior sequence. The segment position field typically represents the sequential number of the behavior in the sequence as an integer, and the behavior identifier field represents the operation type at that position. For example, in "1-START", "1" is the segment position number and "START" is the behavior identifier. After reading, begin matching each behavior segment one by one. Compare the read segment position number with the index field corresponding to each Bluetooth address. The index field comes from the control record table, which records the mapping relationship between all Bluetooth addresses managed by the charging pile master controller and their corresponding control indices. For example, the control index corresponding to the Bluetooth address "aa:bb:cc:dd:ee:ff" is "IDX001". During the matching process, a one-to-one correspondence is used. For each behavior segment, its corresponding Bluetooth address field is used as the matching benchmark value to check if the address exists in the control record table. If it exists, its corresponding index value is retrieved and combined with each behavior segment under that address item by item to generate a binding field. The combination method is to place the index value at the beginning of the behavior segment to connect... The symbols are connected to form a complete identifier value. For example, the Bluetooth address "aa:bb:cc:dd:ee:ff" corresponds to the index "IDX001". Its behavior segment "1-START" is combined to generate "IDX001-1-START". If the corresponding index value for the address is not found in the control record table, the record is skipped, recorded as an abnormal address, and output to the abnormal buffer for later investigation. After all combination processing is completed, the uniqueness of the generated binding result is checked to see if there are multiple behavior segments pointing to the same index and the segment position is repeated. If duplicates are found, the earliest recorded time is retained and the rest are discarded. For example, if there are two behavior segments "2-CHARGE" under the index "IDX002", the item with the earlier recorded time is retained. During the combination process, it is also necessary to check whether the index value is empty or exceeds the allowed format range. If the index does not meet the requirement of being composed of 4 to 8 uppercase English letters and numbers, it is determined to be an invalid index and the combination processing is skipped. Finally, the binding of all Bluetooth addresses and their control indices under the behavior dimension is completed, and the behavior identifier binding result is obtained.

[0044] Please see Figure 2 The charging behavior recognition module includes: a feedback field extraction submodule that obtains the control status frame corresponding to each index in the behavior identifier binding result, extracts the response status flag from the feedback field in the status frame, extracts all flag values ​​within the recording period and arranges them in segments according to the index number to obtain the feedback flag aggregation interval value.

[0045] First, the index field of each combination item in the binding result is extracted. The extraction format is uniformly a control number composed of uppercase letters and numbers, such as "IDX001" and "IDX045". Then, the corresponding status frame record is called item by item according to the index number. The status frame record is the feedback information structure returned by the main controller during the execution of the corresponding control command. Each status frame contains data such as control number, feedback time, and response status field. During the extraction process, the response status field is the focus. This field is used to indicate whether the control command has been executed, whether the execution was successful, or whether there is a fault. Common status markers are "00" for success, "01" for failure, "02" for waiting, and "03" for no response. When reading, only the response status field value is retained and associated with the original index number one by one. A temporary table of feedback fields is established. The table structure uses the control number as the primary key and the feedback marker as the subordinate field. After the recording is completed, the periodic collection processing begins. The start time and end time fields of the recording period are read. For example, the start time is 08:00:00. 0. The termination time is 08:05:00. Only records with valid feedback flag fields in the status frames within this time period are retained. Data with recording times exceeding the period range is immediately removed and not included in the aggregation statistics. Then, the feedback flag values ​​under each control number are sorted by time, arranged sequentially from earliest to latest. After sorting, it is determined whether there are multiple consecutive identical feedback flag values. If there are three or more identical feedback flag values ​​with time intervals of less than 10 seconds, it is marked as a high-repetition feedback segment. This segment can be determined and aggregated by the timestamps of three adjacent records. After performing aggregation processing, all feedback flag values ​​are divided into the corresponding index number segment intervals according to the control number, forming the feedback flag aggregation set corresponding to each index number. For example, if the feedback received by number "IDX002" within the period is "00", "00", "00", "01", "00", then the aggregation interval value is ("00": 3, "01": 1, "00": 1). The flag values ​​are arranged and recorded as segment output items according to the receiving time to obtain the feedback flag aggregation interval value.

[0046] The response status aggregation submodule calls the feedback marker aggregation interval value, retrieves the response status field of adjacent markers in each segment, identifies the distribution position of continuous repetition of status field values, calculates the switching frequency value of the status field changing from non-response to response within each segment, and marks the field segments with frequency values ​​exceeding the switching frequency benchmark to obtain the distribution value of repetitive status segments; the specific formula for calculating the switching frequency value of the status field changing from non-response to response within each segment is as follows: ;in, Indicates the first The switching frequency value for the segment status field to change from non-acknowledgment to acknowledgement. Indicates the first The number of transitions from a non-responding state to a responding state within a segment. This represents the cumulative frame distance between the transition position and the starting field in the segment. This indicates the average position index value of the response field corresponding to each state change in the segment. Indicates the first Section 1 The response value of each response status field. Indicates the first The average value of all response status field values ​​in the segment. Indicates the first The number of blocks containing state change behaviors within a segment. This represents the global average number of state behavior blocks across all paragraphs. Indicates the first Total number of response status fields in the segment.

[0047] Indicates the first Duan Di There are 8 response status fields, and the status sequence in the segment is: 0, 1, 1, 0, 1, 0, 0, 1.

[0048] The average value of the segment is calculated as follows: .

[0049] for .

[0050] They appear in the 1st to 2nd position, the 4th to 5th position, and the 7th to 8th position respectively, therefore .

[0051] The jump frame intervals are 2-1=1, 5-4=1, 8-7=1, and the cumulative value is .

[0052] The corresponding indices are 2, 5, and 8, and the calculation method is as follows: .

[0053] There are 5 change blocks in the current field sequence: 0, 1, 1, 0, 1, 0, 0, 1, therefore .

[0054] The average value of status blocks in similar segments was statistically analyzed and found to be 4.2.

[0055] The denominator of the calculation formula is .

[0056] The numerator of the calculation formula is .

[0057] The final calculation result is: .

[0058] The results indicate that the switching behavior from non-response to response in the status field of the current paragraph is distributed with a high frequency in time sequence. The value of 20.32 is used as the switching frequency index value of this step, providing a measurement benchmark for the judgment and location of subsequent repeated status segments. This index will serve as the numerical basis for subsequent field paragraph marking.

[0059] The behavior segment marking submodule extracts the Bluetooth address and index number corresponding to the marked concentrated area based on the distribution value of the repeated state segment, writes the repeated response segments in the same Bluetooth address into the structure table according to the segment order, locates the location range of the interrupted behavior segment, and obtains the behavior interruption identification result.

[0060] First, extract the index numbers marked as continuous response states from the repeated state records. Then, obtain the Bluetooth address corresponding to each control number through the associated index field, and establish a mapping table between Bluetooth addresses and index numbers. During the extraction process, it is required to retain the segment numbers where feedback markers appear repeatedly. For example, if the index corresponding to a Bluetooth address "aa:bb:cc:dd:ee:ff" is "IDX003", and the feedback aggregation records that this index returns "01" failure status three times consecutively at segment position "2", then "IDX003-2" is written into the list as a repeated response segment marker. Subsequently, the entire archived behavior sorting segment structure of this Bluetooth address is compared item by item. All behavior segment position information under the current address is read and matched with the segment numbers in the marker items. If there is data at segment position "2" in the behavior segment structure, it is determined that the behavior segment overlaps with the repeated state segment, and the behavior interruption localization process is entered. In this process, it is necessary to determine whether the behavior segment is a middle segment, a mid-to-late segment, or a final segment. If the segment is in the middle range, that is, the number range between 2 and n-1 in the overall behavior sequence, it is defined as an interrupted behavior segment. The complete record structure is written into a structured form, along with a timestamp field and a feedback field for further source analysis. If the identified segment is within the start or end segment range, it is marked as an abnormal behavior segment. Since its behavior sequence has not yet unfolded or has been completed, it does not need to be included in the interrupt set. During the structure table writing operation, multiple interrupt segments of the same Bluetooth address are recorded in chronological order and arranged in ascending order of segment position. For example, if an address "bb:cc:dd:ee:ff:00" has two duplicate response segments, segment 3 and segment 5, with times of 08:01:00 and 08:03:15 respectively, then the corresponding order in the structure table is segment 3 first and segment 5 second. After writing, a summary scan operation is performed on all Bluetooth addresses to check if there are duplicate responses in three or more consecutive segments for the same address. If so, it is recorded as a severe interrupt sequence. This type of behavior structure is specially marked in the final behavior interruption identification set to assist in subsequent filtering or isolation processing. Finally, the segment position of all identified interrupt behavior segments and their corresponding Bluetooth addresses are combined to obtain the behavior interruption identification result.

[0061] Please see Figure 2 The communication channel control module includes: a backup channel extraction submodule that obtains the Bluetooth addresses listed in the behavior interruption identification results, extracts the interference flag, communication interruption count and current channel allocation status of each channel from the backup channel list, rearranges all channel numbers in the order of recording time, extracts the set of channel numbers without associated communication flags, and obtains the available channel number pool.

[0062] First, all address fields in the identification result are read, and each Bluetooth address is matched with the current charging pile channel resource configuration status to extract related backup channel information. During the matching process, the backup channel list is traversed. Each backup channel record contains a channel number, interference flag, number of communication interruptions, and current channel allocation status. The interference flag is used to identify whether the channel has experienced strong interference signals in the recent period. A value of "1" indicates the presence of interference, and "0" indicates that no interference was detected. The number of communication interruptions is the number of consecutive communication failures recorded within a certain period. To ensure data validity, only channel data with no more than 3 interruptions are retained for the next step of processing. The current channel allocation status field indicates whether the channel has been occupied by the current Bluetooth device. A status value of "1" indicates that the channel has been allocated and cannot be reassigned, while a status value of "0" indicates that the channel is unoccupied and can be extracted as a candidate. After extraction, all channel numbers are rearranged according to the record time field. The records are sorted sequentially from earliest to latest. After sorting, all records with interference markers of "1" and records with more than 3 communication interruptions are removed. Records with an allocation status of "1" are filtered out. The filtering condition is that channels with an allocation status of "1" are directly removed from the candidate set, and only channel numbers with a status of "0" are retained. After filtering, the first batch of candidate sets is formed. This set is then further screened to check whether the channel number was associated with a control marker or response marker in the previous cycle. If there is a historical record associated with any control event, the channel number is removed to avoid affecting the allocation effect of backup channels due to historical conflicts. Finally, only channel numbers that have not had a communication event in the current cycle and whose current status is available, interference-free, and low-interruption are retained. This set is the available channel number pool. For example, after filtering, three channels with the numbers "CH-02", "CH-07", and "CH-13" are retained. These three channels constitute the current available channel number pool.

[0063] The conflict relationship screening submodule calls the available channel number pool, extracts the connection field associated with the channel number based on the communication number corresponding to the current Bluetooth address, identifies data segments with duplicate markings or cross-use in the channel, calculates the conflict field density value of each channel number, filters out channel numbers with a density value of zero, and obtains a conflict-free channel number group.

[0064] The specific formula for calculating the collision field density value for each channel number is as follows: ;in, Represents channel number Conflict field density value, Represents channel number In the Conflict flag values ​​on each field Representing the The maximum collision flag value among all channel numbers in each field. Represents channel number In the Cross-conflict weighting coefficients on the field Represents channel number The number of fields traversed Represents channel number The average of the conflict markers across all its fields.

[0065] Assumption: A certain channel number in the channel number pool For example, the total number of fields is set to The conflict flag value in its connection field This data comes from the system's real-time detection of Bluetooth access conflict flags in data segments during communication. It is periodically recorded by the Bluetooth communication module, and the values ​​for each field are as follows:

[0066] Two conflict markers were found in field 1.

[0067] There is no conflict in field 2.

[0068] : Marked once in field 3.

[0069] : Marked 3 times in field 4.

[0070] .

[0071] .

[0072] Field conflict marker average for: .

[0073] Substituting into the numerator of the formula, the calculation is as follows: .

[0074] The square of the numerator is: .

[0075] The denominator is: .

[0076] Substituting into the general formula, we get: .

[0077] The results indicate that channel 3 has a collision field density value of 8.20125 in its corresponding field. The higher the value, the greater the degree of cross-use and collision risk in the current data segment, and it should be preferentially eliminated during the screening of collision-free channel numbers. This value is used in the communication allocation phase to determine whether a channel can be used for connection maintenance; channels that do not meet the "density value of zero" will be excluded.

[0078] The channel switching execution submodule extracts the channel number with the highest idle rate tag based on the conflict-free channel number group, writes the corresponding Bluetooth address into the channel allocation table, records the binding result of the corresponding channel number and address, and writes the switching identifier to obtain the interrupted communication channel allocation result.

[0079] First, extract all channel numbers and their corresponding idleness tags from the number group. The idleness tag is an evaluation value set according to indicators such as current channel utilization, average communication ratio, and occupation time within a period. The smaller the value, the more idle the channel is. During processing, all channel numbers are sorted in ascending order of idleness tag value. For example, "CH-03" has an idleness of 2, "CH-05" has 4, and "CH-08" has 6. After sorting, "CH-03" is selected first for allocation. After sorting, the top-ranked channel numbers are selected and bound to the Bluetooth address to be allocated in sequence. The binding order is based on the order of address appearance in the interrupt segment behavior identification results. In specific operations, first extract the current Bluetooth address field to be processed, then read the first unused number from the sorted idle channel numbers for allocation, and write the channel number and the current address into the channel allocation table. This table records the Bluetooth address, channel number, allocation timestamp, and current status field. During the writing process, a switching flag field is added to mark the channel. This record represents a channel switching action triggered by an interruption. The switching identifier field is set to "SW" plus the precise minute code of the current recording time. For example, if the switching occurs at 08:02, this field is marked as "SW0802". Subsequently, the binding operation for the next Bluetooth address continues. If it is found during the channel binding process that the current idle channel number pool has been fully allocated, meaning that the remaining number of channels is insufficient to support all address switching, a gap report is output and the list of addresses that cannot be bound is marked as pending. This list participates in compensation processing in subsequent periodic scheduling. During the binding process, it is necessary to determine whether the current channel number has been registered as a temporary test channel in other forms. If a test mark exists, the current number is skipped, and the next number is selected as a candidate channel. Each time a record is written to the channel allocation table, the address and channel mapping cache table is automatically updated for subsequent retrieval. Finally, a one-to-one correspondence between all interrupted segment Bluetooth addresses and their newly allocated channel numbers is obtained, and a switching identifier is marked, thus obtaining the interrupted segment communication channel allocation result.

[0080] Please see Figure 2 The charging control sending module includes: a channel response extraction submodule that reads the instruction response marker segment of the charging pile control terminal based on the Bluetooth address and channel number in the interrupt segment communication channel allocation result, extracts and serializes the response field corresponding to each Bluetooth address, and obtains the channel response field sequence value.

[0081] First, extract the Bluetooth address field and its bound channel number field from each allocation result to establish a corresponding address-channel mapping list. Then, using the channel number as the search condition, retrieve the instruction response data records stored in the charging pile control terminal. Extract a complete set of records containing the channel number field, response time field, and response flag field from these records. During processing, remove channel numbers not appearing in the mapping list and verify that the Bluetooth address field in each record matches the binding item in the allocation result. If they do not match, mark the record as abnormal data and exclude it from further processing. After filtering compliant data, group the data by Bluetooth address. Sort the response records corresponding to each address in ascending order by the response time field. For example, if the address "aa:bb:cc:dd:ee:ff" corresponds to channel "CH-05", and three response flags are recorded at 08:01:12, 08:02:15, and 08:04:05 respectively, the sorted response sequence will be flag 1, flag 2, and flag 3. After sorting, perform serialization processing to convert each... The response marker fields in a response record are concatenated sequentially to generate the response field sequence value for that address on the current channel. The symbol ">" is used as the connection identifier during concatenation. For example, if the three responses for this address are "00", "01", and "00", the serialization result is "00>01>00". This value is written to the result table as the channel response field sequence. The record structure includes the Bluetooth address, channel number, response field sequence value, and record timestamp. During the writing process, it is necessary to determine whether the current channel has been written to repeatedly by other addresses. If duplicates exist, the address with the earliest response time is reserved for writing rights, and other address records are transferred to the conflict handling queue. After writing is completed, all addresses are summarized and scanned to count the number of response records bound to each address. If the number of records is less than 2, the sequence does not meet the continuous response requirement and must be marked with "NR" (No-Response) before writing. Finally, a channel response field sequence value is generated with the Bluetooth address as the index, the channel number as the field, and the serialized response field as the content.

[0082] The status field comparison submodule calls the channel response field sequence value, extracts the current status bit in the master control Bluetooth frame, compares the two field sequences bit by bit, filters the index segments with the same field value and records the field correspondence, and obtains the field synchronization mapping identifier group.

[0083] First, the Bluetooth address field and corresponding response field content in the sequence value are read one by one. When parsing the response field sequence, it is split by the connector ">", generating an array of response status values ​​arranged in chronological order. For example, for the response field "00>01>00", it is split into the array ["00", "01", "00"]. Then, for each Bluetooth address, the corresponding status bit data in the master control Bluetooth frame record within the current period is found through the address field. The status bit data is extracted from the control feedback area in the master control Bluetooth frame. The field structure is also arranged in chronological order. For example, if the status bit sequence of a certain address master control frame is ["00", "01", "00"], a corresponding structure is established between the status value array and the response field value array. During the comparison process, position alignment is performed on the two arrays. Starting from index number 1, the status values ​​at the two positions are compared one by one. If they are the same, the current index is recorded as the consistent index segment position. If they are different, the current index is ignored and the comparison continues to the next position. The entire comparison process needs to record the set of index segments with consistent field values. After completion, all successfully matched indices are... The positions are summarized to form a result record structure of "Bluetooth address + index segment + consistency identifier". For example, if the address "aa:bb:cc:dd:ee:ff" has the same status value at indices 1 and 3, it is recorded as "aa:bb:cc:dd:ee:ff-1-sync" and "aa:bb:cc:dd:ee:ff-3-sync". This structure is also written to the field mapping record table for subsequent scheduling or status tracing operations. Before writing, the address field format is standardized by converting it to all lowercase and standardizing the separator to a colon structure. If different Bluetooth addresses are found to correspond to the same channel response sequence during the writing process, it is necessary to compare whether their master control status bit sequences are completely consistent. If they are inconsistent, the comparison relationship is not recorded. Finally, all recorded synchronization fields are sorted by ascending order of Bluetooth address, and then by ascending order of index segment under the same address. The final output is the field position mapping combination where the status value of each address is consistent with the status value during the comparison of the channel response field sequence value and the master control status bit, which is the field synchronization mapping identifier group.

[0084] The behavior information binding submodule extracts the behavior number and Bluetooth address from the corresponding index of the field based on the field synchronization mapping identifier group, writes them into the task buffer and binds them as a set of control records as trigger items to obtain the control instructions for the Bluetooth path.

[0085] First, the Bluetooth address field, segment index field, and synchronization identifier content are read from each identifier record. During parsing, the index segment is extracted into a behavior number. This number is consistent with the number in the behavior sorting segment structure in the previous step. It can be directly associated with the behavior identifier through the index. For example, the identifier "aa:bb:cc:dd:ee:ff-2-sync" indicates that the status value of the address at position 2 has completed the comparison with the master control status frame. Based on the segment number "2", its corresponding behavior can be found to be a standardized behavior such as "LOCK" or "CHARGE". Then, the key-value pair composed of Bluetooth address and behavior number is written to the task buffer. This buffer is a temporary storage area. The structure records the Bluetooth address, behavior number, binding time, and task status field. During the writing process, the field format needs to be standardized. The Bluetooth address field is uniformly lowercase and represented by colons. The behavior number is represented by a uniform five-character uppercase string. If the behavior is "Start", it is uniformly marked as "START", and if it is "Unlock", it is marked as "START". Referred to as "UNLCK", after the field is written, task merging is performed based on the Bluetooth address as the primary key. It checks whether a task record with the same Bluetooth address already exists in the buffer. If it exists, the current behavior record is appended to it to build a behavior chain queue. If it does not exist, a new record is created to initialize the task structure, and the current behavior is set as the first behavior. Then, all behavior numbers and Bluetooth addresses of the completed buffer structures are uniformly combined. Each combination is written to the control record master table as a trigger item for the control record. Each record in the master table structure contains Bluetooth address, behavior sequence number, behavior action, allocation channel, and generation time. During the writing process, the field "TRIG" is added to indicate that the record is generated by field consistency comparison. The field value is uniformly set to "YES". If an incomplete task with the Bluetooth address is found in the master table during the writing process, the system sets the current task of that address to the "suspended" state and appends a record with a remark field for conflict checking during scheduling. Finally, a complete control record is generated by binding the Bluetooth address and its behavior number, and the control instructions for the Bluetooth path are obtained.

[0086] Please see Figure 3 A Bluetooth-based charging pile control method includes the following steps: S1: Obtain the access Bluetooth address and connection time recorded by the Bluetooth identification module, filter the connection requests within the period, match the connection count of the address record with the field value of the registration record, extract the addresses whose request count matches the registration count and write them into the access control area to obtain the access Bluetooth device list.

[0087] S2: Based on the address in the list of connected Bluetooth devices, read the command number and behavior identifier issued by the controller, sequentially number and pair them, organize the pairing results into index groups according to the address dimension, sort the number sequence and append it to the behavior field to obtain the behavior identifier binding result.

[0088] S3: Based on the number field in the behavior identifier binding result, extract the response marker in the corresponding status frame, locate the start and end of the continuous abnormal field, generate abnormal segment marker data according to the number and address, and obtain the behavior interruption identification result.

[0089] S4: Based on the Bluetooth address in the behavior interruption identification result, read the interference mark and allocation status of the backup channel, filter the channel number with zero interference and no occupation, record the allocable channel and address pairing information, and obtain the interruption segment communication channel allocation result.

[0090] S5: Based on the address and channel number in the interrupt segment communication channel allocation result, extract the control terminal instruction response field and master control status field, write the control frame at the consistent field position and register the behavior and address fields to obtain the control command of the Bluetooth path.

[0091] The above are merely preferred embodiments of the present invention and are not intended to limit the present invention in any other way. Any person skilled in the art may make changes or modifications to the above-disclosed technical content to create equivalent embodiments that can be applied to other fields. However, any simple modifications, equivalent changes, and modifications made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the protection scope of the present invention.

Claims

1. A Bluetooth-based charging pile control system, characterized in that, The system includes: The Bluetooth access module extracts the Bluetooth address and connection time recorded in the Bluetooth identification module. When the number of consecutive requests and the number of registrations are consistent within the recording period, the Bluetooth address is written into the control access area to obtain the list of access Bluetooth devices. Based on the access results of the access Bluetooth device list, the command behavior management module reads the command number and behavior identifier transmitted by the controller, numbers them sequentially and appends a control index, processes the Bluetooth address and index item to obtain the behavior identifier binding result; Based on the behavior identifier binding result, the charging behavior recognition module extracts feedback markers, locates continuous unresponsive segments, and groups the Bluetooth address and index number corresponding to the interruption segment to obtain the behavior interruption recognition result. Based on the behavior interruption identification results, the communication channel control module extracts the interference markers and allocation status of the backup channels, selects the idle channels and binds them to the target Bluetooth address control chain, registers the channel numbers, and obtains the communication channel allocation results for the interruption segment. Based on the interrupt segment communication channel allocation result, when the control terminal response flag is consistent with the Bluetooth frame bit status, the charging control sending module writes the control frame to the task buffer to obtain the control command of the Bluetooth path. The Bluetooth access module includes: The address record extraction submodule obtains the access Bluetooth address and connection request time recorded by the Bluetooth identification module in the Bluetooth charging pile control, extracts all Bluetooth addresses and corresponding times within the current recording period, and performs clustering and merging processing on the data with the same Bluetooth address based on the connection request time to obtain the address aggregation table within the period. The connection frequency statistics submodule extracts the registration records of Bluetooth addresses from the access registration table based on the address aggregation table within the period, filters the Bluetooth address groups whose registration number matches the aggregation frequency, and compares the two types of data synchronously according to the address field to obtain the registration request consistency dataset. Based on the registration request consistency dataset, the access status filtering submodule extracts Bluetooth address data that corresponds to the connection frequency and registration quantity within the recording period, writes it into the Bluetooth control access area, and obtains a list of access Bluetooth devices. The instruction behavior management module includes: The instruction number extraction submodule reads the control instruction number and corresponding marker time transmitted by the charging pile main controller based on the Bluetooth address recorded in the list of access Bluetooth devices, extracts the instruction number associated with each Bluetooth address and sorts it according to the transmission time, divides the belonging boundary according to the time order, and obtains the Bluetooth address instruction distribution value. The behavior sequence sorting submodule calls the Bluetooth address instruction distribution value, extracts the operation behavior identifier corresponding to each group of instructions, arranges the operation behavior identifiers in sequence according to the transmission order, assigns behavior segment position information to the operation behavior identifiers according to the sequence number, and combines the sequence number with the operation behavior identifier to obtain the behavior sorting segment identifier value. The control index pairing submodule extracts the marked segment position and index field in each sequence based on the behavior sorting segment identifier value, and the relationship between the corresponding Bluetooth address field and the control index field to obtain the behavior identifier binding result; The charging behavior recognition module includes: The feedback field extraction submodule extracts the response status flag from the status frame corresponding to each index in the behavior identifier binding result, extracts all flag values ​​within the recording period and arranges them in segments according to the index number to obtain the feedback flag aggregation interval value. The response status aggregation submodule calls the feedback mark aggregation interval value, retrieves the response status field of adjacent marks in each segment, identifies the distribution position of continuous repetition of status field values, calculates the switching frequency value of the status field changing from non-response to response in each segment, marks the field segments whose frequency values ​​exceed the switching frequency benchmark, and obtains the distribution value of repetitive status segments. Based on the distribution value of the repeated state segments, the behavior segment marking submodule extracts the Bluetooth address and index number corresponding to the marked concentrated area, writes the segments with repeated responses in the same Bluetooth address into the structure table according to the segment order, locates the location range of the interrupted behavior segment, and obtains the behavior interruption identification result. The communication channel control module includes: The backup channel extraction submodule extracts the interference flag, communication interruption count and current channel allocation status of each channel from the backup channel list based on the Bluetooth addresses listed in the behavior interruption identification results. It then rearranges all channel numbers in the order of recording time and extracts the set of channel numbers without associated communication flags to obtain the available channel number pool. The conflict relationship screening submodule calls the available channel number pool, extracts the connection field associated with the channel number according to the communication number corresponding to the current Bluetooth address, identifies data segments with duplicate markings or cross-use in the channel, calculates the conflict field density value of each channel number, filters out channel numbers with a density value of zero, and obtains a conflict-free channel number group. The channel switching execution submodule extracts the channel number with the first idle degree tag based on the conflict-free channel number group, writes the Bluetooth address corresponding to the number into the channel allocation table, records the corresponding channel number and address binding result, and writes the switching identifier to obtain the interrupted segment communication channel allocation result. The interruption segment communication channel allocation result includes channel number, Bluetooth address control chain, channel switching action registration item, and available channel information; The charging control sending module includes: The channel response extraction submodule reads the instruction response marker segment of the charging pile control terminal based on the Bluetooth address and channel number in the interrupted communication channel allocation result, extracts and serializes the response field corresponding to each Bluetooth address, and obtains the channel response field sequence value. The status field comparison submodule calls the channel response field sequence value, extracts the current status bit in the master control Bluetooth frame, compares the two field sequences bit by bit, filters the index segments with the same field value and records the field correspondence to obtain the field synchronization mapping identifier group; The behavior information binding submodule extracts the behavior number and Bluetooth address from the corresponding index of the field based on the field synchronization mapping identifier group, writes them into the task buffer and binds them as a set of control records as trigger items to obtain the control instructions for the Bluetooth path. The Bluetooth path control instructions include a control frame sequence, a status bit comparison field, a charging behavior index, and a trigger action Bluetooth address record item.

2. The Bluetooth-based charging pile control system according to claim 1, characterized in that: The list of access Bluetooth devices includes the access Bluetooth address, connection request time, number of matches, and number of consecutive requests. The behavior identifier binding result includes the Bluetooth address, control index information, behavior identifier number, and binding pairing data. The behavior interruption identification result includes the interruption field position, response status marker paragraph, and the mapping relationship between the control index number and the Bluetooth address.

3. The Bluetooth-based charging pile control system according to claim 1, characterized in that: The specific formula for calculating the switching frequency value of the status field within each segment from non-response to response is as follows: ;in, Indicates the first The switching frequency value for the segment status field to change from non-acknowledgment to acknowledgement. Indicates the first The number of transitions from a non-responding state to a responding state within a segment. This represents the cumulative frame distance between the transition position and the starting field in the segment. This indicates the average position index value of the response field corresponding to each state change in the segment. Indicates the first Section 1 The response value of each response status field. Indicates the first The average value of all response status field values ​​in the segment. Indicates the first The number of blocks containing state change behaviors within a segment. This represents the global average number of state behavior blocks across all paragraphs. Indicates the first Total number of response status fields in the segment.

4. The Bluetooth-based charging pile control system according to claim 1, characterized in that: The specific formula for calculating the collision field density value for each channel number is as follows: ;in, Represents the channel number collision field density value. Represents channel number In the Conflict flag values ​​on each field Representing the The maximum collision flag value among all channel numbers in each field. Represents channel number In the Cross-conflict weighting coefficients on the field Represents channel number The number of fields traversed Represents channel number The average of the conflict markers across all its fields.

5. A Bluetooth-based charging pile control method, characterized in that, The Bluetooth-based charging pile control system according to any one of claims 1-4 includes the following steps: S1: Obtain the access Bluetooth address and connection time recorded by the Bluetooth identification module, filter the connection requests within the period, match the connection count of the address record with the field value of the registration record, extract the addresses whose request count matches the registration count and write them into the access control area to obtain the list of access Bluetooth devices. S2: Based on the address in the list of access Bluetooth devices, read the instruction number and behavior identifier issued by the controller, sequentially number and pair them, organize the pairing results into index groups according to the address dimension, sort the number sequence and append it to the behavior field to obtain the behavior identifier binding result; S3: Based on the number field in the behavior identifier binding result, extract the response marker in the corresponding status frame, locate the start and end of the continuous abnormal field, generate abnormal segment marker data according to the number and address, and obtain the behavior interruption identification result; S4: Based on the Bluetooth address in the behavior interruption identification result, read the interference mark and allocation status of the backup channel, filter the channel number with zero interference and no occupation, record the allocable channel and address pairing information, and obtain the interruption segment communication channel allocation result; S5: Based on the address and channel number in the interrupted communication channel allocation result, extract the control terminal instruction response field and the master control status field, write the control frame at the consistent field position and register the behavior and address fields to obtain the control instruction of the Bluetooth path.

Citation Information

Patent Citations

  • Automobile charging pile power supply method and charging pile

    CN113263939A

  • Non-inductive authentication charging method, charging pile and storage medium

    CN117774746A