A data information communication method, device, system and storage medium

By using the preset level number of times of the target digital bits in N frames of data to distinguish slave station status information, the problem of limited status information transmission in master-slave protocol communication is solved, and communication efficiency and accuracy are improved without increasing the data frame length.

CN116208617BActive Publication Date: 2025-12-05CHINA LEADSHINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211731482.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2025-12-05
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

In existing technologies, due to the data frame length limitation of the SF status bit in master-slave protocol communication, it is impossible to effectively transmit more types of status information, resulting in increased master-slave control delay and affecting communication efficiency.

Method used

The slave station status information is distinguished by the number of times the target digital bit is set to the preset level in N frames of data. The master station counts the number of times the target digital bit is set to the preset level in N frames of data and determines the slave station status information according to the preset correspondence, thereby improving communication efficiency.

Benefits of technology

Without increasing the data frame length, it can transmit a variety of explicit slave status information, improve the communication efficiency between the master station and the slave station, and ensure the accuracy and timely maintenance of slave status information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116208617B_ABST
    Figure CN116208617B_ABST
Patent Text Reader

Abstract

The application discloses a data information communication method, device and system and a storage medium, and relates to the field of digital transmission. In the scheme, each digital bit in N frames of data information sent by a slave station in N continuous periods is one-to-one corresponding to a kind of slave station state information according to the number of times that the digital bit is set to a preset level in the N continuous periods, and a master station determines target slave station state information corresponding to a target digital bit and the number of times that the target digital bit is set to the preset level according to the number of times that the target digital bit is set to the preset level in the N frames of data information. In conclusion, the target digital bit in the N frames of data information can correspond to multiple kinds of slave station state information, and the slave station state information corresponding to the same digital bit can be distinguished by the number of times that the digital bit is set to the preset level in the N continuous periods, so that multiple kinds of explicit slave station state information can be transmitted without increasing the length of the data frame, and the communication efficiency between the master station and the slave station is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of digital transmission, and in particular to a data information communication method, apparatus, system, and storage medium. Background Technology

[0002] In current mainstream master-slave communication protocols, the exchange of status information between the master and slave typically involves defining a fixed position in each frame of data sent by the slave as the SF status bit. The SF status bit serves as an alarm status bit, used to transmit alarm status information from the slave. The SF status bit is typically one byte, comprising 8 bits. Taking encoder communication as an example, the 8 bits of the SF status bit can represent different alarm or warning status information of the encoder. For instance, if the master receives the first bit of the SF status bit at a preset level, it represents a temperature warning status; if the second bit is at a preset level, it represents a battery warning status; and if the third bit is at a preset level, it represents a communication error warning status, etc. Therefore, the SF status bit can simultaneously send up to 8 different status information within one cycle.

[0003] However, as product functions become more abundant, the amount of status information that needs to be exchanged between the master station and the slave station is also increasing. Due to the limitation of the length of the data frame of the SF status bit, if more status information is to be sent at the same time in this situation, the length of the data frame of the SF status bit needs to be increased. Increasing the length of the data frame of the SF status bit will increase the length of the entire data frame, resulting in a longer delay in master-slave control and affecting the control response between master and slave.

[0004] Therefore, existing data communication methods cannot effectively transmit a wider range of status information. Summary of the Invention

[0005] The purpose of this invention is to provide a data information communication method, device, system, and storage medium, wherein in the N frames of data information, the target digital bit can correspond to multiple slave station status information, and the slave station status information corresponding to the same digital bit can be distinguished by the number of times the digital bit is set to a preset level in N consecutive cycles, thereby transmitting multiple clear slave station status information without increasing the data frame length, and improving the communication efficiency between the master station and the slave station.

[0006] To address the aforementioned technical problems, this invention provides a data communication method applied to a main station, comprising:

[0007] Obtain N frames of data information sent by the station within N consecutive periods;

[0008] Count the number of times the target digital bit is set to a preset level in the data information of N frames;

[0009] The target slave status information is determined based on the number of times the target digital bit in the data information of N frames is set to a preset level and a preset correspondence relationship; wherein, the preset correspondence relationship includes: the number of times each digital bit in the data information of N frames is set to the preset level corresponds to a slave status information, and N is an integer greater than 1.

