CN114371674A - Method and device for sending analog data frame, storage medium and electronic device - Google Patents

Method and device for sending analog data frame, storage medium and electronic device Download PDF

Info

Publication number
CN114371674A
CN114371674A CN202111652334.3A CN202111652334A CN114371674A CN 114371674 A CN114371674 A CN 114371674A CN 202111652334 A CN202111652334 A CN 202111652334A CN 114371674 A CN114371674 A CN 114371674A
Authority
CN
China
Prior art keywords
data frame
master station
analog data
substation
analog
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.)
Granted
Application number
CN202111652334.3A
Other languages
Chinese (zh)
Other versions
CN114371674B (en
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.)
China University of Mining and Technology CUMT
Xian Coal Mining Machinery Co Ltd
Original Assignee
China University of Mining and Technology CUMT
Xian Coal Mining Machinery 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 China University of Mining and Technology CUMT, Xian Coal Mining Machinery Co Ltd filed Critical China University of Mining and Technology CUMT
Priority to CN202111652334.3A priority Critical patent/CN114371674B/en
Publication of CN114371674A publication Critical patent/CN114371674A/en
Application granted granted Critical
Publication of CN114371674B publication Critical patent/CN114371674B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication
    • G05B19/4186Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS], computer integrated manufacturing [CIM] characterised by the network communication by protocol, e.g. MAP, TOP
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/31From computer integrated manufacturing till monitoring
    • G05B2219/31136Name of bus, canbus, controller area network
    • 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 application provides a method and a device for sending an analog data frame, a storage medium and an electronic device, wherein the method comprises the following steps: acquiring analog data frames of a plurality of substations, wherein the analog data frames comprise data for testing functions of the substations, and the substations comprise one or more devices to be tested; and sending the analog data frame and the corresponding control instruction to the substation through the master station, wherein the master station is electrically connected with the substation. The problems that in the related art, the coal mining machine control system uses a real sensor to carry out testing, the testing cost is high, and all functional tests cannot be completed are solved.

Description

