CN116028387A - Data processing method, slave station, master station, and storage medium - Google Patents

Data processing method, slave station, master station, and storage medium Download PDF

Info

Publication number
CN116028387A
CN116028387A CN202310074391.0A CN202310074391A CN116028387A CN 116028387 A CN116028387 A CN 116028387A CN 202310074391 A CN202310074391 A CN 202310074391A CN 116028387 A CN116028387 A CN 116028387A
Authority
CN
China
Prior art keywords
state information
storage space
information
running state
annular storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310074391.0A
Other languages
Chinese (zh)
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Shunchu Intelligent Equipment Co ltd
Huizhou Haikui Information Technology Co ltd
Original Assignee
Guangdong Shunchu Intelligent Equipment Co ltd
Huizhou Haikui Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Shunchu Intelligent Equipment Co ltd, Huizhou Haikui Information Technology Co ltd filed Critical Guangdong Shunchu Intelligent Equipment Co ltd
Priority to CN202310074391.0A priority Critical patent/CN116028387A/en
Publication of CN116028387A publication Critical patent/CN116028387A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the invention provides a data processing method, a slave station, a master station and a storage medium, wherein the data processing method comprises the following steps: acquiring running state information and writing position information; according to the written position information and the position range information of the preset annular storage space, the running state information is written into the annular storage space in a substitution mode; acquiring a reading state record instruction sent by a master station; in response to a read status record instruction, the stored data in the annular memory space is transmitted to the primary station, the stored data including at least one operational status information. In the technical scheme of the embodiment, the annular storage space is preset in the memory of the singlechip, and the running state information is written into the annular storage space according to the written position information and the position range information of the preset annular storage space, so that the old data in the annular storage space can be quickly updated, the data fragments in the memory are effectively reduced, and the analysis efficiency of the data is effectively improved.

Description