[0010] Preferably, the preset correspondence specifically includes: the number of times each digital bit in the data information of N frames is continuously set to the preset level corresponds to the slave station status information;

[0011] The number of times the target digital bit in the data information of the N frames is set to a preset level includes:

[0012] Count the number of times the target digital bit is continuously set to a preset level in the data information of N frames.

[0013] Preferably, after counting the number of times the target digital bit in the data information of N frames is continuously set to a preset level, the method further includes:

[0014] Determine whether the total number of times the target digital bit in the data information of N frames is set to the preset level is greater than the target number;

[0015] If so, the target digital bit in the data information of the N frames is determined to be the interfered digital bit.

[0016] Preferably, after determining the target slave station status information based on the number of times the target digital bits in the N frames of data information are set to a preset level and a preset correspondence, the method further includes:

[0017] An alarm is triggered based on the target slave station status information.

[0018] Preferably, after determining the target slave station status information based on the number of times the target digital bits in the N frames of data information are set to a preset level and a preset correspondence, the method further includes:

[0019] S501: Increment the valid count corresponding to the target slave station status information by one;

[0020] S502: Determine whether the valid count corresponding to the target slave station status information is the expected trigger value. If not, proceed to step S503; if yes, proceed to step S506.

[0021] S503: Set the next N consecutive cycles after the current N consecutive cycles as the current N consecutive cycles;

[0022] S504: Determine whether the number of times the target digital bit in the N frames of data information sent by the slave station within the current consecutive N periods is set to the preset level is the number of times the target slave station status information is based on the preset correspondence. If yes, return to step S501; otherwise, proceed to step S505.

[0023] S505: Clear the valid count corresponding to the target slave station status information to zero, and return to the step of obtaining N frames of data information sent by the slave station in N consecutive periods;

[0024] S506: Proceed to the step of issuing an alarm based on the target slave station status information.

[0025] Preferably, before acquiring the N frames of data information sent by the station within N consecutive periods, the method further includes:

[0026] Set the priority order of the slave station status information;

[0027] The priority order is sent to the slave station so that the slave station sends the slave station status information in the priority order for N consecutive cycles.

[0028] Preferably, before counting the number of times the target digital bit in the data information of N frames is set to a preset level, the method further includes:

[0029] Determine whether the number of times the target digital bit in the data information of N frames is set to the preset level is greater than the preset number of interferences;

[0030] If so, proceed to the step of counting the number of times the target digital bit in the data information of N frames is set to the preset level;

[0031] If not, then the target digital bit in the data information of the N frames is determined to be a digital bit that has been interfered with.

[0032] To address the aforementioned technical problems, this invention provides a data communication device applied to a main station, comprising:

[0033] The acquisition unit is used to acquire N frames of data information sent by the station within N consecutive cycles;

[0034] The statistics unit is used to count the number of times the target digital bit is set to a preset level in the data information of N frames;

[0035] The determining unit is used to determine the target slave status information based on the number of times the target digital bit in the data information of N frames is set to a preset level and a preset correspondence relationship; wherein, the preset correspondence relationship includes: the number of times each digital bit in the data information of N frames is set to the preset level corresponds to a slave status information, and N is an integer greater than 1.

[0036] To address the aforementioned technical problems, the present invention provides a data information communication system, comprising:

[0037] The master station is used to acquire N frames of data information sent by the slave station within N consecutive periods, and count the number of times the target digital bit in the N frames of data information is set to a preset level. Based on the number of times the target digital bit in the N frames of data information is set to the preset level and the preset correspondence, the target slave station status information is determined.

[0038] The slave station, which is connected to the master station, is used to send N frames of data information to the master station in N consecutive cycles. The number of times each digital bit in the N frames of data information is set to the preset level corresponds to a slave station status information, and N is an integer greater than 1.

[0039] To address the aforementioned technical problems, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the data communication method described above.