Method and device for sending analog data frame, storage medium and electronic device
Technical Field
The application relates to the technical field of coal mining machine testing, in particular to a method and a device for sending an analog data frame, a storage medium and an electronic device.
Background
The factory test of the current coal mining machine control system is only limited to a single fixed subject test, and the test of the whole operation condition and fault data of the coal mining machine cannot be provided. At present, when a coal mining machine control system is tested in a factory, a real physical sensor needs to be connected to acquire a data stream of the real physical sensor, and partial functional tests are completed. This test method has the following problems: the cost of testing by using a real sensor is high; even if a real physical sensor is connected, the fault data flow of the sensor cannot be simulated; the sensor data flow under the complex working condition environment in the pit cannot be simulated, so that all functional tests cannot be completed; under the condition that intelligent equipment such as a frequency converter, a motor protector, an alternating current contactor and the like is not connected, the coal mining machine control system cannot perform data interaction with the equipment, cannot test the driving function of the intelligent equipment by the control system, and cannot perform full-function test.
Aiming at the problems that the testing cost of a coal mining machine control system is high and the whole function test cannot be completed by using a real sensor in the related technology, an effective solution is not provided in the related technology.
Disclosure of Invention
The embodiment of the application provides a method and a device for sending an analog data frame, a storage medium and an electronic device, and at least solves the problems that in the related art, a coal mining machine control system uses a real sensor to carry out test, the test cost is high, and all functional tests cannot be completed.
In an embodiment of the present application, a method for sending an analog data frame is provided, including: acquiring analog data frames of a plurality of substations, wherein the analog data frames comprise data used for testing functions of the substations, and the substations comprise one or more devices to be tested; and sending the analog data frame and the corresponding control instruction to the substation through a master station, wherein the master station is electrically connected with the substation.
In one embodiment, the acquiring analog data frames of a plurality of outstations includes: acquiring an initial data frame of the equipment to be tested when the equipment to be tested leaves a factory, wherein the initial data frame is in a small-end format; generating the simulated data frame using the initial data frame, wherein the simulated data frame has an offset relative to the initial data frame.
In one embodiment, said generating said simulated data frame using said initial data frame form comprises: judging whether the initial data frame meets a preset scale system or not; determining the initial data frame as the analog data frame under the condition that the initial data frame meets the preset scale; and under the condition that the initial data frame does not meet the preset scale, shifting the initial data frame according to the offset to obtain the analog data frame.
In an embodiment, the shifting the initial data frame according to the offset to obtain the analog data frame includes: converting the initial data frame into an intermediate data frame in a big-end format to obtain the offset of the intermediate data frame relative to the initial data frame; writing the offset of the equipment to be tested into a configuration file of the equipment to be tested; reading the configuration file, and carrying out data bit offset on the intermediate data frame according to the offset to obtain an offset data frame; and converting the shifted data frame into a small-end format to obtain the analog data frame.
In one embodiment, before the analog data frame and the corresponding control instruction are transmitted to the substation by the master station, the method further includes: distributing the analog data frames of the substations to one or more Controller Area Network (CAN) -Ethernet CAN-NET modules through a switch; and after the analog data frame is converted into a CAN data frame through the CAN-NET module, the CAN data frame is sent to the master station.
In one embodiment, the sending, by the master station, the analog data frame and the corresponding control instruction to the slave station includes: and sending the CAN data frame and the corresponding control instruction to the substation through a master station so that the substation executes a corresponding test according to the CAN data frame and the corresponding control instruction.
In an embodiment, in a case that the device under test in the substation includes a frequency converter, after the CAN data frame is sent to the master station, the method further includes: the master station returns a feedback data frame according to the received CAN data frame, wherein the CAN data frame comprises the virtual rotating speed value of the frequency converter, and the feedback data frame comprises the actual rotating speed value of the frequency converter; adjusting the virtual rotating speed value according to the actual rotating speed value to obtain an adjusted rotating speed value; and sending the adjusted rotating speed value to the master station through the CAN data frame.
In an embodiment, after sending the CAN data frame to the master station when the device under test in the substation is a remote controller, the method further includes: and after receiving a response data frame returned by the master station, sending the simulated data frame containing the simulated working condition of the remote controller and a corresponding control instruction to the master station.
In another embodiment of the present application, a device for transmitting an analog data frame is further provided, including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is configured to acquire analog data frames of a plurality of substations, the analog data frames comprise data for testing functions of the substations, and the substations comprise one or more devices to be tested; and the transmitting module is configured to transmit the analog data frame and the corresponding control instruction to the substation through a master station, wherein the master station is electrically connected with the substation.
In an embodiment of the present application, a computer-readable storage medium is also proposed, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above-described method embodiments when executed.
In an embodiment of the present application, there is further proposed an electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the steps of any of the above method embodiments.
According to the method and the device, in order to solve the problem that the intelligent coal cutter control system is incomplete in testing, an intelligent substation virtual driving method for intelligent coal cutter testing is provided, the overall architecture of an intelligent substation virtual testing platform is constructed, a driving protocol of the testing platform is designed, and the CAN bus is adopted to communicate with the coal cutter control system to achieve master-slave station communication. The problem that a coal mining machine control system in the related technology is high in testing cost and cannot complete all function tests by using a real sensor is solved, all substations of the coal mining machine electrical system are simulated through software programming, the whole sensing feedback and driving tests of the control system are achieved, various devices to be tested such as a frequency converter, a motor protector, an alternating current contactor, a sensor and a remote controller can be simulated in the substations, and the whole function tests of the coal mining machine control system are effectively achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of an alternative method for transmitting an analog data frame according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an alternative left and right pump level sensor data frame according to an embodiment of the present application;
FIG. 3 is a data frame diagram of an alternative 12-bit sensor according to an embodiment of the present application;
fig. 4 is a schematic diagram illustrating an alternative offset-based outstation data frame encapsulation according to an embodiment of the present application;
fig. 5 is a flow chart of an alternative offset-based outstation data frame encapsulation according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative CAN bus connection according to an embodiment of the present application;
FIG. 7 is a diagram illustrating a hardware connection of an alternative apparatus for transmitting analog data frames according to an embodiment of the present application;
FIG. 8 is a flow chart of an alternative virtual driving of a remote control according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an alternative analog data frame transmitting apparatus according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are, for example, capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures. Throughout this specification, the same or similar reference numbers refer to the same or similar structures, elements, or processes. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The term "comprises/comprising" and any derivatives thereof, as used in this application, are intended to cover a non-exclusive inclusion.
As shown in fig. 1, an embodiment of the present application provides a method for sending an analog data frame, including:
step S102, acquiring analog data frames of a plurality of substations, wherein the analog data frames comprise data for testing functions of the substations, and the substations comprise one or more devices to be tested;
and step S104, sending the analog data frame and the corresponding control instruction to the substation through the master station, wherein the master station is electrically connected with the substation.
It should be noted that the master station in the embodiment of the present application may be an electric control box, a Controller, and the like in a coal mining machine control system, and may be implemented in a mode of a single chip microcomputer and a Programmable Logic Controller (PLC), and respectively connected to a computer terminal and a CAN bus. The analog data frame CAN be generated by the computer end and then transmitted to the master station, and the master station distributes the analog data frame to each substation connected to the CAN bus.
There are many devices to be tested in the coal mining machine electrical system, such as sensors, frequency converters, motor protectors, ac contactors, remote controllers, etc., wherein there are hundreds of sensors, such as Temperature sensors, Positive Temperature Coefficient (PTC) sensors, pressure sensors, and flow sensors. And connecting the equipment to be tested to the CAN bus to exist in a substation form. A substation may include a frequency converter or an ac contactor, and may also include one or more sensors. The test function is completed through the operation of the master station on the substation, the packaging mode of the data frames of the devices to be tested is required to be embedded into software, and due to different data frame composition modes of various devices to be tested, if each device to be tested writes a data frame packaging program, code redundancy, system complexity and poor repeatability can be caused, and system maintenance such as adding and deleting the devices to be tested, modifying the position of the data frame, modifying COB-ID (node number) and the like is not facilitated for factory workers.
The length of a CAN data frame used for communication of a common coal mining machine is 13 bytes, the length of the first byte is the length of the data frame, the lengths of the four bytes are COB-ID, and the last 8 bytes are Process Data Object (PDO) areas. Taking a sensor as an example, a common data encapsulation mode is to store data according to data positions on a sensor specification, for example, a data frame of a liquid level sensor of a left pump and a right pump shown in fig. 2, the sensor is a 16-bit sensor, occupies exactly two bytes, and can be configured in a word size + high-low byte mode. The PDO is used for transmitting real-time data, and is the most important data transmission mode in CANopen. The transmission speed is high because the transmission of the PDO does not need to be answered and the length of the PDO can be less than 8 bytes. However, if the data frame of the same substation contains sensor data with 16 bits, such as 12-bit sensor, the data in one sensor spans two word sizes, and thus, the data encapsulation of all types of sensors cannot be satisfied by the word size. As shown in fig. 3, the number of turns spans two word sizes, and it appears that the values of the two parameters are not continuously mixed in one byte. If this special case cannot be solved, the data frame encapsulation program can only be written for such sensors or substations individually.
In one embodiment, the acquiring analog data frames of a plurality of outstations includes: acquiring an initial data frame of the equipment to be tested when the equipment to be tested leaves a factory, wherein the initial data frame is in a small-end format; an analog data frame is generated using the initial data frame, wherein the analog data frame has an offset relative to the initial data frame. Note that the offset amount here may be 0.
In an embodiment, the generating of the analog data frame by using the initial data frame may be implemented by:
s1, judging whether the initial data frame meets a preset system (for example, whether the initial data frame is a 16-bit sensor);
s2, determining the initial data frame as an analog data frame (corresponding to an offset of 0) when the initial data frame satisfies a predetermined scale;
and S3, under the condition that the initial data frame does not meet the preset system (for example, the initial data frame comprises a 12-bit sensor), shifting the initial data frame according to the offset to obtain the analog data frame.
In an embodiment, the shifting the initial data frame by the offset to obtain the analog data frame may be implemented by:
s1, converting the initial data frame into a middle data frame in a big-end format, and obtaining the offset of the middle data frame relative to the initial data frame;
s2, writing the offset of the equipment to be tested into a configuration file of the equipment to be tested;
s3, reading the configuration file, and carrying out data bit offset on the intermediate data frame according to the offset to obtain the offset data frame;
and S4, converting the shifted data frame into a small-end format to obtain an analog data frame.
Fig. 4 is a schematic diagram of optional substation data frame encapsulation based on offset according to an embodiment of the present application, and as shown in fig. 4, taking a sensor as an example, a data frame format (generally, a small-end format) of the sensor when leaving a factory is first obtained; then converting the data into a format of a large-end data frame to obtain offset; then filling and writing the offset of each sensor into a configuration file of a bottom layer; the data encapsulation program can automatically read the configuration information of all the sensors and carry out data bit offset; and finally, the converted small-end data frames are transmitted to a CAN-NET-2EU (a CAN-NET conversion module for converting the data frames generated by the computer into CAN data frame formats) in a byte stream mode, and the module CAN convert the byte stream into CAN data frames and transmit the CAN data frames to a master station (equivalent to a coal mining machine controller).
Fig. 5 is a flowchart of an alternative offset-based outstation data frame encapsulation process according to an embodiment of the present application, and as shown in fig. 5, the offset-based outstation data frame encapsulation process includes the following steps:
s501, acquiring a data frame format of the sensor when the sensor leaves the factory (the sensor is taken as an example for explanation here, and may be other devices to be tested);
s502, determining whether the factory data frame satisfies 16 bits (here, the preset scale is set to 16, or other scales are set), if yes, executing S503, and if no, executing S5021;
s5021, converting the factory data frame into a large-end data frame, calculating the offset, and executing S5022;
s5022, filling the offset into the bottom layer configuration file, and executing S5023;
s5023, reading the sensor configuration file information by a packaging program in the computer, carrying out data bit offset, and executing S5024;
s5024, converting the shifted data into small-end data frames, and executing S503;
s503, sending the data frame obtained in the last step to a CAN-NET-2EU to be converted into a CAN data frame;
and S504, sending the CAN data frame to a coal mining machine controller.
TABLE 1-1
Figure BDA0003447450320000091
Dmax, D0, Amax, and a0 are equivalent to four parameters, and represent a digital maximum value, a digital minimum value, an analog maximum value, and an analog minimum value, respectively, and the data value RawData written in the data frame can be determined by the following formula:
Figure BDA0003447450320000101
current represents the current value in the table, i.e., the set test value.
In one embodiment, before the analog data frame and the corresponding control command are transmitted to the slave station by the master station, the method further comprises: the method comprises the steps that analog data frames of a plurality of substations are distributed to one or more Controller Area Network (CAN) -Ethernet CAN-NET modules through a switch; and after the analog data frame is converted into a CAN data frame through the CAN-NET module, the CAN data frame is sent to the master station.
In one embodiment, sending, by the master station, the analog data frame and the corresponding control instruction to the slave station includes: and sending the CAN data frame and the corresponding control instruction to the substation through the master station, so that the substation executes the corresponding test according to the CAN data frame and the corresponding control instruction.
Fig. 6 is a schematic diagram of an optional CAN bus connection according to an embodiment of the present application, and as shown in fig. 6, three substations and three frequency converters are connected to a CAN bus, where each frequency converter may be regarded as one substation, a substation 1 may include a plurality of sensors, a substation 2 may include an ac contactor, a substation 3 may include a remote controller, and different substations may also include other devices to be tested, which is not limited in this embodiment of the present application.
Fig. 7 is a schematic diagram of a hardware connection of an optional analog data frame transmitting apparatus according to an embodiment of the present application, and as shown in fig. 7, a computer side (PC) is connected to a switch to distribute an analog data frame, and the analog data frame is distributed to two CAN-NET modules, and the analog data frame is converted into a CAN data frame and then distributed through a CAN bus, or may be transmitted to a controller (equivalent to a master station) and then distributed to each substation through the CAN bus.
In an embodiment, in a case where the device under test in the substation includes a frequency converter, after sending the CAN data frame to the master station, the method further includes: the master station returns a feedback data frame according to the received CAN data frame, wherein the CAN data frame comprises a virtual rotating speed value of the frequency converter, and the feedback data frame comprises an actual rotating speed value of the frequency converter; adjusting the virtual rotating speed value according to the actual rotating speed value to obtain an adjusted rotating speed value; and sending the adjusted rotating speed value to the master station through a CAN data frame.
For example, the frequency converter parameters may include: motor speed, motor temperature, motor current, torque, output voltage, direct current bus voltage fault word.
Tables 1 to 2
Name (R) Current value COBID offset Dmax D0 Amax A0
Main speed of rotation 60 0X483 0 100 0 15 0
Traction motor current 0 0X483 16 10 0 1 0
Principal temperature 60 0X493 16 10 0 1 0
Main torque 60 0X493 0 100 0 1 0
Output voltage 60 0X493 48 1 0 1 0
DC bus voltage 60 0X493 32 1 0 1 0
Failure word 1 0 0X483 0 1 0 1 0
Failure word 2 0 0X483 0 1 0 1 0
The method comprises the steps that a computer end sends data frames with COB-IDs of 0x483 and 0x493 to a CAN bus, the data frames comprise temperature, rotating speed values, output voltage, direct current bus voltage and the like, after a coal mining machine control system receives the data frames, a COB-ID of 0x216 data frame is returned, the data frame is captured on the bus in a User Datagram Protocol (UDP) mode, then the rotating speed value of the data frame is analyzed, and the rotating speed value in a virtual driver is adjusted according to the analyzed rotating speed value.
In an embodiment, after sending the CAN data frame to the master station when the device under test in the substation is a remote controller, the method further includes: and after receiving the response data frame returned by the master station, sending the simulation data frame containing the simulation working condition of the remote controller and the corresponding control instruction to the master station.
The remote controller comprises operation commands of a left rocker arm lifting key, a left rocker arm lowering key, a right rocker arm lifting key, a right rocker arm lowering key, a left traction key, a right traction key, a traction stop key, a crushing lifting key, a crushing lowering key, an inclined guard plate lifting key, an inclined guard plate lowering key, an up-down left-right moving key and a left-right moving key. And filling data frames corresponding to the keys in a configuration table in an offset manner, automatically generating CAN data frames by a virtual driver according to key instructions of a remote controller at a mobile terminal, sending the CAN data frames to a coal mining machine control system, capturing and controlling return frames of the remote controller on a bus through UDP (user datagram protocol), acquiring whether the coal mining machine control system executes corresponding actions after the keys of the remote controller are pressed down, and continuously executing the following logic after capturing the instruction frames returned by the control system by the virtual driver.
Fig. 8 is a flowchart illustrating an alternative virtual driving method for a remote controller according to an embodiment of the present application, where, as shown in fig. 8, the virtual driving method for the remote controller includes the following steps:
s801, a virtual driver of the remote controller sends a virtual data frame;
s802, the CAN-NET module converts the virtual data frame into a CAN data frame;
s803, the controller (master station) receives the CAN data frame;
s804, returning the frame by the UDP stiffening controller;
s805, judging whether a corresponding return frame is captured or not, if so, executing S806, otherwise, returning to execute S804;
s806, the virtual driver simulates corresponding working conditions to send remote controller data;
s807, wait for the next operation instruction to execute, and return to S801 or end the test.
As shown in fig. 9, according to another embodiment of the present application, there is further provided a device for sending an analog data frame, which is used to implement the method described in any one of the method embodiments above, and the already described content is not repeated here, and the device includes:
an obtaining module 902 configured to obtain analog data frames of a plurality of substations, wherein the analog data frames include data for testing functions of the substations, and the substations include one or more devices under test;
and a sending module 904 configured to send the analog data frame and the corresponding control instruction to the substation through the master station, wherein the master station is electrically connected to the substation.
For specific limitations of the analog data frame transmitting apparatus, reference may be made to the above limitations on the analog data frame transmitting method, which are not described herein again. The modules in the analog data frame transmitting device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus for implementing the method for transmitting analog data frames, where the electronic apparatus may be, but is not limited to be, applied in a server. As shown in fig. 10, the electronic device comprises a memory 1002 and a processor 1004, wherein the memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps of any one of the above method embodiments by the computer program.
Optionally, in this embodiment, the electronic apparatus may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
step S1, acquiring analog data frames of a plurality of substations, wherein the analog data frames comprise data for testing functions of the substations, and the substations comprise one or more devices to be tested;
and step S2, sending the analog data frame and the corresponding control instruction to the substation through the master station, wherein the master station is electrically connected with the substation.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 10 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The memory 1002 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for sending an analog data frame in the embodiment of the present application, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implements the sending method for an analog data frame. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal over 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 memory 1002 may be, but not limited to, specifically configured to store program steps of a method for transmitting an analog data frame.
Optionally, the above-mentioned transmission device 1006 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 1006 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1008 for displaying the transmission process of the analog data frame; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
Embodiments of the present application further provide a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
step S1, acquiring analog data frames of a plurality of substations, wherein the analog data frames comprise data for testing functions of the substations, and the substations comprise one or more devices to be tested;
and step S2, sending the analog data frame and the corresponding control instruction to the substation through the master station, wherein the master station is electrically connected with the substation.
Optionally, the storage medium is further configured to store a computer program for executing the steps included in the method in the foregoing embodiment, which is not described in detail in this embodiment.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including instructions for causing one or more computer devices (which may be personal computers, servers, network devices, or the like) to execute all or part of the steps of the method described in the embodiments of the present application.
In the above embodiments of the present application, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (11)

