CN103677834A - Signal operating and processing method and device - Google Patents
Signal operating and processing method and device Download PDFInfo
- Publication number
- CN103677834A CN103677834A CN201310689255.9A CN201310689255A CN103677834A CN 103677834 A CN103677834 A CN 103677834A CN 201310689255 A CN201310689255 A CN 201310689255A CN 103677834 A CN103677834 A CN 103677834A
- Authority
- CN
- China
- Prior art keywords
- signal
- storage area
- described signal
- request
- array
- 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
Links
- 238000011017 operating method Methods 0.000 title abstract 3
- 238000003672 processing method Methods 0.000 title abstract 3
- 238000000034 method Methods 0.000 claims abstract description 40
- 230000001174 ascending effect Effects 0.000 claims description 2
- 230000006870 function Effects 0.000 abstract description 39
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000003137 locomotive effect Effects 0.000 description 1
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a signal operating and processing method and device. The method includes the steps of receiving an operating signal request, obtaining signals carried in the operating signal request and signal serial numbers corresponding to the signals, obtaining a storage region of the signals according to a preset corresponding relation of the signals and the storage region of the signals, obtaining an operation function corresponding to the signals according to the signal serial numbers, executing the operation function, and conducting operation corresponding to the operating signal request on the storage region of the signals. According to the signal operating and processing method and device, the ECU operation instantaneity is improved, and memory usage in an ECU is reduced.
Description
Technical field
The application relates to ECU(Electronic Control Unit in locomotive industry, electronic control unit) Software for Design field, particularly a kind of signal operation disposal route and device.
Background technology
In current automotive field, each ECU(Electronic Control Unit, electronic control unit) between by sending and receiving message, realize communication, wherein, message is comprised of a plurality of signals.Automobile is before dispatching from the factory, and the message that each ECU need to receive and send is fixed, and the storage space of each message has been assigned with.
At present, when the communication module in ECU operates signal, first to receive signal operation request, secondly according to system configuration input file, determine the information such as reference position in message of signal place message and signal and signal length, and the storage area of definite message, then the reference position in message according to signal, obtain the start address of the storage area of signal, and according to the length of signal, obtain the size of the storage area of signal, the size in the start address of the storage area of basis signal and signal storage region, from the storage area of message, obtain the storage area of signal, finally the storage area of signal is operated.Because the execution step that the communication module in current ECU operates signal is too much, so ECU processes in the situation of a plurality of signal operation requests at the same time, increased the running load of ECU, reduced the real-time of ECU operation.
And the communication module in ECU is in processing signals operation requests process, can be by the signal getting the reference position in message and signal length be stored in ECU internal memory, cause in the situation that processing a plurality of signal operation request, the internal memory taking in ECU is larger.
Therefore, when the communication module in ECU operates signal at present, exist and reduce the real-time of ECU operation and take the larger shortcoming of internal memory in ECU.
Summary of the invention
For solving the problems of the technologies described above, the embodiment of the present application provides a kind of signal operation disposal route and device, and to reach the real-time that improves ECU operation and the object that reduces the EMS memory occupation in ECU, technical scheme is as follows:
A signal operation disposal route, comprising:
Receive operation signal request, obtain the signal numbering that signal entrained in described operation signal request and described signal are corresponding;
According to default described signal and the corresponding relation in signal storage region, obtain the storage area of described signal;
According to described signal numbering, obtain the handling function that described signal is corresponding;
Carry out described handling function, the storage area of described signal is carried out to the operation corresponding with described operation signal request.
Preferably, the preset procedures of the corresponding relation in described signal and signal storage region comprises:
Set up the structure of described signal place message, to complete the corresponding relation of the storage area of setting up described signal and described signal;
Wherein, described signal corresponding storage area of member of correspondence in structure is identical with the storage area of described signal, reference position and the length of the described signal of member's foundation of described signal correspondence in described structure in described message is determined, and member's the data length of described signal correspondence in structure is identical with the length of described signal.
Preferably, the described signal that described foundation is default and the corresponding relation in described signal storage region, obtain the process of the storage area of described signal, comprising:
By described signal, from the structure of described signal place message, obtain the member of described signal correspondence in structure;
Obtain the corresponding storage area of member of described signal correspondence in structure, as the storage area of described signal.
Preferably, in the situation that described operation signal request is write operation signal request, carrying out described handling function, after the storage area of described signal is carried out to the operation corresponding with described operation signal request, also comprising:
Read the content in the corresponding storage area of array corresponding with described signal place message, the corresponding storage area of described structure is identical with the corresponding storage area of described array;
The content reading is sent;
In the situation that described operation signal request is read operation request signal, before receiving operation signal request, also comprise:
Receive described signal place message, and by described signal place packet storage in the corresponding storage area of array;
Wherein, the process of establishing of the corresponding storage area of described array comprises:
Set up the association of described signal place message, member in described association comprises array and described structure, the corresponding storage area of wherein said array is identical with the corresponding storage area of described structure, the storage area that in described array, each element is corresponding is a byte, and in described array, each element is corresponding one by one with each byte in described structure.
Preferably, in the situation that the storage area of described signal exists across byte, each member that described signal is corresponding carries suffix name, and in handling function corresponding to described signal, record the corresponding relation of the suffix name that each member that described signal is corresponding with described signal carries, wherein, the member of ascending suffix name correspondence respective signal effective byte from low to high successively.
A signal operation treating apparatus, comprising:
The first acquiring unit, for receiving operation signal request, obtains the signal numbering that signal entrained in described operation signal request and described signal are corresponding;
Second acquisition unit, for the described signal according to default and the corresponding relation in signal storage region, obtains the storage area of described signal;
The 3rd acquiring unit, for according to described signal numbering, obtains the handling function that described signal is corresponding;
Performance element, for carrying out described handling function, carries out the operation corresponding with described operation signal request to the storage area of described signal.
Preferably, comprising:
First sets up unit, for setting up the structure of described signal place message, to complete the corresponding relation of the storage area of setting up described signal and described signal;
Wherein, described signal corresponding storage area of member of correspondence in structure is identical with the storage area of described signal, reference position and the length of the described signal of member's foundation of described signal correspondence in described structure in described message is determined, and member's the data length of described signal correspondence in structure is identical with the length of described signal.
Preferably, described second acquisition unit comprises:
The 4th acquiring unit for by described signal, obtains the member of described signal correspondence in structure from the structure of described signal place message;
The 5th acquiring unit, for obtaining described signal at the corresponding storage area of member corresponding to structure, as the storage area of described signal.
Preferably, also comprise:
Reading unit, for in the situation that described operation signal request is write operation signal request, carrying out described handling function, after the storage area of described signal is carried out to the operation corresponding with described operation signal request, read the content in the corresponding storage area of array corresponding with described signal place message, the corresponding storage area of described structure is identical with the corresponding storage area of described array;
Transmitting element, for sending the content reading;
Receiving element, in the situation that described operation signal request is read operation request signal, before receiving operation signal request, receives described signal place message, and by described signal place packet storage in the corresponding storage area of array;
Second sets up unit, for setting up the association of described signal place message, member in described association comprises array and described structure, the corresponding storage area of wherein said array is identical with the corresponding storage area of described structure, the storage area that in described array, each element is corresponding is a byte, and in described array, each element is corresponding one by one with each byte in described structure.
Compared with prior art, the application's beneficial effect is:
In this application, by receiving operation signal request, obtain the signal numbering that signal entrained in described operation signal request and described signal are corresponding; According to default signal and the corresponding relation in signal storage region, obtain the storage area of described signal; According to described signal numbering, obtain the handling function that described signal is corresponding; Carry out described handling function, the storage area of described signal is carried out to the operation corresponding with described operation signal request, realized the processing to signal operation request.
Because not needing to carry out again, ECU do not determine that the information such as reference position in message of signal place message and signal and signal length do not need to determine the storage area of message again, do not need to obtain again the steps such as start address of the storage area of signal, shorten the time that ECU operates signal, and then improved the real-time of ECU operation.In addition,, due to the reference position that does not need again storage signal in message and signal length, therefore reduced the EMS memory occupation in ECU.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present application, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiment of the application, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is a kind of process flow diagram of a kind of signal operation disposal route of providing of the application;
Fig. 2 is a kind of sub-process figure of a kind of signal operation disposal route of providing of the application;
Fig. 3 is a kind of structural representation of a kind of signal operation treating apparatus of providing of the application;
Fig. 4 is a kind of structural representation of a kind of second acquisition unit of providing of the application.
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 clearly and completely described, obviously, described embodiment is only the application's part embodiment, rather than whole embodiment.Embodiment based in the application, those of ordinary skills are not making the every other embodiment obtaining under creative work prerequisite, all belong to the scope of the application's protection.
The application provides a kind of signal operation disposal route, comprising: receive operation signal request, obtain the signal numbering that signal entrained in described operation signal request and described signal are corresponding; According to default described signal and the corresponding relation in signal storage region, obtain the storage area of described signal; According to described signal numbering, obtain the handling function that described signal is corresponding; Carry out described handling function, the storage area of described signal is carried out to the operation corresponding with described operation signal request.Below a kind of signal operation disposal route of enumerating embodiment the application being provided is elaborated.
An embodiment
Refer to Fig. 1, a kind of process flow diagram that it shows a kind of signal operation disposal route that the application provides, can comprise the following steps:
Step S11: receive operation signal request, obtain the signal numbering that signal entrained in described operation signal request and described signal are corresponding.
In the present embodiment, in operation signal request, carry the signal numbering that signal and signal are corresponding.Wherein, signal is numbered and sets in advance, and the signal numbering that each signal is corresponding is all different.
Operation signal request comprises write signal operation requests or read signal operation requests.
Step S12: according to default signal and the corresponding relation in signal storage region, obtain the storage area of described signal.
In the present embodiment, the corresponding relation in signal and signal storage region has set in advance, and from operation signal request, extracts signal, and the corresponding relation in basis signal and signal storage region, directly gets the storage area of signal.
Step S13: according to described signal numbering, obtain the handling function that described signal is corresponding.
In the present embodiment, each signal is corresponding a unique handling function separately, and the numbering of the handling function that each signal is corresponding is identical with the signal of signal numbering, and basis signal is numbered can get the handling function that signal is corresponding.
The handling function corresponding with write operation signal request is write operation function, and the handling function corresponding with read operation request signal is read operation function.
Step S14: carry out described handling function, the storage area of described signal is carried out to the operation corresponding with described operation signal request.
In the present embodiment, carry out corresponding operating function, can carry out the operation corresponding with operation signal request to the storage area of signal.Concrete, in the situation that operation signal request is write operation signal request, carry out write operation function, the storage area of signal is carried out to the write operation corresponding with write operation signal request; Or, in the situation that operation signal request is read operation request signal, carry out read operation function, the storage area of signal is carried out to the read operation corresponding with read operation request signal.
In this application, by receiving operation signal request, obtain the signal numbering that signal entrained in described operation signal request and described signal are corresponding; According to default signal and the corresponding relation in signal storage region, obtain the storage area of described signal; According to described signal numbering, obtain the handling function that described signal is corresponding; Carry out described handling function, the storage area of described signal is carried out to the operation corresponding with described operation signal request, realized the processing to signal operation request.
Because not needing to carry out again, ECU do not determine that the information such as reference position in message of signal place message and signal and signal length do not need to determine the storage area of message again, do not need to obtain again the steps such as start address of the storage area of signal, shorten the time that ECU operates signal, and then improved the real-time of ECU operation.In addition,, due to the reference position that does not need again storage signal in message and signal length, therefore reduced the EMS memory occupation in ECU.
In this application, the default foundation of the corresponding relation in signal and signal storage region can realize by setting up the structure of signal place message, and the corresponding storage area of structure of the signal place message of setting up is identical with the storage area of signal place message.
And, described signal corresponding storage area of member of correspondence in structure is identical with the storage area of described signal, reference position and the length of the described signal of member's foundation of described signal correspondence in described structure in described message is determined, and member's the data length of described signal correspondence in structure is identical with the length of described signal.The structure of setting up signal place message completes the corresponding relation of the storage area of setting up signal and signal.
Reference position and the length definite process of member's basis signal of signal correspondence in structure in described message can be referring to for example following, for example: signal place message is split as the data of 2 bytes, signal place message comprises three signals, be respectively signal A, signal B and signal C, the reference position of signal A in message is 0bit, length is 2bit, the reference position of signal B in message is 2bit, length is 7bit, the reference position of signal C in message is 9bit, and length is 7bit.The structure of signal place message comprises four members, is respectively member 1, member 2, member 3 and member 4, and member 1 reference position is 0bit, data length is 2bit, member 2 reference position is 2bit, and data length is 6bit, and member 3 reference position is 8bit, data length is 1bit, member 4 reference position is 9bit, and length is 7bit, member 1 respective signal A, member 2 and 3 respective signal B, member 4 respective signal C.
The structure of setting up signal place message complete set up signal and the storage area of signal corresponding relation former because: owing to there being the member corresponding with described signal in the structure of set up signal place message, and the storage area of the corresponding storage area of the member corresponding with signal and described signal is identical, therefore, the structure of basis signal place message can be determined the member of signal correspondence in structure.Signal corresponding corresponding storage area of member in structure is the storage area of signal.
Take in this application to set up the mode of the structure of signal place message, the reason of the corresponding relation in settling signal and signal storage region is, when signal is operated, first to determine the storage area at signal place, then the content of signal in the storage area at signal place be operated.Adopt the mode of structure to determine more fast the storage area at signal place, faster signal is operated, thereby greatly shorten the time of ECU to signal operation, and then improve the real-time of ECU.
Another embodiment
In the present embodiment, the preset procedures of the corresponding relation based on above-mentioned signal and signal storage region, to in the signal operation disposal route shown in Fig. 1 according to default described signal and the corresponding relation in described signal storage region, obtaining the process of the storage area of signal sets forth, refer to Fig. 2, shown in Fig. 2 is a kind of sub-process figure of a kind of signal operation disposal route of providing of the application, can comprise the following steps:
Step S21: by described signal, obtain the member of described signal correspondence in structure from the structure of described signal place message.
Owing to there is the member corresponding with described signal in the structure of signal place message, therefore, by described signal, can from the structure of signal place message, determine the member of described signal correspondence in structure.After determining the corresponding member of described signal in structure, to signal, corresponding member in structure obtains.
Step S22: obtain the corresponding storage area of member of described signal correspondence in structure, as the storage area of described signal.
After getting the member of signal correspondence in structure, because signal corresponding storage area of member of correspondence in structure is identical with the storage area of signal, therefore obtain the corresponding storage area of member of signal correspondence in structure, signal storage area.
In said method embodiment, operation signal request comprises write operation signal request or read operation request signal, the handling function corresponding with write operation signal request is write operation function, the handling function corresponding with read operation request signal is read operation function, when receiving write operation signal request, need to carry out write operation to the message of current ECU itself, by carrying out message after write operation, send in other ECU and go, when receiving read operation request signal, the signal in the message that need to send over other ECU that receive carries out read operation.
Signal is being carried out after write operation, message after write operation need to be sent, before signal is carried out to read operation, need to receive the message that other ECU send over, the working method that the byte of take when receiving and sending message based on ECU receives and sends as unit, needs to set up and take the storage area that byte is unit.Because storage area corresponding to structure is not to take byte as unit, but take member as unit, and member's length is generally all unequal, and in structure, member's length inequality is the length of whole byte, as, therefore member's length is 2bit, take the working method that byte receives and send as unit in order to meet when ECU receives and sends message, need to set up and take byte as unit, be different from the storage area of the storage area that structure is corresponding.
Because the data type of each element in array is identical, therefore set up take the storage area that byte is unit can be by setting up storage area corresponding to array, the storage area that each element is corresponding is a byte.
The process of establishing of the storage area that array is corresponding can be:
Set up the association of described signal place message, member in described association comprises array and described structure, the corresponding storage area of wherein said array is identical with the corresponding storage area of described structure, the storage area that in described array, each element is corresponding is a byte, and in described array, each element is corresponding one by one with each byte in described structure.
Because the storage area that structure is corresponding is set up, therefore by setting up the mode of the association of signal place message, set up storage area corresponding to array.Setting up association can make structure and array share a storage area.
Concrete, in the situation that described operation signal request is write operation signal request, carrying out described handling function, after the storage area of described signal is carried out to the operation corresponding with described operation signal request, also comprise:
Steps A 11: read the content in the corresponding storage area of array corresponding with described signal place message, the corresponding storage area of described structure is identical with the corresponding storage area of described array.
Because the corresponding storage area of array is identical with the corresponding storage area of structure, therefore the content in the corresponding storage area of member of signal correspondence in structure is being carried out after write operation, the content in the corresponding storage area of structure is identical with the content in the corresponding storage area of array.Based on ECU, send the working method of message, therefore need to be by reading the content in the corresponding storage area of array.
Steps A 12: the content reading is sent.
In the situation that described operation signal request is read operation request signal, before receiving operation signal request, also comprise:
Receive described signal place message, and by described signal place packet storage in the corresponding storage area of array.
Because read signal operation requests is that signal in current ECU message that other ECU that receive are sended over carries out read operation, therefore before carrying out read operation, need to receive signal place message, and based on ECU, receive the working method of message, by the signal place packet storage receiving in the corresponding storage area of array.
By the signal place packet storage receiving after the corresponding storage area of array, the storage area corresponding with array due to storage area corresponding to structure is identical, therefore when read signal, can be in having stored the corresponding storage area of array of signal place message, according to the corresponding storage area of member of signal correspondence in structure, the relevant position read signal from the corresponding storage area of array.
In said method embodiment, in the situation that the storage area of signal is across byte, each member corresponding with signal in the structure of signal place message carries suffix name, and in handling function corresponding to signal, records the corresponding relation of the suffix name that each member that signal is corresponding with signal carries.The corresponding relation of the suffix name that handling function basis signal each member corresponding with signal that signal is corresponding carries, operates without the conversion of considering between large end and the storage mode of small end the storage area of signal.
Said method embodiment can but be not limited to the software architecture based on AUTOSAR, in the communication module in ECU, realize.
For aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the application is not subject to the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
Embodiment is corresponding with said method, and the application also provides a kind of signal operation treating apparatus, and concrete structure refers to Fig. 3, and shown in Fig. 3 is a kind of structural representation of a kind of signal operation treating apparatus of providing of the application, and signal operation treating apparatus comprises:
The first acquiring unit 31, second acquisition unit 32, the 3rd acquiring unit 33 and performance element 34.Wherein:
The first acquiring unit 31, for receiving operation signal request, obtains the signal numbering that signal entrained in described operation signal request and described signal are corresponding.
In the present embodiment, the corresponding relation in signal and signal storage region can be set up unit by first and preset, and concrete, first sets up unit, for setting up the structure of described signal place message, to complete the corresponding relation of the storage area of setting up described signal and described signal.The corresponding storage area of structure of the signal place message of setting up is identical with the storage area of signal place message.
And, described signal corresponding storage area of member of correspondence in structure is identical with the storage area of described signal, reference position and the length of the described signal of member's foundation of described signal correspondence in described structure in described message is determined, and member's the data length of described signal correspondence in structure is identical with the length of described signal.
The 3rd acquiring unit 33, for according to described signal numbering, obtains the handling function that described signal is corresponding.
Wherein, the concrete structure of second acquisition unit 32 can be referring to Fig. 4, and shown in Fig. 4 is a kind of structural representation of a kind of second acquisition unit of providing of the application, and second acquisition unit comprises: the 4th acquiring unit 41 and the 5th acquiring unit 42.Wherein:
The 4th acquiring unit 41 for by described signal, obtains the member of described signal correspondence in structure from the structure of described signal place message.
The 5th acquiring unit 42, for obtaining described signal at the corresponding storage area of member corresponding to structure, as the storage area of described signal.
In said apparatus embodiment, signal operation treating apparatus can also comprise: reading unit, transmitting element, receiving element and second are set up unit, wherein:
Reading unit, for in the situation that described operation signal request is write operation signal request, carrying out described handling function, after the storage area of described signal is carried out to the operation corresponding with described operation signal request, read the content in the corresponding storage area of array corresponding with described signal place message, the corresponding storage area of described structure is identical with the corresponding storage area of described array.
Transmitting element, for sending the content reading.
Receiving element, in the situation that described operation signal request is read operation request signal, before receiving operation signal request, receives described signal place message, and by described signal place packet storage in the corresponding storage area of array.
Second sets up unit, for setting up the storage area of array, specifically for setting up the association of described signal place message, member in described association comprises array and described structure, the corresponding storage area of wherein said array is identical with the corresponding storage area of described structure, the storage area that in described array, each element is corresponding is a byte, and in described array, each element is corresponding one by one with each byte in described structure.
In said apparatus embodiment, the first acquiring unit 31 can comprise the 6th acquiring unit, for receiving write operation signal request, obtains the signal numbering that signal entrained in described write operation signal request and described signal are corresponding.Certainly, the first acquiring unit 31 can also comprise: the 7th acquiring unit, for receiving read operation request signal, obtains the signal numbering that signal entrained in described read operation request signal and described signal are corresponding.
The signal operation treating apparatus relating in said apparatus embodiment can the communication module in ECU be realized, and can certainly be integrated in the communication module in ECU, realizes the fast operating to the storage area of signal.
In the signal operation treating apparatus providing in the application, the first acquiring unit, by receiving operation signal request, obtains the signal numbering that signal entrained in described operation signal request and described signal are corresponding; Second acquisition unit, according to default signal and the corresponding relation in signal storage region, obtains the storage area of described signal; The 3rd acquiring unit, according to described signal numbering, obtains the handling function that described signal is corresponding; Performance element, carries out described handling function, and the storage area of described signal is carried out to the operation corresponding with described operation signal request.The first acquiring unit, second acquisition unit, the 3rd acquiring unit and performance element collaborative work, realized the processing to signal operation request.
Owing to realizing in the process of the processing of signal operation request by signal operation treating apparatus, ECU does not need to carry out again and determines that the information such as reference position in message of signal place message and signal and signal length do not need to determine the storage area of message again, do not need to obtain again the steps such as start address of the storage area of signal, shorten the time that ECU operates signal, and then improved the real-time of ECU operation.In addition,, due to the reference position that does not need again storage signal in message and signal length, therefore reduced the EMS memory occupation in ECU.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
A kind of signal operation disposal route and the device that above the application are provided are described in detail, applied specific case herein the application's principle and embodiment are set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; Meanwhile, for one of ordinary skill in the art, the thought according to the application, all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.
Claims (9)
1. a signal operation disposal route, is characterized in that, comprising:
Receive operation signal request, obtain the signal numbering that signal entrained in described operation signal request and described signal are corresponding;
According to default described signal and the corresponding relation in signal storage region, obtain the storage area of described signal;
According to described signal numbering, obtain the handling function that described signal is corresponding;
Carry out described handling function, the storage area of described signal is carried out to the operation corresponding with described operation signal request.
2. method according to claim 1, is characterized in that, the preset procedures of the corresponding relation in described signal and signal storage region comprises:
Set up the structure of described signal place message, to complete the corresponding relation of the storage area of setting up described signal and described signal;
Wherein, described signal corresponding storage area of member of correspondence in structure is identical with the storage area of described signal, reference position and the length of the described signal of member's foundation of described signal correspondence in described structure in described message is determined, and member's the data length of described signal correspondence in structure is identical with the length of described signal.
3. method according to claim 2, is characterized in that, the described signal that described foundation is default and the corresponding relation in described signal storage region obtain the process of the storage area of described signal, comprising:
By described signal, from the structure of described signal place message, obtain the member of described signal correspondence in structure;
Obtain the corresponding storage area of member of described signal correspondence in structure, as the storage area of described signal.
4. method according to claim 3, it is characterized in that, in the situation that described operation signal request is write operation signal request, carrying out described handling function, after the storage area of described signal is carried out to the operation corresponding with described operation signal request, also comprise:
Read the content in the corresponding storage area of array corresponding with described signal place message, the corresponding storage area of described structure is identical with the corresponding storage area of described array;
The content reading is sent;
In the situation that described operation signal request is read operation request signal, before receiving operation signal request, also comprise:
Receive described signal place message, and by described signal place packet storage in the corresponding storage area of array;
Wherein, the process of establishing of the corresponding storage area of described array comprises:
Set up the association of described signal place message, member in described association comprises array and described structure, the corresponding storage area of wherein said array is identical with the corresponding storage area of described structure, the storage area that in described array, each element is corresponding is a byte, and in described array, each element is corresponding one by one with each byte in described structure.
5. according to the method described in claim 1-4 any one, it is characterized in that, in the situation that the storage area of described signal exists across byte, each member that described signal is corresponding carries suffix name, and in handling function corresponding to described signal, record the corresponding relation of the suffix name that each member that described signal is corresponding with described signal carries, wherein, the member of ascending suffix name correspondence respective signal effective byte from low to high successively.
6. a signal operation treating apparatus, is characterized in that, comprising:
The first acquiring unit, for receiving operation signal request, obtains the signal numbering that signal entrained in described operation signal request and described signal are corresponding;
Second acquisition unit, for the described signal according to default and the corresponding relation in signal storage region, obtains the storage area of described signal;
The 3rd acquiring unit, for according to described signal numbering, obtains the handling function that described signal is corresponding;
Performance element, for carrying out described handling function, carries out the operation corresponding with described operation signal request to the storage area of described signal.
7. device according to claim 6, is characterized in that, comprising:
First sets up unit, for setting up the structure of described signal place message, to complete the corresponding relation of the storage area of setting up described signal and described signal;
Wherein, described signal corresponding storage area of member of correspondence in structure is identical with the storage area of described signal, reference position and the length of the described signal of member's foundation of described signal correspondence in described structure in described message is determined, and member's the data length of described signal correspondence in structure is identical with the length of described signal.
8. device according to claim 7, is characterized in that, described second acquisition unit comprises:
The 4th acquiring unit for by described signal, obtains the member of described signal correspondence in structure from the structure of described signal place message;
The 5th acquiring unit, for obtaining described signal at the corresponding storage area of member corresponding to structure, as the storage area of described signal.
9. device according to claim 8, is characterized in that, also comprises:
Reading unit, for in the situation that described operation signal request is write operation signal request, carrying out described handling function, after the storage area of described signal is carried out to the operation corresponding with described operation signal request, read the content in the corresponding storage area of array corresponding with described signal place message, the corresponding storage area of described structure is identical with the corresponding storage area of described array;
Transmitting element, for sending the content reading;
Receiving element, in the situation that described operation signal request is read operation request signal, before receiving operation signal request, receives described signal place message, and by described signal place packet storage in the corresponding storage area of array;
Second sets up unit, for setting up the association of described signal place message, member in described association comprises array and described structure, the corresponding storage area of wherein said array is identical with the corresponding storage area of described structure, the storage area that in described array, each element is corresponding is a byte, and in described array, each element is corresponding one by one with each byte in described structure.
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 true CN103677834A (en) | 2014-03-26 |
CN103677834B 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) |
Cited By (2)
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 |
CN109144416A (en) * | 2018-08-03 | 2019-01-04 | 华为技术有限公司 | The method and apparatus for inquiring data |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101047605A (en) * | 2006-03-28 | 2007-10-03 | 腾讯科技(深圳)有限公司 | Remote control method and system |
US7508296B2 (en) * | 2003-08-11 | 2009-03-24 | Hitachi, Ltd. | Reading method, responder, and interrogator |
CN101626431A (en) * | 2009-08-12 | 2010-01-13 | 厦门敏讯信息技术股份有限公司 | Processing method and processing system capable of adapting to communication mode |
-
2013
- 2013-12-16 CN CN201310689255.9A patent/CN103677834B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7508296B2 (en) * | 2003-08-11 | 2009-03-24 | Hitachi, Ltd. | Reading method, responder, and interrogator |
CN101047605A (en) * | 2006-03-28 | 2007-10-03 | 腾讯科技(深圳)有限公司 | Remote control method and system |
CN101626431A (en) * | 2009-08-12 | 2010-01-13 | 厦门敏讯信息技术股份有限公司 | Processing method and processing system capable of adapting to communication mode |
Cited By (3)
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 |
CN109144416A (en) * | 2018-08-03 | 2019-01-04 | 华为技术有限公司 | The method and apparatus for inquiring data |
US11579986B2 (en) | 2018-08-03 | 2023-02-14 | Huawei Cloud Computing Technologies Co., Ltd. | Data query method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN103677834B (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9967222B2 (en) | Method and device for managing shared memory in robot operating system | |
CN111581563B (en) | Page response method and device, storage medium and electronic equipment | |
CN109194736B (en) | Message duplicate removal method and device, electronic equipment, medium and unmanned vehicle | |
CN110912836B (en) | Method for forwarding data by forwarding device, control device, storage medium and system | |
US10212236B2 (en) | Information transmitting method and apparatus in robot operating system | |
CN104021034A (en) | Task processing method and system | |
CN103605359A (en) | Automobile diagnostic system and method | |
CN107682441B (en) | Remote control method, mobile terminal and PC (personal computer) terminal | |
CN112732982A (en) | Fault code storage method and device, terminal equipment and readable storage medium | |
CN110913362B (en) | Method and device for realizing wireless signal test through client and test equipment | |
CN115277882B (en) | CAN message database establishment method and device, vehicle-mounted electronic equipment and storage medium | |
CN102255687A (en) | Rate matching method and device thereof | |
CN113168314A (en) | Update management device, update management system, and update management method | |
CN116668402A (en) | Intelligent cloud box access method, device, equipment and storage medium | |
CN113177015B (en) | Frame header-based serial port communication method and serial port chip | |
CN103677834A (en) | Signal operating and processing method and device | |
CN111416722B (en) | Communication method and device | |
CN109992197B (en) | Data reading and writing method and device, electronic equipment and storage medium | |
CN115134427B (en) | Communication protocol coordination method, device, computer equipment and storage medium | |
CN103646439B (en) | A kind of method for inspecting and system possessing interactive function | |
CN115442233A (en) | ECU upgrading method and device, electronic equipment, storage medium and vehicle | |
CN115102992A (en) | Data distribution method and device, electronic equipment and computer readable medium | |
CN112311458B (en) | Signal transmission method, device, equipment and system | |
CN104516740A (en) | Function calling method and device and mobile terminal | |
CN109067631B (en) | Multi-node automobile electric control method based on real-time Ethernet communication protocol architecture |
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 |
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. |
|
CP03 | Change of name, title or address |