Data processing method, slave station, master station, and storage medium
Technical Field
The present invention relates to, but is not limited to, the field of data processing technology, and in particular, to a data processing method, a slave station, a master station, and a storage medium.
Background
At present, in some industrial production application scenes, because the number of devices is large and the volume is large, the log record of each device needs to be read to reach the device control position for operation and processing, so that the device for effectively managing a plurality of links needs to be provided with a master control interface, a master control interface is arranged at the end of the master control interface, then a slave station is respectively arranged for a plurality of target devices, the master station is connected with the slave station through a bus, a singlechip is arranged in the slave station, and because the storage capacity of the singlechip is very small, only a storage space of hundreds of K data is needed, the memory space needs to be repeatedly applied for the log record reading of the device, and the memory fragmentation is easy to cause.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
The embodiment of the invention mainly aims to provide a data processing method, a secondary station, a primary station and a storage medium, which can effectively reduce data fragments in a memory, realize rapid update of a secondary station log in a limited storage space and effectively improve the analysis efficiency of data.
In a first aspect, an embodiment of the present invention provides a data processing method, applied to a singlechip of a slave station, where the slave station is connected to a master station through a bus, the method including:
acquiring running state information and writing position information;
writing the running state information into the annular storage space according to the writing position information and the position range information of the preset annular storage space, wherein the annular storage space is arranged in the memory of the singlechip of the slave station and is used for writing the running state information in a repeated mode;
acquiring a reading state record instruction sent by the master station;
and in response to the reading state record instruction, sending storage data in the annular storage space to the master station, wherein the storage data comprises at least one piece of running state information.
In an embodiment, the location range of the annular storage space includes start location information and space capacity information, and writing the running state information into the annular storage space according to the writing location information and the preset location range of the annular storage space includes:
and writing the running state information into the annular storage space when the writing position information is smaller than the sum of the starting position information and the space capacity information.
In an embodiment, the writing the running state information into the annular storage space according to the writing position information and the position range of the preset annular storage space includes:
and under the condition that the writing position information is larger than the sum of the starting position information and the space capacity information, the running state information is written into the annular storage space in a substitution mode from the starting position corresponding to the starting position information.
In an embodiment, the capacity of the running state information is set to a first fixed length, the capacity corresponding to the space capacity information is a second fixed length, the second fixed length is N times of the first fixed length, and N is a positive integer.
In an embodiment, before the acquiring the operation state information and the writing the position information, the method further includes:
and creating an annular storage space in the memory of the singlechip, wherein the annular storage space is used for recording the running state information of equipment corresponding to the slave station.
In an embodiment, a data processing method is applied to a master station, the master station is connected with a plurality of slave stations through a bus, the slave stations include a single-chip microcomputer, and the method includes:
sending a reading state record instruction to the slave;
receiving storage data sent by the slave machine in response to the reading state recording instruction, wherein the storage data comprises at least one piece of running state information, the running state information is stored in an annular storage space preset in a memory of the single chip microcomputer, and the annular storage space is used for repeatedly writing the running state information;
and storing the stored data into a local memory.
In an embodiment, the capacity of the operation state information is set to a first fixed length, and the method further includes:
reading the running state information in the stored data from the local memory according to the first fixed length;
and inquiring a local analysis list according to the running state information, and displaying the state information corresponding to the running state information on a screen.
In a second aspect, an embodiment of the present invention provides a secondary station, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the data processing method according to the first aspect when executing the computer program.
In a third aspect, an embodiment of the present invention provides a primary station, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the data processing method according to the second aspect when executing the computer program.
In a fourth aspect, a computer-readable storage medium stores computer-executable instructions for performing the data processing method according to the first aspect or for performing the data processing method according to the second aspect.
The beneficial effects of the invention include: the data processing method of the singlechip applied to the slave station, the slave station is connected with the master station through a bus, the method comprises the following steps: acquiring running state information and writing position information; writing the running state information into the annular storage space according to the writing position information and the position range information of the preset annular storage space, wherein the annular storage space is arranged in the singlechip of the slave station and is used for repeatedly writing the running state information; acquiring a reading state record instruction sent by a master station; in response to a read status record instruction, the stored data in the annular memory space is transmitted to the primary station, the stored data including at least one operational status information. According to the technical scheme, through the annular storage space preset in the memory of the singlechip, the running state information is written into the annular storage space according to the written-in position information and the position range information of the preset annular storage space, namely the running state information of the slave station can be written in the annular storage space in a repeated mode, the running state information is written into the memory of the singlechip, the old data in the annular storage space can be quickly updated, the data fragments in the memory are effectively reduced, the data format is improved through the fixed data length, the slave station log in the limited storage space can be quickly updated, the diary transmission and the quick analysis between the master station and the slave station are realized, and the analysis efficiency of the data is effectively improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
FIG. 1 is a system architecture platform for performing a data processing method provided by one embodiment of the present invention;
FIG. 2 is a flow chart of a data processing method applied to a singlechip of a slave station according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an application scenario of a data processing method according to another embodiment of the present invention;
fig. 4 is a flowchart of a data processing method applied to a master station according to another embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description, in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
At present, in some industrial production application scenes, because the number of devices is large and the volume is large, the log record of each device needs to be read to reach the device control position for operation and processing, so that the device for effectively managing a plurality of links needs to be provided with a master control interface, a master control interface is arranged at the end of the master control interface, then a slave station is respectively arranged for a plurality of target devices, the master station is connected with the slave station through a bus, a singlechip is arranged in the slave station, and because the storage capacity of the singlechip is very small, only a storage space of hundreds of K data is needed, the memory space needs to be repeatedly applied for the log record reading of the device, and the memory fragmentation is easy to cause.
In order to solve the above-mentioned problems, an embodiment of the present invention provides a data processing method, a slave station, a master station, and a storage medium, where the data processing method at least includes the following steps: acquiring running state information and writing position information; writing the running state information into the annular storage space according to the writing position information and the position range information of the preset annular storage space, wherein the annular storage space is arranged in the memory of the singlechip of the slave station and is used for repeatedly writing the running state information; acquiring a reading state record instruction sent by a master station; in response to a read status record instruction, the stored data in the annular memory space is transmitted to the primary station, the stored data including at least one operational status information.
According to the technical scheme, the annular storage space is preset in the memory of the singlechip, the running state information is written into the annular storage space according to the writing position information and the position range information of the preset annular storage space, namely the running state information of the slave station can be written in an iterated manner through the annular storage space, when a reading state record instruction sent by the master station is received, the running state information can be directly read from the memory and sent to the master station, the old data in the annular storage space can be quickly updated, the data fragments in the memory can be effectively reduced, the data format can be improved through the fixed data length, the slave station log in the limited storage space can be quickly updated, the diary transmission and the quick analysis between the master station and the slave station can be realized, and the analysis efficiency of the data can be effectively improved.
Embodiments of the present invention will be further described below with reference to the accompanying drawings.
Referring now to FIG. 1, FIG. 1 is a schematic diagram of a system architecture platform 100 for performing a data processing method according to one embodiment of the present application.
In the example of fig. 1, the system architecture platform 100 is provided with a processor 110 and a memory 120, wherein the processor 110 and the memory 120 may be connected by a bus or otherwise, in fig. 1 by way of example.
Memory 120, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. In addition, memory 120 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some implementations, the memory 120 optionally includes memory remotely located with respect to the processor 110, which may be connected to the system architecture platform 100 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The system architecture platform may be a programmable controller, or may be another controller, which is not specifically limited in this embodiment.
Those skilled in the art will appreciate that the system architecture platform shown in fig. 1 is not limiting of the embodiments of the present application, and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
Based on the system architecture platform, various embodiments of the data processing method of the present invention are presented below.
Referring to fig. 2, fig. 2 is a flowchart of a data processing method applied to a singlechip of a slave station according to an embodiment of the present invention, and the data processing method according to the embodiment of the present invention may include, but is not limited to, step S100, step S200, step S300, and step S400.
The application scenario of the data processing method is shown in fig. 3, the application scenario comprises a master station and at least 2 slave stations, the master station is connected with the at least 2 slave stations through a bus, a memory (Random Access Memory, RAM) of a singlechip of each slave station is provided with an annular storage space, the annular storage space is used for repeatedly writing equipment operation state information acquired by each slave station, and the master station can read the equipment operation state information through each slave station.
It should be noted that, the annular storage space is a section of space in the memory of the singlechip, the space is set to be used for recording running state information in the running process of the equipment, the space size of the annular storage space can be set to be a second fixed length L, the initial position of the annular storage space is Sx, that is, the range of the annular storage space is [ Sx, sx+l ].
Step S100, acquiring operation state information and writing position information.
Specifically, in the process of operating the device, the slave station may acquire the operating state information of the device according to a preset rule, where the preset rule may be to acquire the operating state information from the device at intervals of a first preset time, or may acquire the operating state information from the device according to an instruction of acquiring the state information of the master station, or may transmit the operating state information to the slave station at intervals of a second preset time, where the embodiment is not limited specifically. And when the running state information of the equipment is required to be acquired, the writing position information of the running state information in the annular storage space is required to be acquired, so that whether the running state information is required to be written in a repeated mode is determined according to the writing position information.
It should be noted that, before step S100, an annular storage space needs to be created in the memory of the singlechip, that is, a section of space is acquired in the memory and is used for recording the running state of the device in the running process, the size of the space is L, and the starting position is Sx.
It should be noted that, the first preset time and the second preset time may be set according to actual situations, which is not specifically limited in this embodiment.
Step 200, writing the running state information into the annular storage space according to the writing position information and the position range information of the preset annular storage space, wherein the annular storage space is arranged in the singlechip of the slave station and is used for repeatedly writing the running state information.
Specifically, the location range information of the preset annular storage space in the memory is [ Sx, sx+l ], the writing location information of the first running state information is written from Sx, the writing location information written in by the second running state information is sx+the size of the first running state information, the writing location information written in by the third running state information is sx+the size of the first running state information+the size of the second running state information, and so on, until the writing location information is sx+l, and the running state information is written in from the writing location information in a substitution mode.
It should be noted that, the capacity of the running state information is set to be a first fixed length, the capacity corresponding to the space capacity information is a second fixed length, the second fixed length is N times of the first fixed length, and N is a positive integer, so that the use waste of the memory space of the singlechip can be reduced, the configuration of the secondary station is avoided being complex, and the lightweight configuration of the secondary station is achieved.
In some alternative embodiments, the operational status information is written to the annular storage space if the written location information is less than the sum of the starting location information and the space capacity information; and under the condition that the written-in position information is larger than the sum of the initial position information and the space capacity information, the running state information is written into the annular storage space from the initial position corresponding to the initial position information in a substituted way, and then the step of writing the running state information into the annular storage space is repeated under the condition that the written-in position information is smaller than the sum of the initial position information and the space capacity information.
It should be noted that the operation state information may be set to a first fixed length or may be set to a different length value, which is not specifically limited in this embodiment. The operating state information includes information-dependent code signals, and when the operating state information may be set to a first fixed length, an annular storage space in the memory of the secondary station may store a plurality of the operating state information of the first fixed length. The running state information is set to be of a fixed length UL (unsigned long integer), the situation that the main station is complicated in logic due to the fact that the main station is required to judge identifiers of different length values UL (unsigned long integer) can be avoided, so that analysis processing capacity is reduced, the main station can be guaranteed to rapidly analyze data, high integration and high-efficiency utilization of data management are improved, namely, the data format is improved through the fixed data length, the log of the secondary station in a limited storage space can be rapidly updated, diary transmission and rapid analysis between the main station and the secondary station are realized, and the analysis efficiency of the data is effectively improved.
Step S300, a reading state recording instruction sent by a master station is obtained.
Specifically, when the master station needs to acquire the running state information of all or part of the devices, a reading state record instruction is sent to the slave station corresponding to the target device, and then the slave station receiving the reading state record instruction sent by the master station can analyze and respond to the instruction.
Step S400, in response to the read status record instruction, transmitting the storage data in the annular storage space to the master station, the storage data comprising at least one operational status information.
Specifically, the slave station responds to the reading state recording instruction sent by the master station, and all or part of storage data in the annular storage space is sent to the master station according to the requirement of the reading state recording instruction so as to meet the requirement of the master station on the running state information of the equipment, wherein the storage data comprises at least one running state information. In the technical scheme of the embodiment, through the annular storage space preset in the memory of the singlechip, the running state information is written into the annular storage space according to the writing position information and the position range information of the preset annular storage space, namely, the running state information of the slave station can be written in a repeated mode through the annular storage space, the old data in the annular storage space can be quickly updated, and the data fragments in the memory are effectively reduced.
In some optional embodiments, creating an annular storage space in a singlechip memory of the slave station, wherein the annular storage space is used for recording running state information in the running process of equipment, the size of the annular storage space is set to be L, and the initial position is set to be Sx; the singlechip of the slave station writes the acquired running state information in the slave device into the created annular storage space, the writing position information of the first running state information is written from Sx, the writing position information written in by the second running state information is Sx+the size of the first running state information, the writing position information written in by the third running state information is Sx+the size of the first running state information+the size of the second running state information, and so on until the writing position information is greater than Sx+L, and the writing position information is Sx to be used for repeatedly writing the running state information; for a write operation of the operation state information, the operation state information is represented in the form of a state data unit, the state data unit is set to a fixed length UL (unsigned long integer), and the state data unit is used to record a relevant code signal of the operation state information; after receiving the reading state record command sent by the master station, the slave station sends the storage data in the annular storage space to the master station, wherein the storage data comprises at least one piece of running state information, and can be all the storage data or part of storage data corresponding to the master station. In the technical scheme of the embodiment, when the self memory space of the singlechip is directly utilized to carry out annular data caching on the basis of multiple secondary stations, when a reading state record instruction sent by the primary station is received, running state information can be directly read from a memory and sent to the primary station, the old data in the annular memory space can be quickly updated, the data fragments in the memory can be effectively reduced, the data format is improved through the fixed data length, the secondary station log in the limited memory space can be quickly updated, diary transmission and quick analysis between the primary station and the secondary station are realized, the analysis efficiency of the data is effectively improved, the configuration of the secondary station is avoided, the lightweight configuration of the secondary station is realized, the fixed length UL (unsigned long) form is adopted, the situation that the primary station is complicated in logic due to the judgment requirement of identifiers of different length UL (unsigned long) can be avoided, the primary station can be further reduced, the data can be quickly analyzed, and the high integration and the high-efficiency utilization of the data management can be ensured.
Referring to fig. 4, fig. 4 is a flowchart of a data processing method applied to a master station according to another embodiment of the present invention, where the data processing method may include, but is not limited to, step S410 and step S420.
The application scenario of the data processing method is shown in fig. 3, the application scenario comprises a master station and a plurality of slave stations, the master station is connected with the plurality of slave stations through a bus, a memory (Random Access Memory, RAM) of a singlechip of each slave station is provided with an annular storage space, the annular storage space is used for repeatedly writing the running state information of equipment acquired by each slave station, and the master station can be used for reading the running state information of the equipment through each slave station.
It should be noted that, the annular storage space is a section of space in the memory of the singlechip, the space is set to be used for recording running state information in the running process of the equipment, the space size of the annular storage space can be set to be a second fixed length L, the initial position of the annular storage space is Sx, that is, the range of the annular storage space is [ Sx, sx+l ].
Step S410, a read status record command is sent to the slave.
Specifically, when the master station needs to acquire the running state information of all or part of the devices, a reading state record instruction is sent to the slave station corresponding to the target device, and the master station may send the reading state record instruction to the slave station corresponding to the target device according to a preset interval time, or may send the reading state record instruction to the slave station according to the acquired user operation instruction in response to the user operation instruction, which is not limited in this implementation.
Step S420, receiving storage data sent by the slave machine in response to the reading state record instruction, wherein the storage data comprises at least one piece of operation state information, the operation state information is stored in an annular storage space preset in a memory of the single chip microcomputer, and the annular storage space is used for repeatedly writing the operation state information.
Specifically, the master station receives storage data sent by the slave station, wherein the storage data is extracted from an annular storage space preset in a memory of the singlechip by the slave station according to a requirement of a reading state recording instruction sent by the master station, the storage data comprises at least one piece of running state information, and the annular storage space is used for repeatedly writing the running state information and is a cache area created in the memory of the singlechip. According to the technical scheme, through the annular storage space preset in the memory of the singlechip, the running state information is written into the annular storage space according to the writing position information and the position range information of the preset annular storage space, namely the running state information of the slave station can be written in an iterated manner through the annular storage space, when a reading state record instruction sent by the master station is received, the running state information can be directly read from the memory and sent to the master station, the old data in the annular storage space can be quickly updated, the data fragments in the memory can be effectively reduced, the data format can be improved through the fixed data length, the slave station log in the limited storage space can be quickly updated, the diary transmission and the quick analysis between the master station and the slave station can be realized, and the analysis efficiency of the data can be effectively improved.
In some optional embodiments, when the master station needs to acquire the running state information of all or part of the devices, a reading state record instruction may be sent to the slave station corresponding to the target device, and then the master station receives storage data sent by the slave station, where the storage data is storage data extracted from an annular storage space preset in a memory of the singlechip according to a requirement of the reading state record instruction sent by the master station, and the storage data includes at least one running state information, where the annular storage space is used to write the running state information in an overlapping manner, and is a buffer area created in the memory of the singlechip, where a capacity of the running state information is set to be a first fixed length; and then the master station stores the stored data into the local memory, reads the running state information in the stored data from the local memory according to the first fixed length, queries the local analysis list according to the running state information, and displays the state information corresponding to the running state information on the screen. In the technical scheme of the embodiment, the self memory space of the singlechip is directly utilized for annular data caching on the basis of multiple secondary stations, the writing efficiency of data can be effectively improved when the running state information is updated each time, the analysis complexity of the primary station is reduced, the secondary stations are configured in a lightweight mode, the condition that the primary station is complicated due to the judgment requirement of identifiers of different length values UL (unsigned long integer) in a fixed length UL (unsigned long integer) mode is adopted, the analysis processing capacity is reduced, the primary station can be ensured to rapidly analyze the data, and the high integration and high-efficiency utilization of data management are improved.
In addition, one embodiment of the present application provides a secondary station comprising: memory, a processor, and a computer program stored on the memory and executable on the processor. The processor and the memory may be connected by a bus or other means. It should be noted that, the controller in this embodiment may be correspondingly configured to include the memory and the processor in the embodiment shown in fig. 1, and may form a part of the system architecture platform in the embodiment shown in fig. 1, where the two are the same inventive concept, so that the two have the same implementation principle and beneficial effects, which are not described in detail herein.
The non-transitory software programs and instructions required to implement the data processing method on the controller side of the above-described embodiments are stored in the memory, and when executed by the processor, perform the data processing method of the above-described embodiments, for example, perform the method steps S100 to S400 in fig. 2 described above.
In addition, one embodiment of the present application provides a primary station comprising: memory, a processor, and a computer program stored on the memory and executable on the processor. The processor and the memory may be connected by a bus or other means. It should be noted that, the controller in this embodiment may be correspondingly configured to include the memory and the processor in the embodiment shown in fig. 1, and may form a part of the system architecture platform in the embodiment shown in fig. 1, where the two are the same inventive concept, so that the two have the same implementation principle and beneficial effects, which are not described in detail herein.
The non-transitory software programs and instructions required to implement the data processing method on the controller side of the above-described embodiments are stored in the memory, and when executed by the processor, perform the data processing method of the above-described embodiments, for example, perform the method steps S410 to S420 in fig. 4 described above.
Furthermore, an embodiment of the present application also provides a computer-readable storage medium storing computer-executable instructions for performing the above-described data processing method, for example, performing the above-described method steps S100 to S400 in fig. 2; as another example, method steps S410 to S420 in fig. 4 described above are performed.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically include computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and may include any information delivery media. The computer-readable storage medium may be nonvolatile or volatile.
While the preferred embodiments of the present application have been described in detail, the present application is not limited to the above embodiments, and various equivalent modifications and substitutions can be made by those skilled in the art without departing from the spirit and scope of the present application, and these equivalent modifications and substitutions are intended to be included in the scope of the present application as defined in the appended claims.

