CN104639288A - CAN (Controller Area Network) bus-based multi-sensor correction communication method - Google Patents

CAN (Controller Area Network) bus-based multi-sensor correction communication method Download PDF

Info

Publication number
CN104639288A
CN104639288A CN201510033375.2A CN201510033375A CN104639288A CN 104639288 A CN104639288 A CN 104639288A CN 201510033375 A CN201510033375 A CN 201510033375A CN 104639288 A CN104639288 A CN 104639288A
Authority
CN
China
Prior art keywords
measuring unit
frame
unit node
matrix
correction
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
CN201510033375.2A
Other languages
Chinese (zh)
Other versions
CN104639288B (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.)
Institute of Intelligent Manufacturing of Guangdong Academy of Sciences
Original Assignee
Guangdong Institute of Automation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Institute of Automation filed Critical Guangdong Institute of Automation
Priority to CN201510033375.2A priority Critical patent/CN104639288B/en
Publication of CN104639288A publication Critical patent/CN104639288A/en
Application granted granted Critical
Publication of CN104639288B publication Critical patent/CN104639288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Gyroscopes (AREA)

Abstract

The invention discloses a CAN (Controller Area Network) bus-based multi-sensor correction communication method. The method comprises the following steps: 1, transmitting application number frames to a host after measuring unit nodes are powered on; 2, transmitting number allocation frames to the measuring unit nodes by the host; 3, receiving the number allocation frames transmitted by the host and judging whether or not the number allocation frames are consistent by the measuring unit nodes; 4, acquiring a correction matrix of each measuring unit node; 5, transmitting correction data frames carrying the correction matrixes to corresponding measuring unit nodes through a CAN bust by the host. Simple and low-cost correction equipment, a simple correction algorithm with a remarkable effect, and a CAN bus application layer protocol and a sensor correction software system which are matched with the correction algorithm and can be used for correcting in batches are adopted, so that the correction of the measuring unit nodes can be performed in batches, and high efficiency and low cost are realized.

Description

