CN107703786A - Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device - Google Patents

Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device Download PDF

Info

Publication number
CN107703786A
CN107703786A CN201710652195.1A CN201710652195A CN107703786A CN 107703786 A CN107703786 A CN 107703786A CN 201710652195 A CN201710652195 A CN 201710652195A CN 107703786 A CN107703786 A CN 107703786A
Authority
CN
China
Prior art keywords
data
real
data set
set bag
control device
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
CN201710652195.1A
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.)
Shenzhen Hobbywing Technology Co Ltd
Original Assignee
Shenzhen Hobbywing 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 Shenzhen Hobbywing Technology Co Ltd filed Critical Shenzhen Hobbywing Technology Co Ltd
Priority to CN201710652195.1A priority Critical patent/CN107703786A/en
Publication of CN107703786A publication Critical patent/CN107703786A/en
Pending legal-status Critical Current

Links

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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0428Safety, monitoring
    • 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/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24024Safety, surveillance

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The present invention relates to data communication technology field, especially a kind of Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device.Wherein, monitoring method includes:Adjust the serial data of output to be acquired successively Multi-path electricity, decode, sentence it is wrong, only form real-time serial data set bag after wrong, form conversion and packing processing;Adjust the rotational speed pulse signal data of output to be sampled successively Multi-path electricity, filter, forming real-time rotary speed data set bag after form conversion and packing processing;Real-time serial data set bag and real-time rotary speed data set bag are back to main control device according to predetermined transmission frequency respectively.The present invention can effectively solve communications protocol, data format and the unmatched problem of communication speed between Multi-path electricity tune and main control device, reduce the processing load of main control device, to improve the transmission rate of the performance of main control device and data and adjusting storage, record and the analysis of real time data to provide condition electricity.

