CN103677834B - A kind of signal operation processing method and processing device - Google Patents

A kind of signal operation processing method and processing device Download PDF

Info

Publication number
CN103677834B
CN103677834B CN201310689255.9A CN201310689255A CN103677834B CN 103677834 B CN103677834 B CN 103677834B CN 201310689255 A CN201310689255 A CN 201310689255A CN 103677834 B CN103677834 B CN 103677834B
Authority
CN
China
Prior art keywords
signal
memory area
request
array
message
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.)
Active
Application number
CN201310689255.9A
Other languages
Chinese (zh)
Other versions
CN103677834A (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.)
Beijing Jingwei Hirain Tech Co Ltd
Original Assignee
Beijing Jingwei Hirain Tech 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 Beijing Jingwei Hirain Tech Co Ltd filed Critical Beijing Jingwei Hirain Tech Co Ltd
Priority to CN201310689255.9A priority Critical patent/CN103677834B/en
Publication of CN103677834A publication Critical patent/CN103677834A/en
Application granted granted Critical
Publication of CN103677834B publication Critical patent/CN103677834B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application provides a kind of signal operation processing method and processing device, methods described includes:Operation signal request is received, entrained signal and the corresponding signal numbering of the signal in the operation signal request is obtained;According to the default signal and the corresponding relation in signal storage domain, the memory area of the signal is obtained;Number according to the signal, obtain the corresponding handling function of the signal;The handling function is performed, the memory area of the signal is carried out and the operation signal corresponding operation of request.The real-time of ECU operations is this improves, the EMS memory occupation in ECU is reduced.

Description

A kind of signal operation processing method and processing device
Technical field
The application is related to ECU in locomotive industry(Electronic Control Unit, electronic control unit)Software design Field, more particularly to a kind of signal operation processing method and processing device.
Background technology
In current automotive field, each ECU(Electronic Control Unit, electronic control unit)Between lead to Cross and send and receive message to realize communication, wherein, message is made up of multiple signals.Before dispatching from the factory, each ECU needs to connect automobile The message received and send is fixed, and the memory space of each message is allocated completes.
At present, when the communication module in ECU operates signal, first have to receive signal operation request, secondly basis System configuration input file determines the information such as signal place message and signal original position in messages and signal length, and really Determine the memory area of message, then the original position according to signal in messages, obtain the initial address of the memory area of signal, And the size of the memory area according to the length of signal acquisition signal, the initial address and signal of the memory area of basis signal are deposited The size in storage area domain, obtains the memory area of signal from the memory area of message, finally the memory area of signal is grasped Make.The execution step operated to signal due to the communication module in current ECU is excessive, therefore ECU processes multiple at the same time In the case that signal operation is asked, the operation load of ECU is increased, the real-time of ECU operations is reduced.
And the communication module in ECU is during process signal operation requests, can be by the signal for getting in messages Original position and signal length are stored in ECU internal memories, cause, in the case where multiple signal operations requests are processed, to take ECU In internal memory it is larger.
Therefore, when the communication module in current ECU is operated to signal, existing reduces the real-time of ECU operations And take the larger shortcoming of internal memory in ECU.
The content of the invention
To solve above-mentioned technical problem, the embodiment of the present application provides a kind of signal operation processing method and processing device, to reach The purpose of the EMS memory occupation in the real-time and reduction ECU of ECU operations is improved, technical scheme is as follows:
A kind of signal operation processing method, including:
Operation signal request is received, entrained signal and the corresponding letter of the signal in the operation signal request is obtained Number numbering;
According to the default signal and the corresponding relation in signal storage domain, the memory area of the signal is obtained;
Number according to the signal, obtain the corresponding handling function of the signal;
The handling function is performed, the memory area of the signal is carried out and the operation signal corresponding behaviour of request Make.
Preferably, the signal is included with the preset procedures of the corresponding relation in signal storage domain:
The structure of signal place message is set up, to complete to set up the signal with the memory area of the signal Corresponding relation;
Wherein, the memory area of memory area of the signal in structure corresponding to corresponding member and the signal It is identical, signal original position and length according to the signal in the message of corresponding member in the structure It is determined that, and signal data length of corresponding member in structure is identical with the length of the signal.
Preferably, the corresponding relation according to the default signal and the signal storage domain, obtains the letter Number memory area process, including:
By the signal, the signal is obtained from the structure of signal place message corresponding in structure Member;
Memory area of the signal in structure corresponding to corresponding member is obtained, as the memory block of the signal Domain.
Preferably, in the case where operation signal request is asked for write operation signal, in the execution handling function, The memory area of the signal is carried out, with after the operation signal corresponding operation of request, also including:
Read the content in the memory area corresponding to array corresponding with signal place message, the structure institute Corresponding memory area is identical with the memory area corresponding to the array;
The content for reading is sent;
In the case where operation signal request is for read operation request signal, before operation signal request is received, also Including:
Signal place message is received, and by signal place packet storage in the memory area corresponding to array In;
Wherein, the process of setting up of the memory area corresponding to the array includes:
The association of signal place message is set up, the member in the association includes array and the structure, Memory area corresponding to wherein described array is identical with the memory area corresponding to the structure, each unit in the array The corresponding memory area of element is a byte, and in the array, each element is corresponded with each byte in the structure.
Preferably, the memory area in the signal is present in the case of byte, corresponding each member of the signal In carrying suffix name, and the corresponding handling function of the signal, record has the signal each member corresponding with the signal The corresponding relation of the suffix name of carrying, wherein, ascending suffix name corresponding member is corresponding in turn to signal from low to high Effective byte.
A kind of signal operation processing meanss, including:
First acquisition unit, for receiving operation signal request, obtains signal entrained during the operation signal is asked And the corresponding signal numbering of the signal;
Second acquisition unit, for according to the default signal and the corresponding relation in signal storage domain, obtaining described The memory area of signal;
3rd acquiring unit, for numbering according to the signal, obtains the corresponding handling function of the signal;
Performance element, for performing the handling function, is carried out and the operation signal to the memory area of the signal Ask corresponding operation.
Preferably, including:
First sets up unit, for setting up the structure of signal place message, to complete to set up the signal and institute State the corresponding relation of the memory area of signal;
Wherein, the memory area of memory area of the signal in structure corresponding to corresponding member and the signal It is identical, signal original position and length according to the signal in the message of corresponding member in the structure It is determined that, and signal data length of corresponding member in structure is identical with the length of the signal.
Preferably, the second acquisition unit includes:
4th acquiring unit, for by the signal, the letter being obtained from the structure of signal place message Number member corresponding in structure;
5th acquiring unit, for obtaining memory area of the signal in structure corresponding to corresponding member, makees For the memory area of the signal.
Preferably, also include:
Reading unit, in the case of asking for write operation signal in operation signal request, is performing the behaviour Make function, the memory area of the signal is carried out, with after the operation signal corresponding operation of request, reading and the letter The content in memory area number corresponding to the corresponding array of place message, the memory area corresponding to the structure with it is described Memory area corresponding to array is identical;
Transmitting element, for the content for reading is sent;
Receiving unit, in the case of in operation signal request for read operation request signal, is receiving operation letter Before number request, signal place message is received, and by signal place packet storage in the memory block corresponding to array In domain;
Second sets up unit, and for setting up the association of signal place message, the member in the association includes Array and the structure, wherein the memory area corresponding to the array and the memory area phase corresponding to the structure Together, in the array the corresponding memory area of each element be a byte, each element and the structure in the array In each byte correspond.
Compared with prior art, the application has the beneficial effect that:
In this application, by receiving operation signal request, obtain in operation signal request entrained signal and The corresponding signal numbering of the signal;According to default signal and the corresponding relation in signal storage domain, the signal is obtained Memory area;Number according to the signal, obtain the corresponding handling function of the signal;The handling function is performed, to described The memory area of signal is carried out and the operation signal corresponding operation of request, realizes the process to signal operation request.
Signal place message and signal original position in messages and signal length are determined as ECU need not be performed again The memory area of message need not be determined again etc. information, it is not necessary to obtain the steps such as the initial address of the memory area of signal again, The time operated to signal by ECU is shortened, and then improves the real-time of ECU operations.Further, since need not store again Signal original position in messages and signal length, therefore reduce the EMS memory occupation in ECU.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present application, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for For those of ordinary skill in the art, without having to pay creative labor, can be obtaining which according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of a kind of flow chart of signal operation processing method that the application is provided;
Fig. 2 is a kind of a kind of sub-process figure of signal operation processing method that the application is provided;
Fig. 3 is a kind of a kind of structural representation of signal operation processing meanss that the application is provided;
Fig. 4 is a kind of a kind of structural representation of second acquisition unit that the application is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation is described, it is clear that described embodiment is only some embodiments of the present application, rather than the embodiment of whole.It is based on Embodiment in the application, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of the application protection.
The application provides a kind of signal operation processing method, including:Operation signal request is received, the operation signal is obtained The corresponding signal numbering of entrained signal and the signal in request;According to the default signal and signal storage domain Corresponding relation, obtains the memory area of the signal;Number according to the signal, obtain the corresponding handling function of the signal; The handling function is performed, the memory area of the signal is carried out and the operation signal corresponding operation of request.Below will Enumerate a kind of signal operation processing method that embodiment provides the application to be described in detail.
One embodiment
Fig. 1 is referred to, a kind of a kind of flow chart of signal operation processing method of the application offer is provided, can be wrapped Include following steps:
Step S11:Operation signal request is received, entrained signal and the signal in the operation signal request is obtained Corresponding signal numbering.
In the present embodiment, signal and the corresponding signal numbering of signal are carried in operation signal request.Wherein, signal is compiled Number to pre-set, the corresponding signal numbering of each signal is different.
Operation signal request includes write signal operation requests or read signal operation requests.
Step S12:According to default signal and the corresponding relation in signal storage domain, the memory block of the signal is obtained Domain.
In the present embodiment, signal has been pre-set with the corresponding relation in signal storage domain and has been completed, from operation signal Signal, and basis signal and the corresponding relation in signal storage domain are extracted in request, the memory area of signal is directly obtained.
Step S13:Number according to the signal, obtain the corresponding handling function of the signal.
In the present embodiment, each signal each corresponding a unique handling function, the corresponding operation of each signal The numbering of function is identical with the signal numbering of signal, and basis signal numbering can get the corresponding handling function of signal.
With the corresponding handling function of write operation signal request be write operation function, operation corresponding with read operation request signal Function is read operation function.
Step S14:The handling function is performed, the memory area of the signal is carried out asking right with the operation signal The operation answered.
In the present embodiment, corresponding operating function is performed, the memory area of signal can be carried out to ask with operation signal Corresponding operation.Specifically, in the case where operation signal request is asked for write operation signal, write operation function is performed, to letter Number memory area carry out and the write operation signal corresponding write operation of request;Or, asking to ask for read operation signal in operation signal In the case of asking, read operation function is performed, read operation corresponding with read operation request signal is carried out to the memory area of signal.
In this application, by receiving operation signal request, obtain in operation signal request entrained signal and The corresponding signal numbering of the signal;According to default signal and the corresponding relation in signal storage domain, the signal is obtained Memory area;Number according to the signal, obtain the corresponding handling function of the signal;The handling function is performed, to described The memory area of signal is carried out and the operation signal corresponding operation of request, realizes the process to signal operation request.
Signal place message and signal original position in messages and signal length are determined as ECU need not be performed again The memory area of message need not be determined again etc. information, it is not necessary to obtain the steps such as the initial address of the memory area of signal again, The time operated to signal by ECU is shortened, and then improves the real-time of ECU operations.Further, since need not store again Signal original position in messages and signal length, therefore reduce the EMS memory occupation in ECU.
In this application, signal can be by setting up signal place with the default foundation of the corresponding relation in signal storage domain The structure realization of message, the memory area corresponding to the structure of the signal place message set up and signal place message Memory area is identical.
Also, the memory area of memory area of the signal in structure corresponding to corresponding member and the signal It is identical, signal original position and length according to the signal in the message of corresponding member in the structure It is determined that, and signal data length of corresponding member in structure is identical with the length of the signal.Set up signal institute The corresponding relation of the memory area for completing to set up signal and signal in the structure of message.
The signal mistake that original position of the corresponding member's basis signal in the message and length determine in structure Journey may refer to following citing, for example:Signal place message is split as the data of 2 bytes, and signal place message includes three Individual signal, respectively signal A, signal B and signal C, signal A original positions in messages are 0bit, and length is 2bit, signal B original positions in messages are 2bit, and length is 7bit, and signal C original positions in messages are 9bit, and length is 7bit.Then the structure of signal place message includes four members, respectively member 1, member 2, member 3 and member 4, member 1 original position is 0bit, and data length is 2bit, and the original position of member 2 is 2bit, and data length is 6bit, member's 3 Original position is 8bit, and data length is 1bit, and the original position of member 4 is 9bit, and length is 7bit, then the correspondence of member 1 is believed Number A, member 2 and 3 couples of induction signal B, member 4 is to induction signal C.
Set up signal place message structure complete the memory area for setting up signal and signal corresponding relation original Because:It is due to there is member corresponding with the signal in the structure of the signal place message set up and corresponding with signal Member corresponding to memory area it is identical with the memory area of the signal, therefore, the structure of basis signal place message Signal corresponding member in structure is can determine that.Memory area of the signal in structure corresponding to corresponding member is The memory area of signal.
The mode of the structure for setting up signal place message is taken in this application, completes signal with signal storage domain The reason for corresponding relation, is, when signal is operated, first has to determine the memory area that signal is located, then to signal In the memory area at place, the content of signal is operated.Can more quickly determine that by the way of structure signal is located Memory area, to operate to signal faster, so as to greatly shorten times of the ECU to signal operation, and then improve ECU Real-time.
Further embodiment
In the present embodiment, based on above-mentioned signal and the preset procedures of the corresponding relation in signal storage domain, Fig. 1 is illustrated Signal operation processing method in the default signal of foundation and the signal storage domain corresponding relation, obtain signal The process of memory area be illustrated, refer to Fig. 2, Fig. 2 is illustrated that a kind of signal operation process side that the application is provided A kind of sub-process figure of method, may comprise steps of:
Step S21:By the signal, the signal is obtained from the structure of signal place message in structure In corresponding member.
Due to there is member corresponding with the signal in the structure of signal place message, therefore, by the signal, The signal corresponding member in structure can be determined from the structure of signal place message.It is determined that the signal exists After corresponding member in structure, to signal, in structure, corresponding member obtains.
Step S22:Memory area of the signal in structure corresponding to corresponding member is obtained, as the signal Memory area.
Getting signal in structure after corresponding member, as signal is in structure corresponding to corresponding member Memory area it is identical with the memory area of signal, therefore obtain memory block of the signal in structure corresponding to corresponding member Domain, as the memory area of signal.
In said method embodiment, operation signal request includes that write operation signal is asked or read operation request signal, and writes It is write operation function that operation signal asks corresponding handling function, and handling function corresponding with read operation request signal is read operation Function, when write operation signal request is received, to current ECU, the message of itself carries out write operation to needs, will carry out write operation Message afterwards is sent in other ECU, when read operation request signal is received, needs other ECU to receiving to send out Signal in the message brought carries out read operation.
After write operation being carried out to signal, need to send the message after write operation, read operation is being carried out to signal Before, need to receive the message that other ECU are sended over, received based on ECU and connect in units of byte when sending message The working method received and send, needs the memory area set up in units of byte.Due to the corresponding memory area of structure not That, in units of byte, but in units of member, and the length of member is general all unequal, and in structure member length Inequality is the length of whole byte, and e.g., the length of member is 2bit, therefore with byte during in order to meet ECU receptions and send message For the working method that unit is received and transmitted, need to set up in units of byte, different from the corresponding memory block of structure The memory area in domain.
As the data type of each element in array is identical, the memory area hence set up in units of byte can So that by setting up the corresponding memory area of array, the corresponding memory area of each element is a byte.
The corresponding memory area of array is set up process and can be:
The association of signal place message is set up, the member in the association includes array and the structure, Memory area corresponding to wherein described array is identical with the memory area corresponding to the structure, each unit in the array The corresponding memory area of element is a byte, and in the array, each element is corresponded with each byte in the structure.
Due to the corresponding memory area of structure it has been established that therefore by setting up the side of the association of signal place message Formula, sets up the corresponding memory area of array.Setting up association can make structure and array share a memory area.
Specifically, in the case where operation signal request is asked for write operation signal, in the execution handling function, The memory area of the signal is carried out, with after the operation signal corresponding operation of request, also including:
Step A11:The content in the memory area corresponding to array corresponding with signal place message is read, it is described Memory area corresponding to structure is identical with the memory area corresponding to the array.
Due to the memory area corresponding to array it is identical with the memory area corresponding to structure, therefore to signal knot After the content in memory area in structure body corresponding to corresponding member carries out write operation, in the memory area corresponding to structure Content it is identical with the content in the memory area corresponding to array.The working method of message is sent based on ECU, it is therefore desirable to logical The content crossed in the memory area corresponding to reading array.
Step A12:The content for reading is sent.
In the case where operation signal request is for read operation request signal, before operation signal request is received, also Including:
Signal place message is received, and by signal place packet storage in the memory area corresponding to array In.
As read signal operation requests are that the signal in the message that other ECU of current ECU to receiving are sended over enters Row read operation, therefore before read operation is carried out, need to receive signal place message, and the work side of message is received based on ECU Formula, by the signal place packet storage for receiving in the memory area corresponding to array.
In the signal place packet storage that will be received after the memory area corresponding to array, due to structure it is corresponding Memory area is identical with the corresponding memory area of array, therefore in read signal, can store signal place message In memory area corresponding to array, the memory area according to corresponding to signal corresponding member in structure, from array institute Relevant position read signal in corresponding memory area.
In said method embodiment, signal memory area in the case of byte, the structure of signal place message During in body, each member corresponding with signal carries suffix name, and the corresponding handling function of signal, record has signal and signal pair The corresponding relation of the suffix name that each member for answering carries.The corresponding handling function basis signal of signal it is corresponding with signal each The corresponding relation of the suffix name that member carries, carries out operating the storage side without the need for considering big end and small end to the memory area of signal Conversion between formula.
Said method embodiment can with but be not limited to based on AUTOSAR software architectures, it is real in the communication module in ECU It is existing.
For aforesaid each method embodiment, in order to be briefly described, therefore which is all expressed as a series of combination of actions, but It is that those skilled in the art should know, the application is not limited by described sequence of movement, because according to the application, certain A little steps can adopt other orders or while carry out.Secondly, those skilled in the art should also know, be retouched in description The embodiment stated belongs to preferred embodiment, necessary to involved action and module not necessarily the application.
Corresponding with said method embodiment, present invention also provides a kind of signal operation processing meanss, concrete structure please Referring to Fig. 3, Fig. 3 is illustrated that a kind of a kind of structural representation of signal operation processing meanss that the application is provided, signal operation Processing meanss include:
First acquisition unit 31, second acquisition unit 32, the 3rd acquiring unit 33 and performance element 34.Wherein:
First acquisition unit 31, for receiving operation signal request, obtains letter entrained during the operation signal is asked Number and the signal corresponding signal numbering.
Second acquisition unit 32, for according to the default signal and the corresponding relation in signal storage domain, obtaining institute State the memory area of signal.
In the present embodiment, signal and the corresponding relation in signal storage domain can by first set up unit carry out it is pre- If specifically, first sets up unit, for setting up the structure of signal place message, with complete to set up the signal with The corresponding relation of the memory area of the signal.Memory area corresponding to the structure of the signal place message set up and letter The memory area of number place message is identical.
Also, the memory area of memory area of the signal in structure corresponding to corresponding member and the signal It is identical, signal original position and length according to the signal in the message of corresponding member in the structure It is determined that, and signal data length of corresponding member in structure is identical with the length of the signal.
3rd acquiring unit 33, for numbering according to the signal, obtains the corresponding handling function of the signal.
Performance element 34, for performing the handling function, is carried out and the operation letter to the memory area of the signal Number corresponding operation of request.
Wherein, the concrete structure of second acquisition unit 32 may refer to Fig. 4, and Fig. 4 is illustrated that one kind that the application is provided A kind of structural representation of second acquisition unit, second acquisition unit include:4th acquiring unit 41 and the 5th acquiring unit 42. Wherein:
4th acquiring unit 41, for by the signal, obtaining described from the structure of signal place message Signal corresponding member in structure.
5th acquiring unit 42, for obtaining memory area of the signal in structure corresponding to corresponding member, As the memory area of the signal.
In said apparatus embodiment, signal operation processing meanss can also include:Reading unit, transmitting element, reception Unit and second sets up unit, wherein:
Reading unit, in the case of asking for write operation signal in operation signal request, is performing the behaviour Make function, the memory area of the signal is carried out, with after the operation signal corresponding operation of request, reading and the letter The content in memory area number corresponding to the corresponding array of place message, the memory area corresponding to the structure with it is described Memory area corresponding to array is identical.
Transmitting element, for the content for reading is sent.
Receiving unit, in the case of in operation signal request for read operation request signal, is receiving operation letter Before number request, signal place message is received, and by signal place packet storage in the memory block corresponding to array In domain.
Second sets up unit, the connection for setting up the memory area of array, specifically for setting up signal place message Zoarium, the member in the association include array and the structure, wherein the memory area and institute corresponding to the array The memory area stated corresponding to structure is identical, and in the array, the corresponding memory area of each element is a byte, described In array, each element is corresponded with each byte in the structure.
In said apparatus embodiment, first acquisition unit 31 can include the 6th acquiring unit, for receiving write operation Request signal, obtains entrained signal and the corresponding signal numbering of the signal in the write operation signal request.Certainly, One acquiring unit 31 can also include:7th acquiring unit, for receiving read operation request signal, obtains the read operation signal The corresponding signal numbering of entrained signal and the signal in request.
The signal operation processing meanss being related in said apparatus embodiment can by ECU communication module realize, certainly Can also be integrated in the communication module in ECU, realize the fast operating of the memory area to signal.
In the signal operation processing meanss that the application is provided, first acquisition unit is obtained by receiving operation signal request Take entrained signal and the corresponding signal numbering of the signal in the operation signal request;Second acquisition unit is according to default Signal and signal storage domain corresponding relation, obtain the memory area of the signal;3rd acquiring unit is according to the letter Number numbering, obtains the corresponding handling function of the signal;Performance element, performs the handling function, the storage to the signal Region is carried out and the operation signal corresponding operation of request.First acquisition unit, second acquisition unit, the 3rd acquiring unit and Performance element collaborative work, realizes the process to signal operation request.
During the process to signal operation request is realized by signal operation processing meanss, ECU need not be again Perform and determine that the information such as signal place message and signal original position in messages and signal length need not determine message again Memory area, it is not necessary to obtain the steps such as the initial address of the memory area of signal again, shorten ECU and signal is operated Time, and then improve ECU operation real-time.Further, since signal original position in messages need not be stored again And signal length, therefore reduce the EMS memory occupation in ECU.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to. For device class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, related part ginseng See the part explanation of embodiment of the method.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation are made a distinction with another entity or operation, and are not necessarily required or implied these entities or operation Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant are anticipated Covering including for nonexcludability, so that a series of process, method, article or equipment including key elements not only includes that A little key elements, but also including other key elements being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element for being limited by sentence "including a ...", does not arrange Except also there is other identical element in including the process of the key element, method, article or equipment.
Above a kind of signal operation processing method and processing device provided herein is described in detail, herein should The principle and embodiment of the application are set forth with specific case, the explanation of above example is only intended to help and manages Solution the present processes and its core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the application, Will change in specific embodiment and range of application, in sum, this specification content is should not be construed as to this Shen Restriction please.

Claims (7)

1. a kind of signal operation processing method, it is characterised in that include:
Operation signal request is received, entrained signal and the corresponding signal of the signal during the operation signal is asked is obtained and is compiled Number;
According to the default signal and the corresponding relation in signal storage domain, the memory area of the signal is obtained;
The signal is included with the preset procedures of the corresponding relation in signal storage domain:
The structure of signal place message is set up, it is corresponding with the memory area of the signal to complete to set up the signal Relation;
Wherein, the memory area phase of memory area of the signal in structure corresponding to corresponding member and the signal Together, the signal corresponding member original position and length according to the signal in the message in the structure is true It is fixed, and signal data length of corresponding member in structure is identical with the length of the signal;
Number according to the signal, obtain the corresponding handling function of the signal;
The handling function is performed, the memory area of the signal is carried out and the operation signal corresponding operation of request.
2. method according to claim 1, it is characterised in that described to store according to the default signal and the signal The corresponding relation in region, obtains the process of the memory area of the signal, including:
By the signal, obtain from the structure of the signal place message signal in structure it is corresponding into Member;
Memory area of the signal in structure corresponding to corresponding member is obtained, as the memory area of the signal.
3. method according to claim 2, it is characterised in that be write operation signal request in operation signal request In the case of, the handling function is being performed, the memory area of the signal is being carried out and the operation signal corresponding behaviour of request After work, also include:
Read the content in the memory area corresponding to corresponding with signal place message array, corresponding to the structure Memory area it is identical with the memory area corresponding to the array;
The content for reading is sent;
In the case where operation signal request is for read operation request signal, before operation signal request is received, also include:
Signal place message is received, and by signal place packet storage in the memory area corresponding to array;
Wherein, the process of setting up of the memory area corresponding to the array includes:
The association of signal place message is set up, the member in the association includes array and the structure, wherein Memory area corresponding to the array is identical with the memory area corresponding to the structure, each element pair in the array The memory area answered is a byte, and in the array, each element is corresponded with each byte in the structure.
4. the method according to claim 1-3 any one, it is characterised in that the memory area of the signal exist across In the case of byte, corresponding each member of the signal is remembered in carrying suffix name, and the corresponding handling function of the signal Record has the corresponding relation of the suffix name that the signal each member corresponding with the signal carries, wherein, it is ascending after Sew the corresponding member of name and be corresponding in turn to signal effective byte from low to high.
5. a kind of signal operation processing meanss, it is characterised in that include:
First sets up unit, for setting up the structure of signal place message, to complete to set up the signal with the letter Number memory area corresponding relation;
Wherein, the memory area phase of memory area of the signal in structure corresponding to corresponding member and the signal Together, the signal corresponding member original position and length according to the signal in the message in the structure is true It is fixed, and signal data length of corresponding member in structure is identical with the length of the signal;
First acquisition unit, for receiving operation signal request, obtains entrained signal and institute in the operation signal request State the corresponding signal numbering of signal;
Second acquisition unit, for according to the default signal and the corresponding relation in signal storage domain, obtaining the signal Memory area;
3rd acquiring unit, for numbering according to the signal, obtains the corresponding handling function of the signal;
Performance element, for performing the handling function, carries out asking with the operation signal to the memory area of the signal Corresponding operation.
6. device according to claim 5, it is characterised in that the second acquisition unit includes:
4th acquiring unit, for by the signal, the signal being obtained from the structure of signal place message and being existed Corresponding member in structure;
5th acquiring unit, for obtaining memory area of the signal in structure corresponding to corresponding member, as institute State the memory area of signal.
7. device according to claim 6, it is characterised in that also include:
Reading unit, in the case of asking for write operation signal in operation signal request, is performing the operation letter Number, carries out, with after the operation signal corresponding operation of request, reading and the signal institute to the memory area of the signal Content in the memory area corresponding to the corresponding array of message, the memory area corresponding to the structure and the array Corresponding memory area is identical;
Transmitting element, for the content for reading is sent;
Receiving unit, in the case of in operation signal request for read operation request signal, please operation signal is received Before asking, signal place message is received, and by signal place packet storage in the memory area corresponding to array;
Second sets up unit, and for setting up the association of signal place message, the member in the association includes array With the structure, wherein the memory area corresponding to the array is identical with the memory area corresponding to the structure, institute It is a byte to state the corresponding memory area of each element in array, in the array in each element and the structure each Byte is corresponded.
CN201310689255.9A 2013-12-16 2013-12-16 A kind of signal operation processing method and processing device Active CN103677834B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310689255.9A CN103677834B (en) 2013-12-16 2013-12-16 A kind of signal operation processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310689255.9A CN103677834B (en) 2013-12-16 2013-12-16 A kind of signal operation processing method and processing device

Publications (2)

Publication Number Publication Date
CN103677834A CN103677834A (en) 2014-03-26
CN103677834B true CN103677834B (en) 2017-04-05

Family

ID=50315501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310689255.9A Active CN103677834B (en) 2013-12-16 2013-12-16 A kind of signal operation processing method and processing device

Country Status (1)

Country Link
CN (1) CN103677834B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108471401A (en) * 2018-02-07 2018-08-31 山东省科学院自动化研究所 A kind of encapsulation of CAN signal, analysis method and device
CN109144416B (en) 2018-08-03 2020-04-28 华为技术有限公司 Method and device for querying data

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE60317723T2 (en) * 2003-08-11 2008-09-25 Hitachi, Ltd. Reading method, responder and reader
CN100566283C (en) * 2006-03-28 2009-12-02 腾讯科技(深圳)有限公司 A kind of long-range control method and system
CN101626431B (en) * 2009-08-12 2012-05-23 厦门敏讯信息技术股份有限公司 Processing method and processing system capable of adapting to communication mode

Also Published As

Publication number Publication date
CN103677834A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN110912836B (en) Method for forwarding data by forwarding device, control device, storage medium and system
JP2010272971A (en) Control system and method for rewriting control program
CN110457244B (en) Serial port communication mode conversion method, system and processor
CN104010005A (en) Method and system supporting access of sensors of different types
CN104021034A (en) Task processing method and system
CN103677834B (en) A kind of signal operation processing method and processing device
CN104050111A (en) Accessing different types of memory by respective commands with different timing requirements
CN102984055B (en) The soft reboot upgrade method of a kind of ISSU and equipment
JPS58225422A (en) Data controller
KR102089629B1 (en) Method for processing data and an electronic device thereof
JP5058191B2 (en) VPN control device, VPN connection device, VPN setting method, and program
CN112073505A (en) Method for unloading on cloud server, control device and storage medium
CN103167022B (en) A kind of data pack transmission method, relevant device and system
CN103246618B (en) Based on implementation method and the device of the USB function of embedded system
CN111741075A (en) Communication connection method, vehicle remote connection system and connection equipment
CN104834292A (en) Nuclear-biological-chemical monitoring data synchronization method
CN108803582A (en) A kind of bus automatic switchover system and method suitable for remote fault diagnosis
CN110147344B (en) Method, apparatus, storage medium, and system for communicating between multiple physical machines
CN103544980B (en) A kind of recording channel data acquisition circuit and multimedia chip
CN104426566A (en) Data transceiving system and data transceiving method
CN112765915B (en) Communication port connection method, terminal and storage medium
CN114503041B (en) Vehicle diagnosis method, diagnosis connector and diagnosis device
JP2005051507A (en) Communication system and address setup method therefor
CN117579664A (en) Communication method, communication device and remote diagnosis system
CN115848163A (en) Motor torque control method, motor torque control device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 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
CP03 Change of name, title or address

Address after: 4 / F, building 1, No.14 Jiuxianqiao Road, Chaoyang District, Beijing 100020

Patentee after: Beijing Jingwei Hirain Technologies Co.,Inc.

Address before: 8 / F, block B, No. 11, Anxiang Beili, Chaoyang District, Beijing 100101

Patentee before: Beijing Jingwei HiRain Technologies Co.,Ltd.