Based on the multisensor correction communication method of CAN
Technical field
The present invention relates to the bearing calibration of sensing data, specifically one is communicated by CAN, relates to the bearing calibration of acceleration and gyroscope two kinds of sensing datas.
Background technology
Along with the development of science and technology, robot appears at the visual field of people more and more continually, in the life of people, as automation pilot, air-robot.And in the control of robot, the precision of attitude is the most key, calculate attitude transducer in acceleration and gyroscope the most common.Generally our degree of will speed up and gyroscope two kinds of transducers are collectively referred to as MEMS (micro-electro-mechanical system), referred to as measuring unit node in this patent.Owing to there is temperature variant null offset (bias) and temperature variant scale factor (scale) distortion, and the linear processes error such as nonopiate coupling error (M) between three axles that bring of the three-dimension sensor that brings of production technology or welding procedure.
Need in the project to correct before measuring unit node uses, in order to the convenience produced in batches, need one simple and effective bearing calibration, need correct multiple measuring unit node simultaneously and the low cost of calibration equipment will be controlled.Now need the data volume of measurement comparatively large, frequency is higher to improve certainty of measurement, and carries out multisensor correction to save time, and due to amount of calculation larger, measuring unit node cannot correct alone, needs computer to carry out computing, therefore the communication protocol requirements needed is as follows:
1) without congested, between measuring unit node, there is no prioritization, and traffic model be a main frame to multiple measuring unit node, when measuring unit node increases, communication can not occur that data block.And when multiple measuring unit node sends data and do not control simultaneously, have very large probability to cause data congestion.
2) without packet loss, owing to needing the stable time interval in most of sensor calibration algorithm, after packet loss, noise can be caused to algorithm, reduce accuracy; And due to the data volume of single measurement data comparatively large, need subpackage, after packet loss, easily occur data dislocation or data exception, data congestion.
3) quick, due in sensing algorithm, the measuring intervals of TIME of data is shorter, and the result of correction is more accurate, so data acquisition is very fast, if can take double data bandwidth by polling mode.
CAN is the abbreviation (hereinafter referred to as CAN) of Controller Area Network, is the serial communication protocol of ISO International standardization, and is widely used in the aspects such as industrial automation, boats and ships, Medical Devices, industrial equipment.Fieldbus is one of focus of nowadays automatic art, is described as the LAN (Local Area Network) of automatic field.It appear as that dcs to realize between each node in real time, data communication reliably provides strong technical support.
Summary of the invention
For the problems referred to above, the object of the present invention is to provide a kind of bearing calibration of MEMS measuring unit node, a kind of simple and effectively, batch and low cost, bearing calibration based on CAN and main-machine communication.
For achieving the above object, the technical scheme that the present invention takes is:
Based on the multisensor correction communication method of CAN, it comprises the following steps:
Step 1, measuring unit node send application numbers frame to main frame after powering on, the data segment in application numbers frame is the Unique Chip numbering of measuring unit node, and described measuring unit node comprises accelerometer and gyroscope;
After step 2, main frame receive described application numbers frame, search Hash table and record described Unique Chip numbering, meanwhile, sending numbering distribute frame to measuring unit node, described numbering is distributed frame and is comprised element number for measuring unit peer distribution and group number;
The numbering that step 3, measuring unit node receive main frame transmission is distributed frame and judges that described numbering is distributed frame and whether conformed to, if conformed to, then this measuring unit node serial number is assigned, wait for the control command of main frame, measuring unit node after numbering distribution no longer judges with its Unique Chip numbering, and judges with the element number of host assignment and group number;
Step 4, main frame carries out measurement procedure control by graphic interface, and enable corresponding measuring unit node enters correcting process, to obtain the correction matrix of each measuring unit node, described main frame is corrected measuring unit node by calibration equipment, described calibration equipment comprises horizontal revolving stage and with multiple measuring unit node slot and can the square measuring unit node installation frame put of six direction level, described horizontal revolving stage drives lower rotation by main frame by the motor that CAN controls, described square measuring unit node installation frame is fixedly installed in the upper center position of horizontal revolving stage, described measuring unit node installation is in square measuring unit node installation frame, described correction matrix comprises null offset matrix, nonopiate coupling error matrix between scale factor matrix and three axles,
Step 5, corrected after, the correction data frame with correction matrix is sent to corresponding measuring unit node by CAN by main frame, and measuring unit node records after receiving correction data frame and replaces legacy data calculating parameter.
In described step 2, the method for host assignment group number according to measuring unit node electric sequence or user selects or element number carries out, each measuring unit node can only a corresponding group number.
In described step 3, judge that the method whether described numbering distribution frame conforms to is: first judge whether measuring unit node is in and wait for numbering allocated phase, if so, then the Unique Chip again numbering being distributed chip number in frame and measuring unit node is numbered to compare and is verified.
In described step 4, described correcting process comprises the following steps:
Step 41, main frame enter the sensor data acquisition stage by the enable measuring unit node of graphic interface, now, main frame sends start frame or continues frame, and the measuring unit node that the measuring unit node of enable target group number or start element number end unit numbering starts sensor data acquisition; During data acquisition, the rotary state that main frame controls motor by CAN obtains each measuring unit node correction data, described correction data comprise accelerometer x, y, z three axle under static state the output data of six direction, gyroscope x, y, z three axle under static state six direction output data and rotate along gyroscope x, y, z three axle with fixed angles speed time real time sensor data, the output data under inactive state and real time sensor data are many groups;
Step 42, main frame are calculated by correcting algorithm and correction data and obtain correction matrix.
Described step 42 comprises the following steps:
Step 421, set up error model:
When not considering that temperature affects, correction matrix is respectively:
bias = xbias ybias zbias - - - ( 1 )
scale = xscale 0 0 0 yscale 0 0 0 zscale - - - ( 2 )
M = xx yx zx xy yy zy xz yz zz - - - ( 3 )
Wherein, in formula (1)-(3), bias, scale and M represent the nonopiate coupling error matrix between null offset matrix, scale factor matrix and three axles respectively;
Error model is expressed as:
D_M=scale*M*D_T+bias (4)
In formula (4), D_M is the data that the actual measurement of measuring unit node obtains, and D_T is the theoretic output data of measuring unit node;
Error model can be rewritten into:
D_T=N*(D_M-bias) (5)
In formula (5):
N=inv(scale*M) (6)
Step 422, obtain accelerometer and gyrostatic null offset matrix respectively:
For the null offset matrix bias of accelerometer 1: by inactive state brief acceleration meter every axially under put time, the reading of its upper and lower both direction and 1/2nd, then average and obtain;
For gyrostatic null offset matrix bias 2: by gyroscope during inactive state every axially under put time, the reading of its upper and lower both direction and 1/2nd, then quadrature and obtain;
Step 423, embody the hybrid matrix of the nonopiate coupling error matrix between scale factor matrix and three axles due to the N in formula (6), therefore, only need obtain accelerometer and gyrostatic hybrid matrix:
For the hybrid matrix N of accelerometer 1:
The calculation matrix Ba of 33 is obtained after reading by accelerometer three axles:
Ba = P xx P yx P zx P xy P yy P zy P xz P yz P zz - - - ( 7 ) ;
In formula (7), P xyfor when accelerometer x-axis is put downwards, repeatedly reading corresponding to y-axis all deducts ybias 1after the average of trying to achieve; Ybias 1for null offset matrix bias 1zero drift value in corresponding y-axis;
And accelerometer corresponding 33 theoretical calculation matrix Aa be:
Aa = G 0 0 0 G 0 0 0 G - - - ( 8 )
In formula (8), G is acceleration of gravity;
By theoretical calculation matrix Aa and calculation matrix Ba, obtain hybrid matrix N 1=Aa/Ba;
For gyrostatic hybrid matrix N 2:
The calculation matrix Bg of acquisition 33 is obtained after reading when being rotated by gyroscope three axles:
Bg = Q xx Q yx Q zx Q xy Q yy Q zy Q xz Q yz Q zz - - - ( 9 )
In formula (9), Q xyduring for rotating along gyroscope x-axis, repeatedly reading corresponding to y-axis all deducts ybias 2after the integrated value of trying to achieve; Ybias 2for null offset matrix bias 2zero drift value in corresponding y-axis;
And gyroscope corresponding 33 theoretical calculation matrix Ag be:
Ag = n * 2 π 0 0 0 2 π 0 0 0 2 π - - - ( 10 )
In formula (10), n is for rotating the number of turns;
By theoretical calculation matrix Ag and calculation matrix Bg, obtain hybrid matrix N 2=Ag/Bg.
In described step 41, target measurement cell node receives start frame or judges after continuing frame whether start frame or the group number continued in frame are zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, start to measure transmission data.
In described step 41, main frame sends start frame or after continuing frame to measuring unit node, measuring unit node sends data to main frame and expands frame.
The identification fields that described data expand frame is divided into function number, data number, element number and frame ID, described function number is 0x08, described data number is the count number of current measurement data, and described element number is the numbering of current measuring unit node, and frame ID is subpackage sequence number.
Further comprising the steps of after described step 5:
After step 6, measuring unit nodes records correction matrix, again send correction data to main frame, compare with set point after main frame receives described correction data, with the difference by comparison whether in allowed band, thus judge whether successfully trimming process.
Main frame carries out measurement procedure by graphic interface and controls at least to comprise one of following content:
Carry out grouping planning to measuring unit node, now main frame sends group # distribution frame, start element is numbered the measuring unit peer distribution group # of end unit numbering; Measuring unit node receives group # and distributes frame laggard line range coupling, checks and whether belongs to range of distribution, if then record oneself ownership group number;
Be numbered replacement to measuring unit node, now main frame sends and resets frame, and the measuring unit node of the measuring unit node of target group number or start element being numbered end unit numbering is numbered replacement; Whether target measurement cell node receives the group number reset after frame in judgment frame is zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, reset group number and element number, after postponing at one section, again send request frame to main frame;
Stop measuring unit node measurement transmission data, now main frame sends Abort Frame or end, the measuring unit node of termination target group number or start element number the measuring unit node measurement transmission data of end unit numbering, whether the group number after target measurement cell node receives Abort Frame in judgment frame is zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, stop to measure transmission data, send data to main frame and complete acknowledgement frame.
Compared with prior art, beneficial effect of the present invention is:
1, bearing calibration comprise simply, the calibration equipment of low cost, the simply correcting algorithm of successful and match with it the CAN application layer protocol and sensor calibration software systems that can correct in batches, realize the correction of measure batch cell node, efficiency is high, cost is low.
2, arranged by the segmentation priority of identification fields, ensure effectively fast and safely transmitting of the many packetized data of many measuring units node.
Accompanying drawing explanation
Fig. 1 is the flow chart of the multisensor correction communication method that the present invention is based on CAN;
Fig. 2 is the structural representation of horizontal revolving stage;
Fig. 3 is the flow chart that correction matrix obtains;
Fig. 4 is CAN inclusion composition of the present invention;
Fig. 5 is CAN standard frame and expands frame format figure.
Embodiment
Below in conjunction with the drawings and specific embodiments, content of the present invention is described in further details.
Embodiment
Please refer to shown in Fig. 1, based on the multisensor correction communication method of CAN, it comprises the following steps:
Step 1, measuring unit node send application numbers frame to main frame after powering on, the data segment in application numbers frame is the Unique Chip numbering of measuring unit node, and described measuring unit node comprises accelerometer and gyroscope.
After step 2, main frame receive described application numbers frame, search Hash table and record described Unique Chip numbering, simultaneously, send numbering to measuring unit node and distribute frame, described numbering is distributed frame and is comprised element number for measuring unit peer distribution and group number, the method of host assignment group number according to measuring unit node electric sequence or user selects or element number carries out, each measuring unit node can only a corresponding group number.
The numbering that step 3, measuring unit node receive main frame transmission is distributed frame and judges that described numbering is distributed frame and whether conformed to, judge that the method whether described numbering distribution frame conforms to is: first judge whether measuring unit node is in and wait for numbering allocated phase, if so, then the Unique Chip again numbering being distributed chip number in frame and measuring unit node is numbered to compare and is verified.If conformed to, then this measuring unit node serial number is assigned, and waits for the control command of main frame, and the measuring unit node after numbering distribution no longer judges with its Unique Chip numbering, and judges with the element number of host assignment and group number.
Step 4, main frame carries out measurement procedure control by graphic interface, and enable corresponding measuring unit node enters correcting process, to obtain the correction matrix of each measuring unit node, described main frame is corrected measuring unit node by calibration equipment, please refer to shown in Fig. 2, described calibration equipment comprises horizontal revolving stage and with multiple measuring unit node slot and can the square measuring unit node installation frame put of six direction level, described horizontal revolving stage drives lower rotation by main frame by the motor that CAN controls, described square measuring unit node installation frame is fixedly installed in the upper center position of horizontal revolving stage, described measuring unit node installation is in square measuring unit node installation frame, described correction matrix comprises null offset matrix, nonopiate coupling error matrix between scale factor matrix and three axles.
Please refer to shown in Fig. 4, main frame carries out measurement procedure by graphic interface and controls at least to comprise one of following content:
(1) carry out grouping planning to measuring unit node, now main frame sends group # distribution frame, start element is numbered the measuring unit peer distribution group # of end unit numbering; Measuring unit node receives group # and distributes frame laggard line range coupling, checks and whether belongs to range of distribution, if then record oneself ownership group number;
(2) be numbered replacement to measuring unit node, now main frame sends and resets frame, and the measuring unit node of the measuring unit node of target group number or start element being numbered end unit numbering is numbered replacement; Whether target measurement cell node receives the group number reset after frame in judgment frame is zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, reset group number and element number, after postponing at one section, again send request frame to main frame;
(3) enable measuring unit node starts to measure transmission data, and now main frame sends start frame or continues frame, and the measuring unit node that the measuring unit node of enable target group number or start element number end unit numbering carries out measurement transmission data.Whether the group number after target measurement cell node receives start frame in judgment frame is zero, if zero illustrates not to be inquiry with group number, then judges whether that belonging to start element numbers end unit Serial Number Range, if be in scope, starts to measure transmission data.
(4) measuring unit node measurement transmission data are stopped, now main frame sends Abort Frame or end, the measuring unit node of termination target group number or start element number the measuring unit node measurement transmission data of end unit numbering, whether the group number after target measurement cell node receives Abort Frame in judgment frame is zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, stop to measure transmission data, send data to main frame and complete acknowledgement frame.
Please refer to shown in Fig. 3, in described step 4, described correcting process comprises the following steps:
Step 41, main frame enter the sensor data acquisition stage by the enable measuring unit node of graphic interface, now, main frame sends start frame or continues frame, and the measuring unit node that the measuring unit node of enable target group number or start element number end unit numbering starts sensor data acquisition.
Main frame sends start frame or after continuing frame to measuring unit node, measuring unit node sends data to main frame and expands frame.Please refer to shown in Fig. 5: the identification fields that described data expand frame is divided into function number, data number, element number and frame ID, described function number is 0x08, described data number is the count number of current measurement data, and described element number is the numbering of current measuring unit node, and frame ID is subpackage sequence number.The priority of carrying out hardware by identification fields due to CAN is resolved, and the less then priority of numerical value of identification fields is higher.After numbering is arranged above, first carry out priority judgement with data number, guarantee that the data of each measuring unit node can not delay transmission; Carry out priority judgement by measuring unit node serial number again, guarantee that each group data is all send continuously, and by the order that frame ID maintains subpackage, there will not be entanglement.
During data acquisition, main frame obtains the correction data of each measuring unit node by the rotary state of CAN control motor, correction data comprise accelerometer x, y, z three axle under static state the output data of six direction, gyroscope x, y, z three axle under static state six direction output data and rotate along gyroscope x, y, z three axle with fixed angles speed time real time sensor data, the output data under inactive state and real time sensor data are many groups;
Step 42, main frame are calculated by correcting algorithm and correction data and obtain correction matrix.
Described step 42 comprises the following steps:
Step 421, set up error model:
When not considering that temperature affects, correction matrix is respectively:
bias = xbias ybias zbias - - - ( 11 )
scale = xscale 0 0 0 yscale 0 0 0 zscale - - - ( 12 )
M = xx yx zx xy yy zy xz yz zz - - - ( 13 )
Wherein, in formula (11)-(13), bias, scale and M represent the nonopiate coupling error matrix between null offset matrix, scale factor matrix and three axles respectively;
Error model is expressed as:
D_M=scale*M*D_T+bias (14)
In formula (14), D_M is the data that the actual measurement of measuring unit node obtains, and D_T is the theoretic output data of measuring unit node;
Error model can be rewritten into:
D_T=N*(D_M-bias) (15)
In formula (15):
N=inv(scale*M) (16)
Step 422, obtain accelerometer and gyrostatic null offset matrix respectively:
For the null offset matrix bias of accelerometer 1: by inactive state brief acceleration meter every axially under put time, the reading of its upper and lower both direction and 1/2nd, then average and obtain;
For gyrostatic null offset matrix bias 2: by gyroscope during inactive state every axially under put time, the reading of its upper and lower both direction and 1/2nd, then quadrature and obtain;
Step 423, embody the hybrid matrix of the nonopiate coupling error matrix between scale factor matrix and three axles due to the N in formula (16), therefore, only need obtain accelerometer and gyrostatic hybrid matrix:
For the hybrid matrix N of accelerometer 1:
The calculation matrix Ba of 3 × 3 is obtained after reading by accelerometer three axles:
Ba = P xx P yx P zx P xy P yy P zy P xz P yz P zz - - - ( 17 ) ;
In formula (17), P xyfor when accelerometer x-axis is put downwards, repeatedly reading corresponding to y-axis all deducts ybias 1after the average of trying to achieve, the acquisition of other elements and P xysimilar (such as, P xxfor when accelerometer x-axis is put downwards, repeatedly reading corresponding to x-axis all deducts xbias 1after the average of trying to achieve); Xbias 1, ybias 1be respectively null offset matrix bias 1zero drift value in corresponding x, y-axis;
And accelerometer corresponding 33 theoretical calculation matrix Aa be:
Aa = G 0 0 0 G 0 0 0 G - - - ( 18 )
In formula (18), G is acceleration of gravity;
By theoretical calculation matrix Aa and calculation matrix Ba, obtain hybrid matrix N 1=Aa/Ba;
For gyrostatic hybrid matrix N 2:
The calculation matrix Bg of acquisition 33 is obtained after reading when being rotated by gyroscope three axles:
Bg = Q xx Q yx Q zx Q xy Q yy Q zy Q xz Q yz Q zz - - - ( 19 )
In formula (19), Q xyduring for rotating along gyroscope x-axis, repeatedly reading corresponding to y-axis all deducts ybias 2after the integrated value of trying to achieve, the acquisition of all the other elements and Q xysimilar (such as Q xxduring for rotating along gyroscope x-axis, repeatedly reading corresponding to x-axis all deducts xbias 2after the integrated value of trying to achieve); Xbias 2, ybias 2for null offset matrix bias 2zero drift value in corresponding x, y-axis.
And gyroscope corresponding 33 theoretical calculation matrix Ag be:
Ag = n * 2 π 0 0 0 2 π 0 0 0 2 π - - - ( 20 )
N, for rotating the number of turns, by theoretical calculation matrix Ag and calculation matrix Bg, obtains hybrid matrix N 2=Ag/Bg.
Step 5, corrected after, the correction data frame with correction matrix is sent to corresponding measuring unit node by CAN by main frame, and measuring unit node records after receiving correction data frame and replaces legacy data calculating parameter.
After step 6, measuring unit nodes records correction matrix, again send correction data to main frame, compare with set point after main frame receives described correction data, with the difference by comparison whether in allowed band, thus judge whether successfully trimming process.
Above-listed detailed description is illustrating for possible embodiments of the present invention, and this embodiment is also not used to limit the scope of the claims of the present invention, and the equivalence that all the present invention of disengaging do is implemented or changed, and all should be contained in the scope of the claims of this case.