1. A method for transmitting an analog data frame, comprising:
acquiring analog data frames of a plurality of substations, wherein the analog data frames comprise data used for testing functions of the substations, and the substations comprise one or more devices to be tested;
and sending the analog data frame and the corresponding control instruction to the substation through a master station, wherein the master station is electrically connected with the substation.
2. The method of claim 1, wherein obtaining analog data frames for a plurality of outstations comprises:
acquiring an initial data frame of the equipment to be tested when the equipment to be tested leaves a factory, wherein the initial data frame is in a small-end format;
generating the simulated data frame using the initial data frame, wherein the simulated data frame has an offset relative to the initial data frame.
3. The method of claim 2, wherein said generating the simulated data frame using the initial data frame form comprises:
judging whether the initial data frame meets a preset scale system or not;
determining the initial data frame as the analog data frame under the condition that the initial data frame meets the preset scale;
and under the condition that the initial data frame does not meet the preset scale, shifting the initial data frame according to the offset to obtain the analog data frame.
4. The method of claim 3, wherein said shifting the initial data frame by the offset to obtain the analog data frame comprises:
converting the initial data frame into an intermediate data frame in a big-end format to obtain the offset of the intermediate data frame relative to the initial data frame;
writing the offset of the equipment to be tested into a configuration file of the equipment to be tested;
reading the configuration file, and carrying out data bit offset on the intermediate data frame according to the offset to obtain an offset data frame;
and converting the shifted data frame into a small-end format to obtain the analog data frame.
5. The method of any of claims 1 to 4, wherein prior to transmitting the analog data frames and corresponding control instructions to the outstations by a master station, the method further comprises:
distributing the analog data frames of the substations to one or more controller area network-Ethernet CAN-NET modules through a switch;
and after the analog data frame is converted into a CAN data frame through the CAN-NET module, the CAN data frame is sent to the master station.
6. The method of claim 5, wherein the transmitting, by the master station, the analog data frames and corresponding control instructions to the outstations comprises:
and sending the CAN data frame and the corresponding control instruction to the substation through a master station so that the substation executes a corresponding test according to the CAN data frame and the corresponding control instruction.
7. The method of claim 5, wherein after transmitting the CAN data frame to the master station in a case where the device under test in the substation includes a frequency converter, the method further comprises:
the master station returns a feedback data frame according to the received CAN data frame, wherein the CAN data frame comprises the virtual rotating speed value of the frequency converter, and the feedback data frame comprises the actual rotating speed value of the frequency converter;
adjusting the virtual rotating speed value according to the actual rotating speed value to obtain an adjusted rotating speed value;
and sending the adjusted rotating speed value to the master station through the CAN data frame.
8. The method of claim 5, wherein after sending the CAN data frame to the master station in a case where the device under test in the substation is a remote controller, the method further comprises:
and after receiving a response data frame returned by the master station, sending the simulated data frame containing the simulated working condition of the remote controller and a corresponding control instruction to the master station.
9. A transmission apparatus for analog data frames, comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is configured to acquire analog data frames of a plurality of substations, the analog data frames comprise data for testing functions of the substations, and the substations comprise one or more devices to be tested;
and the transmitting module is configured to transmit the analog data frame and the corresponding control instruction to the substation through a master station, wherein the master station is electrically connected with the substation.
10. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to carry out the method of any one of claims 1 to 8 when executed.
11. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 8.
CN202111652334.3A 2021-12-30 2021-12-30 Method and device for sending analog data frame, storage medium and electronic device Active CN114371674B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111652334.3A CN114371674B (en) 2021-12-30 2021-12-30 Method and device for sending analog data frame, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111652334.3A CN114371674B (en) 2021-12-30 2021-12-30 Method and device for sending analog data frame, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN114371674A true CN114371674A (en) 2022-04-19
CN114371674B CN114371674B (en) 2024-04-05

Family

ID=81141158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111652334.3A Active CN114371674B (en) 2021-12-30 2021-12-30 Method and device for sending analog data frame, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN114371674B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442265A (en) * 2022-08-31 2022-12-06 云知声智能科技股份有限公司 Automatic pressure measurement method and device, storage medium and electronic device

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941545B1 (en) * 1999-01-28 2005-09-06 Ati International Srl Profiling of computer programs executing in virtual memory systems
CN1777142A (en) * 2005-11-21 2006-05-24 西安电子科技大学 Method for realizing data communication utilizing virtual network adapting card in network environment simulating
US20060125854A1 (en) * 2004-05-27 2006-06-15 Silverbrook Research Pty Ltd Printhead module having two shift registers
EP2026201A1 (en) * 2007-08-10 2009-02-18 Cortus S.A. Processor branch instruction encoding
CN201747375U (en) * 2010-06-25 2011-02-16 三一重型装备有限公司 Wireless remote control communication state detection system for coal mining machine
CN102759909A (en) * 2012-06-14 2012-10-31 中国矿业大学 Work state virtual simulation system for electric haulage shearer based on different geological conditions
US20130019216A1 (en) * 2011-07-11 2013-01-17 The Board Of Trustees Of The University Of Illinos Integration of data mining and static analysis for hardware design verification
CN102929270A (en) * 2012-10-31 2013-02-13 三一重机有限公司 System and method for testing excavator control software
CN203444041U (en) * 2013-09-04 2014-02-19 中国神华能源股份有限公司 Shearer electrical test bench
CN103792926A (en) * 2014-02-18 2014-05-14 南京工业大学 Multi-bus control system of common direct current bus electric closed test bed of gear case of coal cutter
CN104702380A (en) * 2015-02-09 2015-06-10 华为技术有限公司 Method and device for processing data frames
US20180167079A1 (en) * 2016-12-08 2018-06-14 Stichting Imec Nederland A method of offset calibration in a successive approximation register analog-to-digital converter and a successive approximation register analog-to-digital converter
US20180285644A1 (en) * 2017-03-29 2018-10-04 Electronics And Telecommunications Research Institute Sensor information processing method and system between virtual world and real world
CN110809048A (en) * 2019-11-08 2020-02-18 腾讯科技(深圳)有限公司 Data transfer method, device and computer readable storage medium
WO2020058494A1 (en) * 2018-09-20 2020-03-26 Canon Kabushiki Kaisha Method, device, and computer program for improving transmission of encoded media data
CN110984983A (en) * 2019-12-04 2020-04-10 神华神东煤炭集团有限责任公司 Automatic control maintenance method for coal mining machine, electronic equipment and coal mining machine with ultra-large mining height
CN111427278A (en) * 2020-04-29 2020-07-17 中国矿业大学 Semi-physical simulation test system for coal mining machine controller and use method
CN112255993A (en) * 2020-09-30 2021-01-22 潍柴动力股份有限公司 Excavator power assembly simulation control method, device, equipment and storage medium
CN112666845A (en) * 2020-12-25 2021-04-16 北京天地玛珂电液控制系统有限公司 Simulation test system and simulation test method for fully mechanized coal mining face
CN113485289A (en) * 2021-06-28 2021-10-08 华阳新材料科技集团有限公司煤机装备研究院 Simulation test device and test method for electrical control panel of coal mining machine
CN113852533A (en) * 2021-09-27 2021-12-28 北京微纳星空科技有限公司 Multi-channel data communication system and method and electronic equipment

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6941545B1 (en) * 1999-01-28 2005-09-06 Ati International Srl Profiling of computer programs executing in virtual memory systems
US20060125854A1 (en) * 2004-05-27 2006-06-15 Silverbrook Research Pty Ltd Printhead module having two shift registers
CN1777142A (en) * 2005-11-21 2006-05-24 西安电子科技大学 Method for realizing data communication utilizing virtual network adapting card in network environment simulating
EP2026201A1 (en) * 2007-08-10 2009-02-18 Cortus S.A. Processor branch instruction encoding
CN201747375U (en) * 2010-06-25 2011-02-16 三一重型装备有限公司 Wireless remote control communication state detection system for coal mining machine
US20130019216A1 (en) * 2011-07-11 2013-01-17 The Board Of Trustees Of The University Of Illinos Integration of data mining and static analysis for hardware design verification
CN102759909A (en) * 2012-06-14 2012-10-31 中国矿业大学 Work state virtual simulation system for electric haulage shearer based on different geological conditions
CN102929270A (en) * 2012-10-31 2013-02-13 三一重机有限公司 System and method for testing excavator control software
CN203444041U (en) * 2013-09-04 2014-02-19 中国神华能源股份有限公司 Shearer electrical test bench
CN103792926A (en) * 2014-02-18 2014-05-14 南京工业大学 Multi-bus control system of common direct current bus electric closed test bed of gear case of coal cutter
CN104702380A (en) * 2015-02-09 2015-06-10 华为技术有限公司 Method and device for processing data frames
US20180167079A1 (en) * 2016-12-08 2018-06-14 Stichting Imec Nederland A method of offset calibration in a successive approximation register analog-to-digital converter and a successive approximation register analog-to-digital converter
US20180285644A1 (en) * 2017-03-29 2018-10-04 Electronics And Telecommunications Research Institute Sensor information processing method and system between virtual world and real world
WO2020058494A1 (en) * 2018-09-20 2020-03-26 Canon Kabushiki Kaisha Method, device, and computer program for improving transmission of encoded media data
CN110809048A (en) * 2019-11-08 2020-02-18 腾讯科技(深圳)有限公司 Data transfer method, device and computer readable storage medium
CN110984983A (en) * 2019-12-04 2020-04-10 神华神东煤炭集团有限责任公司 Automatic control maintenance method for coal mining machine, electronic equipment and coal mining machine with ultra-large mining height
CN111427278A (en) * 2020-04-29 2020-07-17 中国矿业大学 Semi-physical simulation test system for coal mining machine controller and use method
CN112255993A (en) * 2020-09-30 2021-01-22 潍柴动力股份有限公司 Excavator power assembly simulation control method, device, equipment and storage medium
CN112666845A (en) * 2020-12-25 2021-04-16 北京天地玛珂电液控制系统有限公司 Simulation test system and simulation test method for fully mechanized coal mining face
CN113485289A (en) * 2021-06-28 2021-10-08 华阳新材料科技集团有限公司煤机装备研究院 Simulation test device and test method for electrical control panel of coal mining machine
CN113852533A (en) * 2021-09-27 2021-12-28 北京微纳星空科技有限公司 Multi-channel data communication system and method and electronic equipment

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
"单片机的代码优化方法", 电子技术, no. 02 *
FAIHUNG: "数据通信--大小端转换", Retrieved from the Internet <URL:https://blog.csdn.net/faihung/article/details/109558636?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169812800716800185859861%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=169812800716800185859861&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-109558636-null-null.142^v96^control&utm_term=%E7%A7%BB%E4%BD%8D%E8%BD%AC%E6%8D%A2%E6%95%B0%E6%8D%AE%E7%9A%84%E5%A4%A7%E5%B0%8F%E7%AB%AF&spm=1018.2226.3001.4187> *
FLYBIRDING10011: "机器级大小端及移位规则", Retrieved from the Internet <URL:https://blog.csdn.net/cpongo1/article/details/89540281?ops_request_misc=&request_id=&biz_id=102&utm_term=%E7%A7%BB%E4%BD%8D%E8%BD%AC%E6%8D%A2%20%E5%A4%A7%E5%B0%8F%E7%AB%AF%20%20%E9%A2%84%E8%AE%BE%E8%BF%9B%E5%88%B6%20&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-89540281.142^v96^control&spm=1018.2226.3001.4187> *
党景锋 等: "采煤机模拟运行操作系统的设计", 煤矿机电 *
刘鹏飞;贺继林;: "基于SOPC的CAN总线技术在挖掘机控制中的应用", 制造业自动化, no. 05 *
常馨;: "EtherCAT协议与CANopen协议的网关模块设计与实现", 电子科学技术, no. 02, pages 69 - 75 *
张旭辉 等: "煤矿掘进机器人虚拟仿真与远程控制系统", 工矿自动化 *
郁程燝: "工业机器人通用控制器系统软件开发研究", 中国优秀硕士学位论文全文数据库 信息科技辑, vol. 1 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442265A (en) * 2022-08-31 2022-12-06 云知声智能科技股份有限公司 Automatic pressure measurement method and device, storage medium and electronic device

Also Published As

Publication number Publication date
CN114371674B (en) 2024-04-05

Similar Documents

Publication Publication Date Title
CN103101054B (en) Mobile phone is to the programming of robot and Controlling System
CN102947813B (en) For the method by CANopen bus transfer data
CN113595961A (en) Protocol conversion method and system, and gateway device
CN114371674B (en) Method and device for sending analog data frame, storage medium and electronic device
CN112770285B (en) Digital twin factory modeling method and device based on 5G network
CN103123470A (en) Method for controlling a field device
CN207301705U (en) A kind of industrial data detection and control terminal based on Internet of Things
CN110913362B (en) Method and device for realizing wireless signal test through client and test equipment
CN109167768B (en) Remote access and tamper-proof system for industrial field data in industrial Internet of things
US10064083B2 (en) Universal communication system for measurement apparatuses, method of communication relating thereto
CN103314554B (en) DynamicHost configuration file for option mod
CN112770286B (en) Sensor data processing method and device and computer equipment
US20160135249A1 (en) Recorder
CN213277033U (en) Multiprocessor industrial Internet of things gateway for educational training
CN108696375B (en) Industrial network information acquisition device, method, monitoring system and storage medium
CN102970201A (en) Mobility integrated method for industrial field device
CN106164876A (en) Client terminal device, data communication system, data communications method and program
CN105210349A (en) Wireless communication quality information processing apparatus and communication system
KR102181367B1 (en) Method, switching unit, device and system for data transfer from device to data management means
CN106992961A (en) The transmission of the specification information of commercial plant
CN111221622A (en) Communication method and device between communication modules, computer equipment and readable storage medium
CN116733688A (en) Operation monitoring method, device, equipment and medium of wind generating set
CN206023334U (en) A kind of battery charger, the mobile terminal of accumulator Charge Management, the accumulator charging management system based on cloud platform
CN207896979U (en) The pilot controller of ethernet communication system
CN209784814U (en) Programmable Logic Controller (PLC) system

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
GR01 Patent grant
GR01 Patent grant