Description

Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device
Technical field
The present invention relates to data communication technology field, especially a kind of Multi-path electricity is adjusted to be docked with the data between main control device Change monitoring method and be used to adjust Multi-path electricity and the information exchange progress between main control device based on what the method was formed Data docking conversion supervision equipment.
Background technology
It is well known that electron speed regulator is (referred to as:Electricity adjust) be mainly used on the toy models such as car mould, ship model or On unmanned plane, it is by controlled motor action come the various run action of implementation model or unmanned plane.With the continuous hair of technology Open up, Multi-path electricity adjusts (also known as multiaxis electricity is adjusted) to obtain more and more extensive application in the equipment such as unmanned plane, with realization pair The synchronous drive control of multiple motors.
At present, Multi-path electricity is adjusted and following defect is primarily present in actual application:
1st, with the raising of Technical specifications, it is desirable to which electricity, which is adjusted, need have data back function, and data back function It is generally necessary to the communication protocol that electricity is adjusted is revised as response formula communication protocol;However, existing electricity is adjusted not possess but and settled at one go Ground makes the condition of response communications protocol mode into, if forcing to carry out, can cause electricity mediation main control device (control like flying etc.) coupling It is too close, destroy the Matching Relation controlled on the market now between terminal and electricity tune.
2nd, existing electricity, which is adjusted, typically uses slow data transmission mode, when main control device (control like flying etc.) is transferred in Multi-path electricity During row data communication, then the resource of main control device will be largely taken using slow data transmission mode, reduce main control device Control performance;If improving message transmission rate, although main control device can be supported, electricity adjusts the condition for not possessing support again, So as to the unmatched problem of communication speed easily occur.
3rd, the real-time rotating speed that electricity is adjusted is the critical data of multijoint control, is mainly provided to main control device to use, this A little data can significantly improve the control performance of main control device;However, existing electricity is adjusted typically for rapidly transmission electrical machine Rotary speed data, the forms of generally use PWM ripples send the real-time rotating speed that electricity is adjusted, and main control device in order to monitoring in real time The rotating speed of motor, not only need to set up numerous and diverse connecting line, it is also necessary to consume more hardware and software resources and carry out rotating speed number According to collection and processing, so as to have a strong impact on the control performance of main control device.
4th, the real time data that electricity is adjusted is most important for the control performance of main control device and its accident analysis to motor; At present, the mode of generally use wireless data transmission is to realize monitor log of the main control device to data, but is supervised in wireless data The interference of external environment condition is highly susceptible to depending on during and causes loss of data.
5th, it is that the data being stored in the SD card of main control device can be read out, it usually needs first take out SD card, so Special card reader is recycled afterwards to read the data stored in SD card, so as to cause many inconvenience to user.
6th, the Multi-path electricity in order to be controlled main control device transfers in row updating firmware program, it usually needs by electricity adjust by After one removes, then upgraded after electricity is adjusted into connection computer respectively, such a mode time and effort consuming.
7th, when being operated pattern switching to main control device, it usually needs switched over using button or switch; Thus, the cpu resource of main control device also will necessarily be extraly consumed, and increases master control because needing configuration related device and sets Standby or even whole system cost.
The content of the invention
For above-mentioned the shortcomings of the prior art, one of purpose of the invention be to provide a kind of Multi-path electricity adjust with Data docking conversion monitoring method between main control device;It is another object of the present invention to provide one kind to be based on the above method What is formed docks conversion supervision equipment for being adjusted to Multi-path electricity with the information exchange progress data between main control device.
To achieve these goals, first technical scheme that the present invention uses:
A kind of Multi-path electricity, which is adjusted, docks conversion monitoring method with the data between main control device, and it includes:
Step a, adjust the serial data of output to be acquired successively Multi-path electricity, decode, sentence it is wrong, only wrong, form conversion and Real-time serial data set bag is formed after packing processing;
Step b, adjust the rotational speed pulse signal data of output to be sampled successively Multi-path electricity, filter, form is changed and beaten Real-time rotary speed data set bag is formed after bag processing;
Step c, by real-time serial data set bag and real-time rotary speed data set bag respectively according to predetermined transmission frequency It is back to main control device.
Preferably, will according to predetermined transmission frequency using UART universal serial bus and/or CAN in the step c Real-time serial data set bag and real-time rotary speed data set bag are back to main control device, and in the serial data set in real time Verification scheme is configured during bag and the passback of real-time rotary speed data set bag.
Preferably, in the step a, simulate single line semi-duplex serial port using 8 tunnels and the serial data exported is adjusted to Multi-path electricity It is acquired, using the timer in microcontroller 8 tunnels is simulated with single line semi-duplex serial port Zhong Ge roads serial ports and carries out interruption control System, and the interruption control hierarchy of 8 tunnel simulation single line semi-duplex serial port Zhong Ge roads serial ports is same priority;
In the step b, the rotational speed pulse signal number of output is adjusted using the timer detection Multi-path electricity in microcontroller According to pulse period, by pulse period data carry out mean filter processing after again by cycle data enter row format change and pack with Form real-time rotary speed data set bag.
Preferably, during the step c is carried out, while carry out to real-time serial data set bag and real-time rotating speed Data acquisition system bag carries out the step d of real-time storage;
The step d includes:
S1, using microcontroller provide at least one number for real-time serial data set bag and real-time rotary speed data set bag According to supervisory memory and relative with the real-time serial data set bag on Multi-path electricity Tiao Mei roads and real-time rotary speed data set bag The ephemeral data buffer area answered;
S2, the memory space of the ephemeral data buffer area are by real-time serial data set bag and real-time rotary speed data set Wrap and real-time serial data set bag and real-time rotary speed data set bag are transferred to by data monitoring memory with dma mode after writing completely It is interior.
Preferably, in the step d, the microcontroller is supervised on data monitoring memory is each after electricity in data The first current file folder is found depending on memory built, is created again in first current file folder for storing by nonce The real-time serial data set bag and the first data folder of real-time rotary speed data set bag come according to unloading in buffer area;
After the memory data output of first data folder reaches predefined size, the microcontroller is in data monitoring Vertical second current file folder of memory built, is created for storing by ephemeral data again in second current file folder Unloading in buffer area and come real-time serial data set bag and real-time rotary speed data set bag the second data folder;
Until the memory space of data monitoring memory write it is full after, make to be established one the latest using the microcontroller N current files press from both sides and created in N current files press from both sides Nth data file covering write-in data it is earliest first ought be above The first data folder that part is pressed from both sides and created in the first current file presss from both sides.
Second technical scheme that the present invention uses:
A kind of Multi-path electricity, which is adjusted, docks conversion supervision equipment with the data between main control device, and it includes microcontroller, is used for Microcontroller and Multi-path electricity are adjusted to the data collection terminal mouth that is attached and for microcontroller and main control device to be connected The data back port connect;
What the data collection terminal mouth will collect adjusts the serial data of output to export to microcontroller progress by Multi-path electricity Decode, sentence it is wrong, only form real-time serial data set bag after wrong, form conversion and packing processing, the microcontroller passes through number Real-time serial data set bag is back to main control device according to predetermined transmission frequency according to passback port;
The data collection terminal mouth will collect and adjust the rotational speed pulse signal data output exported to micro-control by Multi-path electricity Device processed is filtered, form conversion and packing processing after form real-time rotary speed data set bag, the microcontroller passes through data Real-time rotary speed data set bag is back to main control device by passback port according to predetermined transmission frequency.
Preferably, the data back port includes being used for real-time serial data set bag with the biography of 100ms/ times all the way Defeated frequency be back to main control device low speed UART serial bus ports, all the way be used for by real-time serial data set bag with The transmission frequency of 50ms/ times is back to the High Speed UART serial bus port of main control device and is used for real-time rotary speed data all the way Set bag is back to the high-speed CAN bus port of main control device with the transmission frequency of 2ms/ times.
Preferably, the data collection terminal mouth includes being used to adjust the serial data of output to be acquired transmission Multi-path electricity Single line semi-duplex serial port is simulated on 8 tunnels, and the microcontroller simulates single line semi-duplex serial port Zhong Ge roads by its timer to 8 tunnels Serial ports carries out the interruption control of same priority;
Meanwhile the microcontroller detects the rotational speed pulse signal exported via data sampling port by its timer The pulse period of data, the microcontroller are carried out after mean filter processing to the pulse period data of collection again by cycle data Enter row format to change and form real-time rotary speed data set bag after packing.
Preferably, it is also connected with microcontroller including one and is controlled by the data monitoring memory of microcontroller, described The real-time serial data set bag and real-time rotating speed number that every circuit-switched data buffer area of microcontroller is stored with dma mode respectively It is transferred to according to set bag in data monitoring memory.
Preferably, it is also included for transferring in row firmware upgrade to Multi-path electricity or to data monitoring by connecting host computer USB firmware upgrades/USB flash disk mode interface module that the data of memory memory storage are checked, the USB firmware upgrades/USB flash disk mould Formula interface module is connected with microcontroller and is controlled by microcontroller.
As a result of such scheme, method of the invention can effectively solve the communication between Multi-path electricity tune and main control device Agreement, data format and the unmatched problem of communication speed, reduce the processing load of main control device, to improve main control device Performance and the transmission rate of data and storage, record and the analysis to electricity tune real time data provide condition;And it is based on method The equipment that is formed of design can then realize the data adjusted to Multi-path electricity be acquired, decode, sentence it is wrong, only wrong, conversion, beat Bag, passback and storage etc.;The updating firmware program that holding equipment itself and its electricity connected are adjusted, is advantageous to what electricity was adjusted Performance and the performance of main control device carry out the monitor log of real time data, and provide condition to complete accident analysis, have Very strong practical value and market popularization value.
Brief description of the drawings
Fig. 1 is the control principle block diagram of the supervision equipment of the embodiment of the present invention.
Embodiment
Embodiments of the invention are described in detail below in conjunction with accompanying drawing, but the present invention can be defined by the claims Implement with the multitude of different ways of covering.
A kind of Multi-path electricity that the present embodiment provides, which is adjusted, docks conversion monitoring method with the data between main control device, and it is wrapped Include:
Step a, adjust the serial data of output to be acquired successively Multi-path electricity, decode, sentence it is wrong, only wrong, form conversion and Real-time serial data set bag is formed after packing processing;
Step b, adjust the rotational speed pulse signal data of output to be sampled successively Multi-path electricity, filter, form is changed and beaten Real-time rotary speed data set bag is formed after bag processing;
Step c, by real-time serial data set bag and real-time rotary speed data set bag respectively according to predetermined transmission frequency It is back to main control device.
On the premise of the data communication protocol and form for ensureing electricity tune are constant, the serial ports to adjusting output by electricity is done directly The collection of data and rotary speed data, then by entering row decoding to serial data, sentencing wrong, the only processing such as mistake and to rotary speed data After being filtered processing, the form conversion and packing that carry out serial data and rotary speed data respectively are handled with compatible main control device Data communication protocol and data format;With this, handled by the intermediate format conversion to data and packing, can not only solve electricity The problem of adjusting the data communication protocol and data format mismatching between main control device, and by data in the form of gathering bag The high speed passback of data can be realized by being transmitted, and improved the transmission rate of data, reduced the resources occupation rate of main control device While, the processing load of main control device is reduced, ensures the performance of main control device and can more efficiently run.
To ensure the correctness of data back, in step c, using UART universal serial bus and/or CAN according to predetermined Transmission frequency real-time serial data set bag and real-time rotary speed data set bag are back to main control device, and gone here and there in real time Mouth data acquisition system bag and real-time rotary speed data set bag configure verification scheme during returning.It is specific in the method for the present embodiment In implementation process, UART universal serial bus and CAN can be by being used for real-time serial data set bag with 100ms/ times all the way Transmission frequency be back to main control device low speed UART serial bus ports, all the way be used for by real-time serial data set bag with The transmission frequency of 50ms/ times is back to the High Speed UART serial bus port of main control device and is used for real-time rotary speed data all the way The high-speed CAN bus port combination that set bag is back to main control device with the transmission frequency of 2ms/ times forms;Wherein, low speed UART Serial bus port can be used for main control device (such as computer, mobile phone) of the connection with WIFI function, so as to using computer or APP programs on the main control devices such as mobile phone realize the collection and monitoring to data;And utilize High Speed UART serial bus port It can then ensure that main control device can obtain electricity and adjust more detailed state parameter with high-speed CAN bus port, so as to more accurately The working condition that each electricity is adjusted is grasped, and then condition is provided for the working condition that accurate control electricity is adjusted.
Connecting lead wire between control device is adjusted can effectively to reduce each road electricity, reduces matching somebody with somebody for hardware or software resource This is set to, in step a, adjusts the serial data of output to be acquired Multi-path electricity using 8 tunnels simulation single line semi-duplex serial port, Using the timer in microcontroller 8 tunnels are simulated with single line semi-duplex serial port Zhong Ge roads serial ports and carries out interruption control, and 8 road moulds The interruption control hierarchy of quasi-simple line semi-duplex serial port Zhong Ge roads serial ports is same priority;Also, in stepb, utilization is micro- Timer in controller detects the pulse period that Multi-path electricity adjusts the rotational speed pulse signal data of output, by pulse period data Carry out cycle data is entered into row format again after mean filter processing and change and pack to form real-time rotary speed data set bag.Its In, adjust the serial data of output to be acquired the usage amount that can effectively reduce connecting lead wire, profit to electricity using single line simulative serial port The reception and transmission of data can be realized with time-sharing multiplexing technology.
Easily cause because carrying out data monitoring using wireless mode between main control device to avoid the occurrence of traditional electricity and adjusting The problem of loss of data, while be easy to monitor each data that electricity is adjusted in real time, can be same during step c is carried out Shi Jinhang carries out the step d of real-time storage to real-time serial data set bag and real-time rotary speed data set bag;Step d includes:
S1, using microcontroller provide at least one number for real-time serial data set bag and real-time rotary speed data set bag According to supervisory memory and relative with the real-time serial data set bag on Multi-path electricity Tiao Mei roads and real-time rotary speed data set bag The ephemeral data buffer area answered;
S2, when the memory space of ephemeral data buffer area is by real-time serial data set bag and real-time rotary speed data set bag Real-time serial data set bag and real-time rotary speed data set bag are transferred to by data monitoring memory with dma mode after writing completely It is interior.
Thus, by the way that electricity to be adjusted to every data storage of output, in data monitoring memory, (it can be adopted according to actual conditions With storage devices such as SD cards) in, the data of storage can be checked offline by computer and mobile phone, to monitor main control device Or electricity adjusts real time status information in the process of running, so as to solve the problems, such as that packet is easily lost.
As a preferred scheme, to effectively improve the convenience to data storage, think the operation filling adjusted to electricity and Accident analysis provides data and supports that in step d, microcontroller is on data monitoring memory is each in data monitoring after electricity Vertical first current file folder of memory built, creates and is cached for storing by ephemeral data again in the first current file folder Unloading in area and come real-time serial data set bag and real-time rotary speed data set bag the first data folder;
After the memory data output of the first data folder reaches predefined size, microcontroller is in data monitoring memory The second current file folder is established, is created again in the second current file folder for storing by unloading in ephemeral data buffer area And the real-time serial data set bag and the second data folder of real-time rotary speed data set bag come;
Until the memory space of data monitoring memory write it is full after, make to be established a N the latest using microcontroller and work as Preceding document presss from both sides and created in N current files press from both sides the first earliest current file of Nth data file covering write-in data Folder and the first data folder created in the first current file presss from both sides.
The plan plot of monitoring method based on the present embodiment, as shown in figure 1, the present embodiment additionally provides a kind of Multi-path electricity Tune dock conversion supervision equipment with the data between main control device, it including microcontroller a, for by microcontroller a and multichannel The data collection terminal mouth c and the data back for microcontroller a and main control device d to be attached that electricity tune b is attached Port e;Wherein, data collection terminal mouth c adjusts the serial data of b outputs to export to microcontroller a by what is collected by Multi-path electricity Row decoding, sentence it is wrong, only form real-time serial data set bag after wrong, form conversion and packing processing, microcontroller a passes through number again Real-time serial data set bag is back to main control device d according to predetermined transmission frequency according to passback port e;Meanwhile data are adopted What collection port c will be collected adjust the rotational speed pulse signal data output of b outputs to be filtered to microcontroller a by Multi-path electricity, lattice Real-time rotary speed data set bag is formed after formula conversion and packing processing, microcontroller a will be turned in real time by data back port e again Fast data acquisition system bag is back to main control device a according to predetermined transmission frequency.
Preferably, the data back port e of the present embodiment includes all the way being used for real-time serial data set bag Main control device d low speed UART serial bus ports are back to the transmission frequency of 100ms/ times, are used for real-time serial ports all the way Data acquisition system bag is back to main control device d High Speed UART serial bus port with the transmission frequency of 50ms/ times and is used for all the way Real-time rotary speed data set bag is back to main control device d high-speed CAN bus port with the transmission frequency of 2ms/ times.So as to, It can realize that the classification to data acquisition system bag is transmitted using different bus ports, before ensureing that data have higher transmission rates Put, reduce main control device d processing load.
Preferably, the data collection terminal mouth c of the present embodiment includes being used for the serial data that b outputs are adjusted to Multi-path electricity The 8 tunnels simulation single line semi-duplex serial port of transmission is acquired, microcontroller a simulates single line half-duplex by its timer to 8 tunnels Serial ports Zhong Ge roads serial ports carries out the interruption control of same priority;Meanwhile microcontroller a by its timer come detect via The rotating speed of data sampling port c (it is different from 8 tunnels simulation single line semi-duplex serial port, is that 8 road rotary speed datas gather port) output The pulse period of pulse data signal, microcontroller a are carried out after mean filter processing to the pulse period data of collection again by week Issue evidence enters row format and changes and real-time rotary speed data set bag is formed after packing.
Checked for ease of carrying out monitoring to electric adjusting data, the equipment of the present embodiment is also connected simultaneously including one with microcontroller a It is controlled by microcontroller a data monitoring memory f (such as SD card data storage devices, below with data monitoring memory f Illustrated in the case of for SD card), microcontroller a every circuit-switched data buffer area is stored real-time with dma mode respectively Serial data set bag and real-time rotary speed data set bag are transferred in data monitoring memory f.Thus, lead to according to the above method The feature capability design to equipment is crossed to implement function such as under the normal mode of operation of equipment:1st, be not inserted into SD card (or Microcontroller a is not detected by SD card), now equipment only carries out the collection of serial data and tach signal until passback, electricity are adjusted real When data store function it is disabled;If the 2, SD card insertion (microcontroller a detects SD card), now equipment is carrying out serial ports number The storage that electricity is carried out while returning and adjusts real time data according to being gathered with tach signal.
Further to enrich the utility function of whole equipment, the equipment of the present embodiment also includes for upper by connecting Machine adjusts the USB firmware liters that b carries out firmware upgrade or the data to data supervisory memory f memory storages are checked to Multi-path electricity Level/USB flash disk mode interface module g, USB firmware upgrade/USB flash disk mode interface module g are connected with microcontroller a and are controlled by microcontroller Device a.Thus, using whole equipment hardware carrier and by that to its functional design, equipment can be made to possess upgrade job pattern With USB flash disk mode of operation, it is specially:
1st, under upgrade job pattern, the equipment of the present embodiment can carry out data communication with host computer, in this case Equipment itself firmware can be completed and b firmware USB upgrade jobs are adjusted to electricity, now data back function is disabled;When this reality When applying the device power of example, microcontroller a can detect USB firmware upgrades/USB flash disk mode interface module g connection status, if equipment When it is connected with host computer, the equipment of the present embodiment immediately enters HID communication modes, and the upgrading software in host computer is in open shape Connection signal bag can be sent into microcontroller a or in electricity tune b by USB firmware upgrades/USB flash disk mode interface module g under state, Equipment will always be in HID patterns after connection signal bag was received in 5 seconds, be then to device upgrade to select by host computer Or b is adjusted to upgrade electricity.
2nd, under USB flash disk mode of operation, it is only necessary to this equipment is connected into can with host computer and quickly and easily obtained Data storage in SD card, concrete mode are:When the device power of the present embodiment, microcontroller a can detect USB firmware liters Level/USB flash disk mode interface module g connection status, if equipment its when being connected with host computer, equipment can immediately enter USB HID Communication mode,, now can be automatically into USB USB flash disk pattern equipment does not receive upgrading master computer connection signal in 5 seconds after The data storage being directly viewable on host computer in SD card, without taking out SD card and using card reader special.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the scope of the invention, every utilization The equivalent structure or equivalent flow conversion that description of the invention and accompanying drawing content are made, or directly or indirectly it is used in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of Multi-path electricity, which is adjusted, docks conversion monitoring method with the data between main control device, it is characterised in that:It includes:
Step a, adjust the serial data of output to be acquired successively Multi-path electricity, decode, sentencing wrong, only wrong, form conversion and packing Real-time serial data set bag is formed after processing;
Step b, adjust the rotational speed pulse signal data of output to be sampled successively Multi-path electricity, filter, at form conversion and packing Real-time rotary speed data set bag is formed after reason;
Step c, real-time serial data set bag and real-time rotary speed data set bag are returned according to predetermined transmission frequency respectively To main control device.
2. a kind of Multi-path electricity as claimed in claim 1, which is adjusted, docks conversion monitoring method with the data between main control device, it is special Sign is:In the step c, using UART universal serial bus and/or CAN according to predetermined transmission frequency by real-time serial ports Data acquisition system bag and real-time rotary speed data set bag are back to main control device, and in the serial data set bag in real time and in real time Rotary speed data set bag configures verification scheme during returning.
3. a kind of Multi-path electricity as claimed in claim 1 or 2, which is adjusted, docks conversion monitoring method with the data between main control device, its It is characterised by:In the step a, simulate single line semi-duplex serial port using 8 tunnels and adjust the serial data of output to adopt Multi-path electricity Collection, using the timer in microcontroller 8 tunnels are simulated with single line semi-duplex serial port Zhong Ge roads serial ports and carries out interruption control, and institute The interruption control hierarchy for stating 8 tunnels simulation single line semi-duplex serial port Zhong Ge roads serial ports is same priority;
In the step b, the rotational speed pulse signal data of output are adjusted using the timer detection Multi-path electricity in microcontroller Pulse period, by pulse period data carry out mean filter processing after again by cycle data enter row format change and pack with formation Real-time rotary speed data set bag.
4. a kind of Multi-path electricity as claimed in claim 3, which is adjusted, docks conversion monitoring method with the data between main control device, it is special Sign is:During the step c is carried out, while carry out to real-time serial data set bag and real-time rotary speed data set Bag carries out the step d of real-time storage;
The step d includes:
S1, provide at least one data for real-time serial data set bag and real-time rotary speed data set bag using microcontroller and supervise It is depending on memory and corresponding with the real-time serial data set bag on Multi-path electricity Tiao Mei roads and real-time rotary speed data set bag Ephemeral data buffer area;
S2, the memory space of the ephemeral data buffer area are write by real-time serial data set bag and real-time rotary speed data set bag Real-time serial data set bag and real-time rotary speed data set bag are transferred in data monitoring memory with dma mode after full.
5. a kind of Multi-path electricity as claimed in claim 4, which is adjusted, docks conversion monitoring method with the data between main control device, it is special Sign is:In the step d, the microcontroller is on data monitoring memory is each in data monitoring memory after electricity The first current file folder is inside established, is created again in first current file folder for storing by ephemeral data buffer area Interior unloading and come real-time serial data set bag and real-time rotary speed data set bag the first data folder;
After the memory data output of first data folder reaches predefined size, the microcontroller stores in data monitoring The second current file folder is established in device, creates in second current file folder and is cached for storing by ephemeral data again Unloading in area and come real-time serial data set bag and real-time rotary speed data set bag the second data folder;
Until the memory space of data monitoring memory write it is full after, make to be established a N the latest using the microcontroller and work as Preceding document presss from both sides and created in N current files press from both sides the first earliest current file of Nth data file covering write-in data Folder and the first data folder created in the first current file presss from both sides.
6. a kind of Multi-path electricity, which is adjusted, docks conversion supervision equipment with the data between main control device, it is characterised in that:It includes micro-control Device processed, for microcontroller to be adjusted to the data collection terminal mouth that is attached with Multi-path electricity and for microcontroller and master control to be set The standby data back port being attached;
The data collection terminal mouth will collect by Multi-path electricity adjust output serial data export to microcontroller enter row decoding, Sentence it is wrong, only form real-time serial data set bag after wrong, form conversion and packing processing, the microcontroller passes through data back Real-time serial data set bag is back to main control device by port according to predetermined transmission frequency;
The data collection terminal mouth will collect and adjust the rotational speed pulse signal data output exported to microcontroller by Multi-path electricity It is filtered, forms real-time rotary speed data set bag after form conversion and packing processing, the microcontroller passes through data back Real-time rotary speed data set bag is back to main control device by port according to predetermined transmission frequency.
7. a kind of Multi-path electricity as claimed in claim 6, which is adjusted, docks conversion supervision equipment with the data between main control device, it is special Sign is:The data back port includes being used to return real-time serial data set bag with the transmission frequency of 100ms/ times all the way Reach the low speed UART serial bus ports of main control device, be used for all the way by real-time serial data set bag with the biography of 50ms/ times Defeated frequency be back to main control device High Speed UART serial bus port and all the way be used for by real-time rotary speed data set bag with The transmission frequency of 2ms/ times is back to the high-speed CAN bus port of main control device.
8. a kind of Multi-path electricity as claimed in claims 6 or 7, which is adjusted, docks conversion supervision equipment with the data between main control device, its It is characterised by:The data collection terminal mouth includes being used to adjust the serial data of output to be acquired 8 road moulds of transmission Multi-path electricity Quasi-simple line semi-duplex serial port, the microcontroller simulate single line semi-duplex serial port Zhong Ge roads serial ports to 8 tunnels by its timer Carry out the interruption control of same priority;
Meanwhile the microcontroller detects the rotational speed pulse signal data exported via data sampling port by its timer Pulse period, the microcontroller again carries out cycle data after carrying out mean filter processing to the pulse period data of collection Form is changed and real-time rotary speed data set bag is formed after packing.
9. a kind of Multi-path electricity as claimed in claim 8, which is adjusted, docks conversion supervision equipment with the data between main control device, it is special Sign is:It is also connected with microcontroller including one and is controlled by the data monitoring memory of microcontroller, the microcontroller The real-time serial data set bag that is stored respectively with dma mode of every circuit-switched data buffer area and real-time rotary speed data set bag It is transferred in data monitoring memory.
10. a kind of Multi-path electricity as claimed in claim 9, which is adjusted, docks conversion supervision equipment with the data between main control device, it is special Sign is:It is also included for transferring in row firmware upgrade to Multi-path electricity or in data supervisory memory by connecting host computer USB firmware upgrades/USB flash disk mode interface module that the data of storage are checked, the USB firmware upgrades/USB flash disk mode interface mould Block is connected with microcontroller and is controlled by microcontroller.
CN201710652195.1A 2017-08-02 2017-08-02 Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device Pending CN107703786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710652195.1A CN107703786A (en) 2017-08-02 2017-08-02 Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710652195.1A CN107703786A (en) 2017-08-02 2017-08-02 Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device