Claims (10)

1., based on the multisensor correction communication method of CAN, it is characterized in that, it comprises the following steps:
Step 1, measuring unit node send application numbers frame to main frame after powering on, the data segment in application numbers frame is the Unique Chip numbering of measuring unit node, and described measuring unit node comprises accelerometer and gyroscope;
After step 2, main frame receive described application numbers frame, search Hash table and record described Unique Chip numbering, meanwhile, sending numbering distribute frame to measuring unit node, described numbering is distributed frame and is comprised element number for measuring unit peer distribution and group number;
The numbering that step 3, measuring unit node receive main frame transmission is distributed frame and judges that described numbering is distributed frame and whether conformed to, if conformed to, then this measuring unit node serial number is assigned, wait for the control command of main frame, measuring unit node after numbering distribution no longer judges with its Unique Chip numbering, and judges with the element number of host assignment and group number;
Step 4, main frame carries out measurement procedure control by graphic interface, and enable corresponding measuring unit node enters correcting process, to obtain the correction matrix of each measuring unit node, described main frame is corrected measuring unit node by calibration equipment, described calibration equipment comprises horizontal revolving stage and with multiple measuring unit node slot and can the square measuring unit node installation frame put of six direction level, described horizontal revolving stage drives lower rotation by main frame by the motor that CAN controls, described square measuring unit node installation frame is fixedly installed in the upper center position of horizontal revolving stage, described measuring unit node installation is in square measuring unit node installation frame, described correction matrix comprises null offset matrix, nonopiate coupling error matrix between scale factor matrix and three axles,
Step 5, corrected after, the correction data frame with correction matrix is sent to corresponding measuring unit node by CAN by main frame, and measuring unit node records after receiving correction data frame and replaces legacy data calculating parameter.
2. the multisensor correction communication method based on CAN according to claim 1, it is characterized in that, in described step 2, the method of host assignment group number according to measuring unit node electric sequence or user selects or element number carries out, each measuring unit node can only a corresponding group number.
3. the multisensor correction communication method based on CAN according to claim 1, it is characterized in that, in described step 3, judge that the method whether described numbering distribution frame conforms to is: first judge whether measuring unit node is in and wait for numbering allocated phase, if so, then the Unique Chip again numbering being distributed chip number in frame and measuring unit node is numbered to compare and is verified.
4. the multisensor correction communication method based on CAN according to claim 1, it is characterized in that, in described step 4, described correcting process comprises the following steps:
Step 41, main frame enter the sensor data acquisition stage by the enable measuring unit node of graphic interface, now, main frame sends start frame or continues frame, and the measuring unit node that the measuring unit node of enable target group number or start element number end unit numbering starts sensor data acquisition; During data acquisition, main frame obtains the correction data of each measuring unit node by the rotary state of CAN control motor, described correction data comprise accelerometer x, y, z three axle under static state the output data of six direction, gyroscope x, y, z three axle under static state six direction output data and rotate along gyroscope x, y, z three axle with fixed angles speed time real time sensor data, the output data under inactive state.Real time sensor data is many groups;
Step 42, main frame are calculated by correcting algorithm and correction data and obtain correction matrix.
5. the multisensor correction communication method based on CAN according to claim 4, it is characterized in that, described step 42 comprises the following steps:
Step 421, set up error model:
When not considering that temperature affects, correction matrix is respectively:
bias = xbias ybias zbias - - - ( 1 )
scale = xscale 0 0 0 yscale 0 0 0 zscale - - - ( 2 )
M = xx yx zx xy yy zy xz yz zz - - - ( 3 )
Wherein, in formula (1)-(3), bias, scale and M represent the nonopiate coupling error matrix between null offset matrix, scale factor matrix and three axles respectively;
Error model is expressed as:
D_M=scale*M*D_T+bias (4)
In formula (4), D_M is the data that the actual measurement of measuring unit node obtains, and D_T is the theoretic output data of measuring unit node;
Error model can be rewritten into:
D_T=N*(D_M-bias) (5)
In formula (5):
N=inv(scale*M) (6)
Step 422, obtain accelerometer and gyrostatic null offset matrix respectively:
For the null offset matrix bias of accelerometer 1: often axially lower and when upwards putting by inactive state brief acceleration meter, the reading of its upper and lower both direction and 1/2nd, then average and obtain;
For gyrostatic null offset matrix bias 2: by gyroscope during inactive state often axially lower and when upwards putting reading and 1/2nd, then quadrature and obtain;
Step 423, embody the hybrid matrix of the nonopiate coupling error matrix between scale factor matrix and three axles due to the N in formula (6), therefore, only need obtain accelerometer and gyrostatic hybrid matrix:
For the hybrid matrix N of accelerometer 1:
The calculation matrix Ba of 3 × 3 is obtained after reading by accelerometer three axles:
Ba = P xx P yx P zx P xy P yy P zy P xz P yz P zz - - - ( 7 ) ;
In formula (7), P xyfor when accelerometer x-axis is put downwards, repeatedly reading corresponding to y-axis all deducts ybias 1after the average of trying to achieve; Ybias 1for null offset matrix bias 1zero drift value in corresponding y-axis;
And accelerometer corresponding 3 × 3 theoretical calculation matrix Aa be:
Aa = G 0 0 0 G 0 0 0 G - - - ( 8 )
In formula (8), G is acceleration of gravity;
By theoretical calculation matrix Aa and calculation matrix Ba, obtain hybrid matrix N 1=Aa/Ba;
For gyrostatic hybrid matrix N 2:
The calculation matrix Bg of acquisition 3 × 3 is obtained after reading when being rotated by gyroscope three axles:
Bg = Q xx Q yx Q zx Q xy Q yy Q zy Q xz Q yz Q zz - - - ( 9 )
In formula (9), Q xyduring for rotating along gyroscope x-axis, repeatedly reading corresponding to y-axis all deducts ybias 2after the integrated value of trying to achieve; Ybias 2for null offset matrix bias 2zero drift value in corresponding y-axis;
And gyroscope corresponding 3 × 3 theoretical calculation matrix Ag be:
Ag = n * 2 π 0 0 0 2 π 0 0 0 2 π - - - ( 10 )
In formula (10), n is for rotating the number of turns;
By theoretical calculation matrix Ag and calculation matrix Bg, obtain hybrid matrix N 2=Ag/Bg.
6. the multisensor correction communication method based on CAN according to claim 4, it is characterized in that, in described step 41, target measurement cell node receives start frame or judges after continuing frame whether start frame or the group number continued in frame are zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, start to measure transmission data.
7. the multisensor correction communication method based on CAN according to claim 4, is characterized in that, in described step 41, main frame sends start frame or after continuing frame to measuring unit node, measuring unit node sends data to main frame and expands frame.
8. the multisensor correction communication method based on CAN according to claim 7, it is characterized in that, the identification fields that described data expand frame is divided into function number, data number, element number and frame ID, described function number is 0x08, described data number is the count number of current measurement data, described element number is the numbering of current measuring unit node, and frame ID is subpackage sequence number.
9. the multisensor correction communication method based on CAN according to any one of claim 1-8, is characterized in that, further comprising the steps of after described step 5:
After step 6, measuring unit nodes records correction matrix, again send correction data to main frame, compare with set point after main frame receives described correction data, with the difference by comparison whether in allowed band, thus judge whether successfully trimming process.
10. the multisensor correction communication method based on CAN according to claim 1, is characterized in that, main frame carries out measurement procedure by graphic interface and controls at least to comprise one of following content:
Carry out grouping planning to measuring unit node, now main frame sends group # distribution frame, start element is numbered the measuring unit peer distribution group # of end unit numbering; Measuring unit node receives group # and distributes frame laggard line range coupling, checks and whether belongs to range of distribution, if then record oneself ownership group number;
Be numbered replacement to measuring unit node, now main frame sends and resets frame, and the measuring unit node of the measuring unit node of target group number or start element being numbered end unit numbering is numbered replacement; Whether target measurement cell node receives the group number reset after frame in judgment frame is zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, reset group number and element number, after postponing at one section, again send request frame to main frame;
Stop measuring unit node measurement transmission data, now main frame sends Abort Frame or end, the measuring unit node of termination target group number or start element number the measuring unit node measurement transmission data of end unit numbering, whether the group number after target measurement cell node receives Abort Frame in judgment frame is zero, if zero illustrates not to be inquiry with group number, judge whether that belonging to start element numbers end unit Serial Number Range again, if be in scope, stop to measure transmission data, send data to main frame and complete acknowledgement frame.
CN201510033375.2A 2015-01-22 2015-01-22 Multisensor correction communication method based on CAN Active CN104639288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510033375.2A CN104639288B (en) 2015-01-22 2015-01-22 Multisensor correction communication method based on CAN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510033375.2A CN104639288B (en) 2015-01-22 2015-01-22 Multisensor correction communication method based on CAN