Claims (10)

1. A data processing method, characterized by a single chip microcomputer applied to a slave station, the slave station being connected to a master station via a bus, the method comprising:
acquiring running state information and writing position information;
writing the running state information into the annular storage space according to the writing position information and the position range information of the preset annular storage space, wherein the annular storage space is arranged in the memory of the singlechip of the slave station and is used for writing the running state information in a repeated mode;
acquiring a reading state record instruction sent by the master station;
and in response to the reading state record instruction, sending storage data in the annular storage space to the master station, wherein the storage data comprises at least one piece of running state information.
2. The data processing method according to claim 1, wherein the position range of the annular storage space includes start position information and space capacity information, and the writing of the operation state information into the annular storage space based on the written position information and the preset position range of the annular storage space includes:
and writing the running state information into the annular storage space when the writing position information is smaller than the sum of the starting position information and the space capacity information.
3. The data processing method according to claim 2, wherein the writing the operation state information into the annular storage space according to the writing position information and a position range of a preset annular storage space includes:
and under the condition that the writing position information is larger than the sum of the starting position information and the space capacity information, the running state information is written into the annular storage space in a substitution mode from the starting position corresponding to the starting position information.
4. The data processing method according to claim 2, wherein the capacity of the operation state information is set to a first fixed length, the capacity corresponding to the space capacity information is a second fixed length, the second fixed length is N times the first fixed length, and the N is a positive integer.
5. The data processing method according to claim 1, wherein before the acquiring of the operation state information and the writing of the position information, the method further comprises:
and creating an annular storage space in the memory of the singlechip, wherein the annular storage space is used for recording the running state information of equipment corresponding to the slave station.
6. A data processing method, characterized in that it is applied to a master station, said master station being connected to a plurality of slave stations by a bus, said slave stations comprising a single-chip microcomputer, said method comprising:
sending a reading state record instruction to the slave;
and receiving storage data sent by the slave machine in response to the reading state recording instruction, wherein the storage data comprises at least one piece of running state information, the running state information is stored in an annular storage space preset in a memory of the singlechip, and the annular storage space is used for repeatedly writing the running state information.
7. The data processing method according to claim 1, wherein a capacity of the operation state information is set to a first fixed length, the method further comprising:
storing the stored data into a local memory;
reading the running state information in the stored data from the local memory according to the first fixed length;
and inquiring a local analysis list according to the running state information, and displaying the state information corresponding to the running state information on a screen.
8. A secondary station, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data processing method according to any one of claims 1 to 5 when executing the computer program.
9. A primary station, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the data processing method according to any one of claims 6 to 7 when executing the computer program.
10. A computer-readable storage medium storing computer-executable instructions for performing the data processing method of any one of claims 1 to 5 or for performing the data processing method of any one of claims 6 to 7.
CN202310074391.0A 2023-01-31 2023-01-31 Data processing method, slave station, master station, and storage medium Pending CN116028387A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310074391.0A CN116028387A (en) 2023-01-31 2023-01-31 Data processing method, slave station, master station, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310074391.0A CN116028387A (en) 2023-01-31 2023-01-31 Data processing method, slave station, master station, and storage medium