Publications (1)

Publication Number Publication Date
CN107703786A true CN107703786A (en) 2018-02-16

Family

ID=61170828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710652195.1A Pending CN107703786A (en) 2017-08-02 2017-08-02 Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device

Country Status (1)

Country Link
CN (1) CN107703786A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254375A (en) * 2020-12-30 2021-08-13 深圳怡化电脑股份有限公司 Data transmission method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924852A (en) * 2006-08-25 2007-03-07 四川长虹电器股份有限公司 Embedded hardware video system
CN101079075A (en) * 2007-05-24 2007-11-28 北京交通大学 Portable serial number recorder and implementation method
CN203759694U (en) * 2014-03-06 2014-08-06 北京兆维电子(集团)有限责任公司 Serial port networking communication device
CN205142268U (en) * 2015-08-27 2016-04-06 桂林理工大学 Take RS232 and VLC communication protocol conversion equipment of steady illumination function
CN205450783U (en) * 2016-01-05 2016-08-10 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle flight control and shooting device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1924852A (en) * 2006-08-25 2007-03-07 四川长虹电器股份有限公司 Embedded hardware video system
CN101079075A (en) * 2007-05-24 2007-11-28 北京交通大学 Portable serial number recorder and implementation method
CN203759694U (en) * 2014-03-06 2014-08-06 北京兆维电子(集团)有限责任公司 Serial port networking communication device
CN205142268U (en) * 2015-08-27 2016-04-06 桂林理工大学 Take RS232 and VLC communication protocol conversion equipment of steady illumination function
CN205450783U (en) * 2016-01-05 2016-08-10 零度智控(北京)智能科技有限公司 Unmanned aerial vehicle flight control and shooting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113254375A (en) * 2020-12-30 2021-08-13 深圳怡化电脑股份有限公司 Data transmission method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN202870808U (en) FPGA realization device of SPI serial port module
CN108475227A (en) Test functional component and data debugging method
CN106533876B (en) A kind of collecting method based on automobile CAN-bus data collection system
CN107832247B (en) The data concentrator of adaptive communications
CN107592250B (en) Multi-rate self-adaptive test equipment based on aviation FC bus
CN108319462A (en) Firmware upgrade method, device and system
CN105022869A (en) Fast reconfigurable MCU simulation method
CN104020704A (en) Mini embedded controller device and method for simulating SPI interface through I/O port
CN112327724B (en) Instrument interface data monitoring device
CN105306154A (en) Emission detection unit based on FPGA (Field Programmable Gate Array) and implementation method thereof
CN102291337A (en) Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof
CN107703786A (en) Multi-path electricity, which is adjusted, docks conversion monitoring method and apparatus with the data between main control device
CN208450861U (en) A kind of laser marking machine and laser marking system
CN103067201A (en) Multi-protocol communication manager
CN103454673B (en) There is the micro electronmechanical digital detector acquisition system recording monitoring unit and method more
CN204989976U (en) Radio frequency control system that conveying robot is wireless
CN106774769A (en) The changing method and device of a kind of terminal work mode, handheld terminal
CN102621950A (en) Pure electric vehicle carload controller refreshing instrument and refreshing method
CN115903744A (en) Automobile remote detection method and device, electronic equipment and storage medium
CN111371799B (en) Method, device and equipment for controlling data receiving and transmitting of MCTP (Multi-channel media Port) controller
CN201278146Y (en) ATA interface signal capturing apparatus implemented based on FPGA
CN101399852B (en) Method for realizing wireless access kit upgrading through network interface
CN102622937A (en) Robot demonstrator
CN103916427A (en) First mobile communication terminal and communication method thereof, and system for Internet of Things
CN202206415U (en) Gateway for communication conversion between Ethernet CAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180216