Publications (2)

Publication Number Publication Date
CN104639288A true CN104639288A (en) 2015-05-20
CN104639288B CN104639288B (en) 2018-01-05

Family

ID=53217650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510033375.2A Active CN104639288B (en) 2015-01-22 2015-01-22 Multisensor correction communication method based on CAN

Country Status (1)

Country Link
CN (1) CN104639288B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105305921A (en) * 2015-11-12 2016-02-03 上海新时达电气股份有限公司 Position feedback self-adaption correction method of motor encoder and servo driver of motor encoder

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197855A (en) * 2007-12-25 2008-06-11 三一重工股份有限公司 Equipment node address code distribution method and distributing system, and address configuration node
US20100292943A1 (en) * 2009-05-18 2010-11-18 Minor Mark A State Estimator for Rejecting Noise and Tracking and Updating Bias in Inertial Sensors and Associated Methods
CN102506898A (en) * 2011-11-03 2012-06-20 中国科学院自动化研究所 Genetic algorithm-based calibration method for inertial/geomagnetic sensors
CN103776468A (en) * 2014-02-21 2014-05-07 深圳乐行天下科技有限公司 Gyroscope and accelerometer batch calibration device and gyroscope and accelerometer batch calibration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197855A (en) * 2007-12-25 2008-06-11 三一重工股份有限公司 Equipment node address code distribution method and distributing system, and address configuration node
US20100292943A1 (en) * 2009-05-18 2010-11-18 Minor Mark A State Estimator for Rejecting Noise and Tracking and Updating Bias in Inertial Sensors and Associated Methods
CN102506898A (en) * 2011-11-03 2012-06-20 中国科学院自动化研究所 Genetic algorithm-based calibration method for inertial/geomagnetic sensors
CN103776468A (en) * 2014-02-21 2014-05-07 深圳乐行天下科技有限公司 Gyroscope and accelerometer batch calibration device and gyroscope and accelerometer batch calibration method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105305921A (en) * 2015-11-12 2016-02-03 上海新时达电气股份有限公司 Position feedback self-adaption correction method of motor encoder and servo driver of motor encoder
CN105305921B (en) * 2015-11-12 2018-03-06 上海新时达电气股份有限公司 The position feedback adaptive bearing calibration of motor encoder and its servo-driver