Publications (1)

Publication Number Publication Date
CN116028387A true CN116028387A (en) 2023-04-28

Family

ID=86073761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310074391.0A Pending CN116028387A (en) 2023-01-31 2023-01-31 Data processing method, slave station, master station, and storage medium

Country Status (1)

Country Link
CN (1) CN116028387A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1381052A2 (en) * 1997-03-14 2004-01-14 Koninklijke Philips Electronics N.V. Writing device, record carrier and method of writing information blocks, and reading device for reading information blocks
WO2017113080A1 (en) * 2015-12-29 2017-07-06 深圳配天智能技术研究院有限公司 Slave station firmware update method, system, master station and slave station
CN108563704A (en) * 2018-03-26 2018-09-21 深圳市景阳信息技术有限公司 A kind of method, apparatus and equipment of data write-in
CN111786862A (en) * 2019-04-04 2020-10-16 赛格威科技有限公司 Control system and control method thereof and all-terrain vehicle
CN114217738A (en) * 2021-11-25 2022-03-22 深圳益邦阳光有限公司 Dynamic queue type cyclic storage method, device, equipment and medium
CN114661624A (en) * 2022-03-10 2022-06-24 北京威视锐科技有限公司 Method, system, equipment and storage medium for efficiently acquiring and storing data

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1381052A2 (en) * 1997-03-14 2004-01-14 Koninklijke Philips Electronics N.V. Writing device, record carrier and method of writing information blocks, and reading device for reading information blocks
WO2017113080A1 (en) * 2015-12-29 2017-07-06 深圳配天智能技术研究院有限公司 Slave station firmware update method, system, master station and slave station
CN108563704A (en) * 2018-03-26 2018-09-21 深圳市景阳信息技术有限公司 A kind of method, apparatus and equipment of data write-in
CN111786862A (en) * 2019-04-04 2020-10-16 赛格威科技有限公司 Control system and control method thereof and all-terrain vehicle
CN114217738A (en) * 2021-11-25 2022-03-22 深圳益邦阳光有限公司 Dynamic queue type cyclic storage method, device, equipment and medium
CN114661624A (en) * 2022-03-10 2022-06-24 北京威视锐科技有限公司 Method, system, equipment and storage medium for efficiently acquiring and storing data