[0040] This application provides a data information communication method, apparatus, system, and storage medium, relating to the field of digital transmission. In this scheme, in N frames of data information transmitted by a slave station over N consecutive cycles, the number of times each digital bit is set to a preset level within those N cycles corresponds to a slave station status information. The master station determines the target slave station status information corresponding to the target digital bit and the number of times the preset level is set in the N frames of data information. In summary, in this application, the target digital bit in the N frames of data information can correspond to multiple slave station status information, and the slave station status information corresponding to the same digital bit can be distinguished by the number of times that digital bit is set to a preset level within N consecutive cycles. This allows for the transmission of multiple distinct status information without increasing the data frame length, improving the communication efficiency between the master station and the slave station. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 A flowchart illustrating a data information communication method provided by the present invention;

[0043] Figure 2 A flowchart illustrating a specific data communication method provided by the present invention;

[0044] Figure 3 A schematic diagram of the structure of a data information communication device provided by the present invention;

[0045] Figure 4 This is a schematic diagram of the structure of a data information communication system provided by the present invention. Detailed Implementation

[0046] The core of this invention is to provide a data information communication method, device, system, and storage medium, wherein in N frames of data information, one digital bit can correspond to multiple state information, and the state information corresponding to the same digital bit can be distinguished by the number of times the digital bit is set to a preset level, thereby transmitting multiple clear state information without increasing the data frame length and improving the efficiency of data information communication.

[0047] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0048] Please refer to Figure 1 , Figure 1 This is a flowchart illustrating a data communication method provided by the present invention. The method is applied to a main station and includes:

[0049] S101: Obtain N frames of data information sent by the station within N consecutive cycles;

[0050] S102: Count the number of times the target digital bit is set to the preset level in N frames of data;

[0051] S103: Determine the target slave status information based on the number of times the target digital bits are set to the preset level in the N frames of data information and the preset correspondence.

[0052] The preset correspondence includes: the number of times each digital bit in N frames of data is set to a preset level corresponds to a type of slave station status information. That is, the number of times the target digital bit in the data information sent by the slave station is set to a preset level in N consecutive cycles corresponds to a type of slave station status information.

[0053] In existing communication protocols between master and slave stations, the master station typically sets each digital bit in the data sent by the slave station to correspond to one or more status information. For example, a fixed position in each frame of data is set as a status bit (usually one byte, 8 bits), and each digital bit in the status bit (here, digital bit refers to each bit in the status bit) corresponds to one or more status information. When the slave station needs to transmit multiple status information corresponding to the same digital bit at the same time, the level of that digital bit is also set to a preset level. However, the master station cannot determine which specific status information it corresponds to, and the staff needs to analyze the types of status information on their own, which is inconvenient for the staff's work progress.

[0054] Furthermore, due to the limitation on the number of digital bits in the data information, the types of status information that the slave station can transmit are also limited. As the slave station's functions continue to improve, the types of status information that the slave station needs to transmit are gradually increasing. If the method of increasing the length of digital bits in the data information is chosen to increase the types of status information that the data information can transmit, it will lead to an increase in the length of digital bits in the entire frame of data information.

[0055] To address the aforementioned technical problems, this application describes a state information where the number of times the target digital bit in N frames of data information sent by the slave station within N consecutive cycles corresponds to a preset level. Here, N frames of data information refer to the slave station sending one frame of data information to the master station in each cycle, and N consecutive cycles result in the slave station continuously sending N frames of data information to the master station. In this embodiment, the target digital bit can be a single bit, i.e., a bit in the status bit of the data information, or it can be two or more bits. When the target digital bit is two or more bits, these bits can be adjacent or non-adjacent. For example, if the master station receives 16 frames of data information sent by the slave station within 16 consecutive cycles, and the second digital bit in 8 of these frames is set to a preset level, then the number of times the second digital bit, serving as the target digital bit, is set to the preset level in the 16 cycles is 8, corresponding to a slave station state information. The master station uses this information to determine the target slave station state information sent by the slave station.

[0056] Based on this, the master station accumulates the number of times the target digital position in the N frames of data sent by the slave station within N consecutive cycles is at a preset level, which corresponds to a slave station status information, thereby determining the target slave station status information sent by the slave station.

[0057] Specifically, after determining the number of times the target digital bit in the N frames of data information sent by the slave station within N consecutive cycles is set to the preset level, the master station determines the target slave station status information according to the one-to-one correspondence with the slave station status information.

[0058] Since the data information includes multiple digital bits, and the same digital bit in N frames of data information can be set to a preset level 1 to N times, the types of slave status information sent by the slave station can be increased without changing the length of the digital bits in the data information. Furthermore, the unique target slave status information sent by the slave station can be directly determined by one or more digital bits, which makes it easier for staff to process based on the determined target slave status information and improves the work efficiency of the staff.

[0059] For example, if N is 16, the target digital bit in the N frames of data is set to a preset level within 16 consecutive cycles. If the high level occurs twice, it corresponds to a temperature warning status. If the target digital bit in the N frames of data is set to the preset level four times within 16 consecutive cycles, it corresponds to a battery warning status.

[0060] It should be noted that, since the data information includes multiple digital bits, different digital bits in the data information can be set to a preset level at the same time. The target digital bit in this application can be any digital bit in the data information to determine all slave status information transmitted by the data information sent by the slave station in N consecutive cycles.

[0061] In summary, in this application, in the N frames of data information transmitted by the slave station over N consecutive periods, the number of times each digital bit is set to a preset level within those N periods corresponds to a different type of slave station status information. The master station determines the target slave station status information corresponding to the target digital bit and the number of times the preset level is set in the N frames of data information. Therefore, in this application, the target digital bit in the N frames of data information can correspond to multiple types of slave station status information, and the slave station status information corresponding to the same digital bit can be distinguished by the number of times that digital bit is set to a preset level within N consecutive periods. This allows for the transmission of multiple distinct slave station status information without increasing the data frame length, thereby improving the communication efficiency between the master station and the slave station.

[0062] Based on the above embodiments:

[0063] As a preferred embodiment, the preset correspondence specifically includes: the number of times each digital bit in the N frames of data is continuously set to a preset level corresponds to a slave station status information;

[0064] Count the number of times the target digital bits are set to a preset level in N frames of data, including:

[0065] Count the number of times the target digital bit is continuously set to a preset level in N frames of data.

[0066] In this embodiment, to improve the accuracy of the slave status information sent by the slave station, the number of times the target digital bit is continuously set to a preset level within N consecutive cycles corresponds to a type of slave status information. That is, according to the order of N frames of data information, the number of times the same target digital bit is continuously set to a preset level in N frames of data information corresponds to a type of slave status information. In other words, it does not count the total number of times the target digital bit is set to the preset level in N consecutive frames of data information. Based on this, it can avoid the target digital bit in the data information being mistakenly set to the preset level due to interference when the slave station is transmitting data information, which would lead to errors in the transmitted slave status information.

[0067] For example, if the target digital bit is set to a preset level in the first four frames of data in 16 frames of data, then the slave status information corresponding to the number of times the target digital bit is continuously set to the preset level four times in the 16 frames of data can be set as the target slave status information.

[0068] As a preferred embodiment, after counting the number of times the target digital bit is continuously set to a preset level in N frames of data, the method further includes:

[0069] Determine whether the total number of times the target digital bit is set to the preset level in N frames of data is greater than the target number;

[0070] If so, then the target digital bit in the N frames of data is determined to be the interfered digital bit.

[0071] In this embodiment, after determining the number of times the target digital bit in N frames of data information sent by the slave station is continuously set to a preset level within N consecutive periods, if the total number of times the target digital bit is set to the preset level is greater than the target number, for example, in 16 frames of data information, the target digital bit is set to the preset level in frames 1-4, not in frame 5, but in frame 6, then it can be determined that the slave station or data information is interfered with during transmission, and the slave station status information transmitted by the data information is incorrect. The target status bit is the interfered digital bit, thereby avoiding the normal maintenance of the slave station due to incorrect determination of the target slave station status information caused by interference.

[0072] As a preferred embodiment, after determining the target slave status information based on the number of times the target digital bits in N frames of data are set to a preset level and a preset correspondence, the method further includes:

[0073] Alarms are triggered based on the target slave station's status information.

[0074] In this embodiment, the slave station status information transmitted in the data information transmission can be, but is not limited to, warnings or alarms. The slave station can be, but is not limited to, a motor encoder. When the slave station is a motor encoder, the master station is a motor driver that drives and controls the motor. Correspondingly, the warning status information can include, but is not limited to, counting error warnings, overheating warnings, multi-turn error warnings, battery warnings, battery error warnings, instruction verification error warnings, and stop bit error warnings. After determining the target slave station status information, the corresponding warning type is determined according to the target slave station status information, and an alarm is triggered so that the staff can maintain the slave station according to the warning type and ensure the normal operation of the slave station.

[0075] As a preferred embodiment, after determining the target slave status information based on the number of times the target digital bits in N frames of data are set to a preset level and a preset correspondence, the method further includes:

[0076] S501: Increment the valid count corresponding to the target slave station status information by one;

[0077] S502: Determine whether the valid count corresponding to the target slave station status information is the expected trigger value. If not, proceed to step S503; if yes, proceed to step S506.

[0078] S503: Set the next N consecutive cycles after the current N consecutive cycles as the current N consecutive cycles;

[0079] S504: Determine whether the number of times the target digital bit in the N frames of data information sent by the slave station within the current consecutive N periods is set to the preset level is the number of times the target slave station status information is based on the preset correspondence. If yes, return to step S501; otherwise, proceed to step S505.

[0080] S505: Clear the valid count corresponding to the target slave station status information to zero, and return to the step of obtaining the N frames of data information sent by the slave station in N consecutive cycles;

[0081] S506: Proceed to the step of triggering an alarm based on the target slave station status information.

[0082] Please refer to Figure 2 , Figure 2 This is a flowchart illustrating a specific data communication method provided by the present invention.

[0083] Before determining the target slave station status information and issuing an alarm, it is necessary to further verify the accuracy of the target slave station status information. Specifically, after determining the target slave station status information transmitted in the target digital bits of N consecutive frames of data, the valid count corresponding to the target slave station status information is incremented by one, and it is determined whether the valid count corresponding to the target slave station status information is the expected trigger value. If it is not the expected trigger value, no alarm will be issued until the valid count is the expected trigger value. Here, the valid count refers to the count of the valid count of the target slave station status information transmitted only after the target slave station status information has been determined. That is, the valid count corresponding to the target slave station status information takes effect, and the calculation of the number of times the target slave station status information occurs within multiple consecutive N periods begins.

[0084] Specifically, after the target slave status information is determined for the first time within N consecutive cycles, an alarm can only be triggered if the same target slave status information can be determined within N consecutive cycles after the expected trigger value minus 1. If the detection of target slave status information is interrupted before the effective count reaches the expected trigger value, the effective count will be cleared to zero, and no alarm will be triggered to avoid false triggering.

[0085] For example, after the target slave status information corresponding to the target digital bit is determined in 16 frames of data information within the first 16 cycles, the valid count corresponding to the target slave status information is incremented by 1. After the target digital bit is again determined to correspond to the target slave status information in 16 frames of data information within the first 17-32 cycles, the valid count corresponding to the target slave status information is incremented by 1 again, until the valid count reaches the expected trigger value, and an alarm is triggered. If the expected trigger value is 4, the target slave status information corresponding to the target digital bit can be determined in both the first 16 cycles and the first 17-32 cycles, and the valid count corresponding to the target slave status information is 2. However, the target slave status information corresponding to the target digital bit cannot be determined in 16 frames of data information within the first 33-48 cycles. In this case, the valid count corresponding to the target slave status information is cleared to zero, the valid count of the target slave status information is not continued, and no alarm is triggered. Instead, the slave status information sent by the slave station continues to be detected in subsequent cycles.

[0086] Based on this, by verifying the target slave station status information over multiple cycles, the accuracy of alarms can be determined, thereby improving the efficiency and accuracy of slave station maintenance and avoiding false alarms due to interference.

[0087] It should be noted that although multiple cycles are required to verify the accuracy of the target slave station's status information, the verification time is negligible due to the microsecond-level time precision of the slave station's data transmission and the allowable delay in alarm timing. This will not cause maintenance failure of the slave station. Increasing the data frame length would affect the accuracy of slave station control; therefore, the delay time for slave station control should be as small as possible. Thus, this application does not require increasing the data frame length, but can still increase the types and accuracy of slave station status information transmitted.

[0088] To further explain, for example, if N is 16 and the preset level is high, the current slave status information is determined by detecting the number of times the target digital bit is continuously set to high within 16 cycles. If the target slave status information is determined, a valid count of the target slave status information is performed. For example, if the battery low voltage warning status information or battery error warning status information is counted a certain number of times (e.g., the expected trigger value is 10 times), the corresponding battery low voltage warning or battery error warning status information alarm will take effect, generating the corresponding low voltage warning or battery error alarm. Otherwise, the battery low voltage warning or battery error alarm will be reset after the high count is cleared and the count will restart. If the status information is a multi-turn count error and the count is twice, a multi-turn count error alarm will be generated.

[0089] The specific counting rules are as follows:

[0090] A rising edge (0-1) triggers a high-level count, which can only be triggered once per cycle. It detects the number of consecutive high-level occurrences of the target digital bit, stopping the count upon encountering a 0 high-level occurrence. Within this cycle (16*T, where T is the master station interrupt cycle), if the number of consecutive high-level occurrences is 4, the battery low-voltage warning count is incremented by 1; if the number of consecutive high-level occurrences is 12, the multi-cycle error count is incremented by 1; and if the number of consecutive high-level occurrences is 16, the battery error warning count is incremented by 1.

[0091] If the target digital bit is set to 01111000000000000 in the 16 frames of data, it has been set to high level 4 times consecutively, corresponding to a low battery status, and the effective count is incremented by 1. If the target digital bit is set to 1010010000000001 in the 16 frames of data, this indicates that the target digital bit is an interference bit, and the effective count corresponding to the slave status is reset to zero. If the target digital bit is set to 1111111111110000 in the 16 frames of data, it has been set to high level 12 times consecutively, corresponding to a multi-turn count error, and the effective count is incremented by 1.

[0092] As a preferred embodiment, before acquiring N frames of data information transmitted by the station within N consecutive periods, the method further includes:

[0093] Set the priority order of slave status information;

[0094] The priority order is sent to the slave station so that the slave station sends its status information in priority order over N consecutive cycles.

[0095] In this embodiment, since the number of times the target digital bit is set to a preset level in N frames of data information within N consecutive periods corresponds to a type of slave status information, the same digital bit can correspond to multiple slave status information. If multiple slave status information is sent at the same time, a priority order can be preset for different slave status information. The slave can set the target digital bit in the N frames of data information to the preset level corresponding to the number of times according to the priority order. For example, the priority order can be, but is not limited to, multi-cycle count error > battery error > battery voltage.

[0096] Based on this, not only can timely maintenance of slave stations be guaranteed, but also the specific types of status information of the currently determined target slave station can be distinguished, thereby improving maintenance efficiency.

[0097] As a preferred embodiment, before counting the number of times the target digital bit is set to a preset level in N frames of data information over N consecutive periods, the method further includes:

[0098] Determine whether the number of times the target digital bit in N frames of data is set to a preset level is greater than the preset number of interferences;

[0099] If so, proceed to the step of counting the number of times the target digital bit in N frames of data is set to the preset level;

[0100] If not, then the target digital bit in the N frames of data is determined to be the interfered digital bit.

[0101] In this embodiment, considering that the target digital bit may also be set to a preset level when it is interfered with, which may lead to errors in the target slave status information determined by the master station, a preset interference number is set in order to avoid errors in the target slave status information caused by interference. Only when the number of times the target digital position in the N frames of data information is at the preset level is greater than the preset interference number within N consecutive periods can the number of preset levels be further determined; otherwise, the target digital bit in the data information can be determined to be a digital bit that has been interfered with.

[0102] For example, if the preset interference count is 1, that is, if the target digital position in N consecutive frames of data is at the preset level only once, then it can be determined that the target digital bit in N consecutive periods of N frames of data is the interfered digital bit, without needing to determine the corresponding target slave status information, thereby improving the accuracy of determining the target slave status information.

[0103] Please refer to Figure 3 , Figure 3 This is a schematic diagram of a data information communication device provided by the present invention. The system is applied to a main station, and the device includes:

[0104] The acquisition unit 301 is used to acquire N frames of data information sent by the station within N consecutive periods;

[0105] The statistics unit 302 is used to count the number of times the target digital bit is set to a preset level in N frames of data information;

[0106] The determining unit 303 is used to determine the target slave status information based on the number of times the target digital bits in the N frames of data are set to a preset level and a preset correspondence; wherein, the preset correspondence includes: the number of times each digital bit in the N frames of data is set to a preset level corresponds to a slave status information, and N is an integer greater than 1.

[0107] For a description of the data communication device provided by the present invention, please refer to the above method embodiments; the present invention will not be described again here.

[0108] Please refer to Figure 4 , Figure 4 This invention provides a schematic diagram of the structure of a data information communication system, which includes:

[0109] The master station 401 is used to acquire N frames of data information sent by the slave station in N consecutive periods, and count the number of times the target digital bit in the N frames of data information is set to a preset level. Based on the number of times the target digital bit in the N frames of data information is set to the preset level and the preset correspondence, the target slave station status information is determined.

[0110] The slave station 402, which is connected to the master station, is used to send N frames of data information to the master station in N consecutive cycles. The number of times each digital bit in the N frames of data information is set to a preset level corresponds to a slave station status information, and N is an integer greater than 1. For an introduction to the data information communication system provided by the present invention, please refer to the above method embodiment. The present invention will not be described again here.

[0111] The computer-readable storage medium of the present invention stores a computer program, which, when executed by a processor, implements the steps of the data communication method described above.

[0112] For a description of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments; the present invention will not be described again here.

[0113] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0114] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for communicating data information, characterized by, Applied to a master station, comprising: Obtaining N frames of data information transmitted by a slave station in continuous N cycles; Counting the number of times that a target digital bit is set to a preset level in the N frames of data information; Determining target slave station state information according to the number of times that the target digital bit is set to the preset level in the N frames of data information and a preset correspondence relationship; wherein the preset correspondence relationship includes that the number of times that each digital bit is set to the preset level in the N frames of data information respectively corresponds to one kind of slave station state information, and N is an integer greater than 1; The preset correspondence relationship specifically includes that the number of times that each digital bit is continuously set to the preset level in the N frames of data information respectively corresponds to the one kind of slave station state information; The counting of the number of times that the target digital bit is set to the preset level in the N frames of data information includes: Counting the number of times that the target digital bit is continuously set to the preset level in the N frames of data information; After the counting of the number of times that the target digital bit is continuously set to the preset level in the N frames of data information, further comprising: Determining whether the total number of times that the target digital bit is set to the preset level in the N frames of data information is greater than a target number of times; If yes, determining that the target digital bit in the N frames of data information is a disturbed digital bit; Before the counting of the number of times that the target digital bit is set to the preset level in the N frames of data information, further comprising: Determining whether the number of times that the target digital bit is set to the preset level in the N frames of data information is greater than a preset disturbance number of times; If yes, entering the step of counting the number of times that the target digital bit is set to the preset level in the N frames of data information; If no, determining that the target digital bit in the N frames of data information is a disturbed digital bit.

2. The data information communication method of claim 1, wherein, After the determination of the target slave station state information according to the number of times that the target digital bit is set to the preset level in the N frames of data information and the preset correspondence relationship, further comprising: Alarming based on the target slave station state information.

3. The data information communication method of claim 2, wherein, After the determination of the target slave station state information according to the number of times that the target digital bit is set to the preset level in the N frames of data information and the preset correspondence relationship, further comprising: S501: increasing the valid count corresponding to the target slave station state information by one; S502: determining whether the valid count corresponding to the target slave station state information is an expected trigger value, if no, entering step S503, if yes, entering step S506; S503: setting the next continuous N cycles after the current continuous N cycles as the current continuous N cycles; S504: determining whether the number of times that the target digital bit is set to the preset level in the N frames of data information transmitted by the slave station in the current continuous N cycles is the number of times corresponding to the target slave station state information based on the preset correspondence relationship, if yes, returning to step S501, if no, entering step S505; S505: clearing the valid count corresponding to the target slave station state information, and returning to the step of obtaining N frames of data information transmitted by the slave station in continuous N cycles; S506: entering the step of alarming based on the target slave station state information.

4. The data information communication method of claim 1, wherein The obtaining further includes, before the N frames of data information sent by the slave stations in the consecutive N cycles are obtained: A priority order of the slave station state information is set; The priority order is sent to the slave stations, so that the slave stations send the slave station state information in the consecutive N cycles according to the priority order.

5. A data information communication device, characterized by Applied to a master station, comprising: An obtaining unit is configured to obtain N frames of data information sent by slave stations in consecutive N cycles; A statistical unit is configured to count a number of times that a target digital bit is set to a preset level in the N frames of data information; A determination unit is configured to determine target slave station state information according to the number of times that the target digital bit is set to the preset level in the N frames of data information and a preset correspondence relationship; the preset correspondence relationship includes that a number of times that each digital bit is set to the preset level in the N frames of data information respectively corresponds to one kind of slave station state information, and N is an integer greater than 1; The preset correspondence relationship specifically includes that a number of times that each digital bit is continuously set to the preset level in the N frames of data information respectively corresponds to the one kind of slave station state information; The statistical unit is specifically configured to count a number of times that a target digital bit is continuously set to a preset level in N frames of data information; The data information communication device is further configured to, after the statistical unit counts the number of times that the target digital bit is continuously set to the preset level in the N frames of data information, determine whether a total number of times that the target digital bit is set to the preset level in the N frames of data information is greater than a target number of times; if yes, the target digital bit in the N frames of data information is determined to be a digital bit affected by interference; The data information communication device is further configured to, before the statistical unit counts the number of times that the target digital bit is set to the preset level in the N frames of data information, determine whether the number of times that the target digital bit is set to the preset level in the N frames of data information is greater than a preset interference number of times; if yes, the step of counting the number of times that the target digital bit is set to the preset level in the N frames of data information is entered; if no, the target digital bit in the N frames of data information is determined to be a digital bit affected by interference.

6. A data information communication system, characterized by Comprise: A master station is configured to obtain N frames of data information sent by slave stations in consecutive N cycles, count a number of times that a target digital bit is set to a preset level in the N frames of data information, and determine target slave station state information according to the number of times that the target digital bit is set to the preset level in the N frames of data information and a preset correspondence relationship; A slave station in communication connection with the master station is configured to send N frames of data information to the master station in consecutive N cycles, wherein a number of times that each digital bit is set to the preset level in the N frames of data information respectively corresponds to one kind of slave station state information, and N is an integer greater than 1; The preset correspondence relationship specifically includes that a number of times that each digital bit is continuously set to the preset level in the N frames of data information respectively corresponds to the one kind of slave station state information; When the master station counts the number of times that the target digital bit is set to the preset level in the N frames of data information, the master station is specifically configured to count a number of times that the target digital bit is continuously set to the preset level in the N frames of data information. The master station is further configured to determine whether the total number of times that the target digital bit is set to the preset level in the N frames of data information is greater than a target number of times; if yes, determine that the target digital bit in the N frames of data information is a disturbed digital bit. The master station is further configured to determine whether the number of times that the target digital bit is set to the preset level in the N frames of data information is greater than a preset number of disturbed times; if yes, enter the step of counting the number of times that the target digital bit is set to the preset level in the N frames of data information; if no, determine that the target digital bit in the N frames of data information is a disturbed digital bit.

7. A computer readable storage medium characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the data information communication method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Screen state switching method and device and storage medium

    CN113495652A

  • Method and device for processing slave station information and machine readable storage medium

    CN115001995A