Also Published As

Publication number Publication date
CN104639288B (en) 2018-01-05

Similar Documents

Publication Publication Date Title
EP2901539B1 (en) System, method and apparatus for generating layout of devices in solar installations
EP2541853B2 (en) Synchronized wireless data concentrator for airborne wireless sensor networks
EP3047689B1 (en) Ap location query
US20180164778A1 (en) Method and System for Monitoring a Plant of Process Automation
CN109407694A (en) Unmanned plane formation control method, readable storage medium storing program for executing, equipment and unmanned plane
CN109788551A (en) A kind of three-dimensional indoor locating system and method
CN103592667A (en) Vehicle-mounted monitoring system and method based on Beidou navigation system
JP2015123538A (en) Robot system having radio acceleration sensor
CN111007455A (en) Positioning system and method, database and neural network model training method
CN108153327A (en) Formation light show system and control method outside a kind of quadrotor room
CN103856578A (en) Automatic slave station address acquisition method through Modbus RTU and slave station
CN110567493B (en) Magnetometer calibration data acquisition method and device and aircraft
CN104639288A (en) CAN (Controller Area Network) bus-based multi-sensor correction communication method
CN109828513A (en) A kind of Chemical Manufacture patrols control system
CN109541661A (en) A kind of localization method and device
CN110081907A (en) It is a kind of for positioning the method for diagnosing faults and trouble-shooter of sighting system
US20170075343A1 (en) Field device, method for operating a field device and cloud service
KR101063327B1 (en) Industrial automation network system based on ubiquitous sensor network and its real time synchronization method
CN114072741A (en) Control system, control device, and program
KR20090034501A (en) System and method for automatic task management of container crane by zigbee communication technology
CN103076591B (en) Ultrasonic technology-based industrial robot movement locating method and system
CN205353777U (en) Passive unmanned vehicles , initiative unmanned vehicles and unmanned vehicles system
CN107105044B (en) Glass cutting control system and method
US20220286267A1 (en) Control system, information processing device, and non-transitory computer readable medium
CN112003667B (en) Time sequence management method, equipment and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 510000 building 15, 100 Hall of martyrs Road, Guangzhou, Guangdong

Patentee after: GUANGDONG INSTITUTE OF INTELLIGENT MANUFACTURING

Address before: 510070 13 building, 100 martyrs Road, Yuexiu District, Guangzhou, Guangdong.

Patentee before: Guangdong Institute of Automation

CP03 Change of name, title or address
CP01 Change in the name or title of a patent holder

Address after: 510000 building 15, 100 Hall of martyrs Road, Guangzhou, Guangdong

Patentee after: Institute of intelligent manufacturing, Guangdong Academy of Sciences

Address before: 510000 building 15, 100 Hall of martyrs Road, Guangzhou, Guangdong

Patentee before: GUANGDONG INSTITUTE OF INTELLIGENT MANUFACTURING

CP01 Change in the name or title of a patent holder