Similar Documents

Publication Publication Date Title
CN109508246A (en) Log recording method, system and computer readable storage medium
CN107209644A (en) A kind of data processing method and NVMe memories
US10423542B2 (en) Data transmission method and system for transmitting data between processes using shared memory block indexes
US20140189674A1 (en) Information processing apparatus and information processing method
CN108989432B (en) User-mode file sending method, user-mode file receiving method and user-mode file receiving and sending device
CN104092717A (en) Message processing method and system, message destination end device and distributed message system
CN105338078A (en) Data storage method and device used for storing system
CN103559274A (en) Vehicle condition information query method and device
CN103595808A (en) Method and device for pushing update information of file
CN107741965B (en) Database synchronous processing method and device, computing equipment and computer storage medium
CN113301558B (en) Message transmission method, device, system and storage medium
CN1829231B (en) Method and apparatus for direct reception of inbound data
CN105141696A (en) File uploading method and device
CN116028387A (en) Data processing method, slave station, master station, and storage medium
CN104394099A (en) Packet transmission method and device
CN103714059A (en) Data updating method and device
CN108153597B (en) LINUX equipment management device and method
CN114576828B (en) Communication management method, bifurcation box, multi-split air conditioning system and storage medium
CN104735097A (en) Information collecting method and system
CN114706526A (en) Automatic capacity expansion method, system and equipment for cloud native storage data volume
CN103970860A (en) Method, device and system for processing data
CN112187842A (en) Local area network data processing system and local area network data processing method
CN104869171A (en) Information processing method and smart home equipment
CN113127222B (en) Data transmission method, device, equipment and medium
KR102351451B1 (en) Apparatus and method for transmitting situation information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination