CN101674243A - Message transmitting method based on analog communication chip technology - Google Patents
Message transmitting method based on analog communication chip technology Download PDFInfo
- Publication number
- CN101674243A CN101674243A CN200910189991A CN200910189991A CN101674243A CN 101674243 A CN101674243 A CN 101674243A CN 200910189991 A CN200910189991 A CN 200910189991A CN 200910189991 A CN200910189991 A CN 200910189991A CN 101674243 A CN101674243 A CN 101674243A
- Authority
- CN
- China
- Prior art keywords
- message
- communication chip
- processing units
- processing
- logic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a message transmitting method based on an analog communication chip technology, solving the technical problem for uniformly processing the message with different types by providing a complete set of process logic and transmitting logic. The technical scheme comprises the steps of: setting a special process unit for uniformly transmitting the message on an object plate; memorizing message types which are allowed to be received by a communication chip and communication protocols correlative to the message of the type into a special memory unit which is matched with the special process unit by a CPU; processing the transmitting message by calling the transmitting process logic and allocation which are as the same as the communication chip with a match process software;after processing, returning the message from the special process unit to the communication chip to be processed by means of terminal output; and transmitting the communication chip. The method has the advantages of clear and simple software logic, low procedure complexity, fast software developing speed, and good economic benefit.
Description
Technical field
The present invention relates to the hardware chip simulation softward technology of digital communicating field, can simulate the processing procedure of the communication chip on the embedded communication equipment by enough software, wherein relate to a kind of message forwarding method based on analog communication chip technology, on Target Board, dissimilar messages is carried out unified processing, processing logic and forwarding logic are separated, and can improve modularization, intelligibility and the reliability of communication software.
Background technology
At communication technical field, often require communication software clear logic, reliability height, and the complicated often big system of communication products, software developing quality guarantees to face very big challenge.Managing to improve the degree of modularity of software, increase the intelligibility and the maintainability of software, is the unremitting pursuit of the communication software person of designing and developing.In the data communication software product, often to do particular processing at special message, be identical with the hardware forwarding logic under the most of situation of forwarding logic in these software special processings.Independently handle and forwarding logic if each message all has, obviously will there be bigger repetition in forwarding logic, not meet the standard of high-quality software; If the handling process that software can the analog hardware chip is arranged, so can be separated processing logic and forwarding logic, improve the degree of modularity of software, reduce software complexity, improve the quality of products.Therefore be badly in need of a kind of message that can all are special now and carry out unified processing, solve all message forwarding processes with complete processing and the forwarding logic of a cover, prior art does not propose, and has brought not convenient for this area research staff's R﹠D process.
Summary of the invention
The objective of the invention is provides a cover complete processing and forwarding logic in order to solve, the technical problem that dissimilar messages is unified to handle, designed a kind of message forwarding method based on analog communication chip technology, message processing and forwarding logic are separately carried out, the message processing procedure is finished by Target Board CPU and software kit, and forwarding logic is finished by communication chip, can realize the unified processing of all messages, simplify the logical process process that message is transmitted, shortened the research and development time.
The present invention for realizing the technical scheme that goal of the invention adopts is, a kind of message forwarding method based on analog communication chip technology, above method is by being provided with communication chip, have and realize in the cooperation processing procedure of the Target Board of CPU and supporting management software, the specialized processing units of the unified usefulness that E-Packets is set on Target Board, deposit the type of message communications protocol relevant that communication chip allows to receive in above specialized processing units supporting mailbox memory by CPU with the type message, calling the forwarding processing logic identical with communication chip by supporting process software handles E-Packeting with configuration, after the processing message is back to communication chip by specialized processing units and carries out port output processing, last communication chip forwards message.
The invention has the beneficial effects as follows: be separated by processing logic and forwarding logic, make the clear simple of software logic change, the processing procedure high conformity message; The complexity of reduction program, reliability, intelligibility and the maintainability of raising software program; Multiplexing by simulation softward also accelerated the progress of software development, improved efficiency of research and development, reduced development cost, obtained good economic benefits.
The present invention is described in detail below in conjunction with accompanying drawing.
Description of drawings
Fig. 1 is a method thinking flow chart of the present invention.
Fig. 2 is the treatment step flow chart of specific embodiments of the invention.
Embodiment
Referring to Fig. 1, a kind of message forwarding method based on analog communication chip technology, above method is by being provided with communication chip, have and realize in the cooperation processing procedure of the Target Board of CPU and supporting management software, the specialized processing units of the unified usefulness that E-Packets is set on Target Board, deposit the type of message communications protocol relevant that communication chip allows to receive in above specialized processing units supporting mailbox memory by CPU with the type message, calling the forwarding processing logic identical with communication chip by supporting process software handles E-Packeting with configuration, after the processing message is back to communication chip by specialized processing units and carries out port output processing, last communication chip forwards message.
When communication chip deposits message specialized processing units and message in and is back to communication chip by specialized processing units, by the Step Information of supporting process software programs recorded message processing procedure.
Be provided with the message classification module in the above-mentioned specialized processing units, the message classification module is extracted message information, according to the address of message coding, the kind that protocol fields information is judged message, unifies to handle by specialized processing units according to the type of message.
Processing logic in the above-mentioned specialized processing units and parameter setting be by consult the communication chip handbook and write supporting processing logic, Control Parameter is set.
Above-mentioned message comprises communication protocol message and control message.
The present invention is on the basis of the thinking of using software simulation hardware, by software processing technology, realizes consistency, dividing processing logic and bag forwarding logic soft, hardware handles.
Method of the present invention in the specific implementation, at first needing has detailed understanding to the processing logic of chip, uses software approach that the forwarding processing logic of key is extracted then, and comes the simulation process process with software.For with a or same family chip, simulation softward has the portability of height.Should separate when the processing logic of message and forwarding logic design, to reduce logical complexity as far as possible.
At first, with the processing procedure of communication chip decompose, numbering, as the communication process chip divide from big class, can be divided into inbound port processing, message classification, calculating destination interface, outbound port processing etc.Inbound port is handled the tag processes that comprises message, drop policy; Message classification generally comprises virtual subnet and divides, and protocol type is divided; Calculating destination interface refers to calculate the destination interface that message is transmitted according to configuration; Outbound port is handled and is comprised the message label processing.
Secondly, processing procedure need be carried out according to the chip configuration parameter, joins toward the configuration of hardware chip need to embody in simulation softward equally, issues module by parameter, issues parameter to each processing node, and these parameters will influence the result of message.
Simulation softward offer the ability that caller is selected initial XM, the entrance selects to allow caller select initial executing location, and is corresponding with the action that this and hardware are supporting.Possible words can also be selected the stomion position simultaneously, and the selection of exit point position need be determined according to driving interface.
When hardware chip is sent to the CPU of Target Board with message, the relevant position of position in whole simulated technological process, the position of message when hardware chip is sent to CPU is exactly position, simulation softward entrance, and caller also can customize certainly, and oneself finishes partial function.
At last, the input of simulation softward comprises that message carries information, message and is sent to the nodal information of CPU and driver and sends message the nodal information of hardware back to, and output is according to circumstances different, can adopt and send forward mode automatically back to and manually send forward mode back to.When sending forward mode back to automatically, message can be sent back to hardware in the suitable place of simulation softward and be continued to handle; The message that manually sending forward mode back to needs caller oneself to be responsible for calling after simulation softward is handled in driving is sent hardware continuation processing back to.
Claims (5)
1, a kind of message forwarding method based on analog communication chip technology, above method is by being provided with communication chip, have and realize in the cooperation processing procedure of the Target Board of CPU and supporting management software, it is characterized in that: the specialized processing units that the unified usefulness that E-Packets is set on Target Board, deposit the type of message communications protocol relevant that communication chip allows to receive in above specialized processing units supporting mailbox memory by CPU with the type message, calling the forwarding processing logic identical with communication chip by supporting process software handles E-Packeting with configuration, after the processing message is back to communication chip by specialized processing units and carries out port output processing, last communication chip forwards message.
2, a kind of message forwarding method according to claim 1 based on analog communication chip technology, it is characterized in that: when communication chip deposits message specialized processing units and message in and is back to communication chip by specialized processing units, by the Step Information of supporting process software programs recorded message processing procedure.
3, a kind of message forwarding method according to claim 1 based on analog communication chip technology, it is characterized in that: be provided with the message classification module in the described specialized processing units, the message classification module is extracted message information, according to the address of message coding, the kind that protocol fields information is judged message, unify to handle by specialized processing units according to the type of message.
4, a kind of message forwarding method based on analog communication chip technology according to claim 1 is characterized in that: processing logic in the described specialized processing units and parameter setting be by consult the communication chip handbook and write supporting processing logic, Control Parameter is set.
5, a kind of message forwarding method based on analog communication chip technology according to claim 1 is characterized in that: described message comprises communication protocol message and control message.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910189991A CN101674243A (en) | 2009-09-07 | 2009-09-07 | Message transmitting method based on analog communication chip technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910189991A CN101674243A (en) | 2009-09-07 | 2009-09-07 | Message transmitting method based on analog communication chip technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101674243A true CN101674243A (en) | 2010-03-17 |
Family
ID=42021238
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910189991A Pending CN101674243A (en) | 2009-09-07 | 2009-09-07 | Message transmitting method based on analog communication chip technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101674243A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103036734A (en) * | 2011-10-10 | 2013-04-10 | 盛科网络(苏州)有限公司 | Logic verification method and logic verification system for network chip |
CN103036893A (en) * | 2012-12-21 | 2013-04-10 | 国电南瑞科技股份有限公司 | One-layer network data processing method suitable for intelligent substation |
CN116633873A (en) * | 2023-05-24 | 2023-08-22 | 阿里云计算有限公司 | Hardware unloading virtual switch device, related equipment and message forwarding method |
-
2009
- 2009-09-07 CN CN200910189991A patent/CN101674243A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103036734A (en) * | 2011-10-10 | 2013-04-10 | 盛科网络(苏州)有限公司 | Logic verification method and logic verification system for network chip |
CN103036893A (en) * | 2012-12-21 | 2013-04-10 | 国电南瑞科技股份有限公司 | One-layer network data processing method suitable for intelligent substation |
CN103036893B (en) * | 2012-12-21 | 2016-01-20 | 国电南瑞科技股份有限公司 | A kind of one deck network data processing method being applicable to intelligent substation |
CN116633873A (en) * | 2023-05-24 | 2023-08-22 | 阿里云计算有限公司 | Hardware unloading virtual switch device, related equipment and message forwarding method |
CN116633873B (en) * | 2023-05-24 | 2024-08-06 | 阿里云计算有限公司 | Hardware unloading virtual switch device, related equipment and message forwarding method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103650630B (en) | Method and apparatus for distributing sensing data | |
CN104899085B (en) | A kind of data processing method and device | |
CN111563820B (en) | Intelligent contract parallel execution method and device | |
CN110166455A (en) | A kind of multi-operator platform data adaptation method and relevant device | |
US11469951B2 (en) | Network-configuration-information generation method and communication device | |
CN107911251B (en) | Network equipment configuration method, device and medium | |
CN109542475A (en) | Data-updating method, device, storage medium and the server of system multi version | |
CN108418744A (en) | A kind of electronics seat system for promoting electrical power services quality | |
CN101674243A (en) | Message transmitting method based on analog communication chip technology | |
CN109951400A (en) | Instruction sending method, device, electronic equipment and the readable storage medium storing program for executing of terminal | |
CN105302759A (en) | Automatic switching circuit device and method of 485 communication chip transmitting and receiving data | |
EP3328115A1 (en) | Device, board card and method for signal output | |
CN107347202A (en) | The initial access method and device that a kind of terminal is cut into slices under framework in network | |
CN109102468A (en) | Image enhancement method and device, terminal equipment and storage medium | |
CN112199154A (en) | Distributed collaborative sampling central optimization-based reinforcement learning training system and method | |
CN110213154A (en) | Instant communicating method, device, computer installation and storage medium | |
CN106954191B (en) | Broadcast transmission method, apparatus and terminal device | |
CN105159690B (en) | A kind of method and device of automatic synchronization user interface UI thread | |
CN110909055A (en) | Data processing method, data processing device, electronic equipment and storage medium | |
CN110221879A (en) | The parameter setting method and relevant device of driver | |
US20170250704A1 (en) | Improving Communication Efficiency | |
CN105357243B (en) | A kind of method and apparatus with internet of things equipment remote interaction | |
CN110085231A (en) | More MIC voice assistant modules based on USB port | |
CN103150162B (en) | Improve the method for embedded software code degree of share | |
CN101325514A (en) | Communication network management adapter frame with configurable flow and implementing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20100317 |