[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN100428154C - Development method of wireless sensor networks mobile agent platform based on Mandis - Google Patents

Development method of wireless sensor networks mobile agent platform based on Mandis Download PDF

Info

Publication number
CN100428154C
CN100428154C CNB2007100194971A CN200710019497A CN100428154C CN 100428154 C CN100428154 C CN 100428154C CN B2007100194971 A CNB2007100194971 A CN B2007100194971A CN 200710019497 A CN200710019497 A CN 200710019497A CN 100428154 C CN100428154 C CN 100428154C
Authority
CN
China
Prior art keywords
module
node
platform
behalf
instruction
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.)
Expired - Fee Related
Application number
CNB2007100194971A
Other languages
Chinese (zh)
Other versions
CN101008893A (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.)
Nanjing Post and Telecommunication University
Nanjing University of Posts and Telecommunications
Original Assignee
Nanjing Post and Telecommunication University
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 Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CNB2007100194971A priority Critical patent/CN100428154C/en
Publication of CN101008893A publication Critical patent/CN101008893A/en
Application granted granted Critical
Publication of CN100428154C publication Critical patent/CN100428154C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

This invention relates to one mobile agent platform exploring method based on evamendes, which is based on wireless sensor network technique and distribution computation and comprises the following steps: mobile agent execution platform rack is above to manage all agents; whole mobile agent platform exploring module is of three layers with top layer for mobile agent part inserted into points through wireless network or user series with middle layer for mobile agent execution platform as central part.

Description

Development approach based on the wireless sensor networks mobile agent platform of Man Disi
Technical field
The present invention is the solution of a kind of Distributed Calculation and wireless sensor network technology.Be mainly used in solution and go up the problem of developing mobile agent platform, belong to the technical field of Distributed Calculation and wireless sensor network based on Man Disi (a kind of operating system of sensor node).
Background technology
Wireless sensor network (Wireless Sensor Networks) is the network that is formed by the self-organization mode by the microsensor with perception, processing and wireless communication ability, but also is a kind of distributed computing system of collaborative work simultaneously.Have very strong application correlativity in reality, it can be applied in all many-sides such as military affairs, environmental monitoring, medical monitoring, space exploration, historical relic's protection and agricultural.In order to promote the broader applications of wireless sensor network, must take certain measure can allow it more cheap, possess better ease for use and extensibility.
Yet along with the continuous maturation and the development of wireless sensor network technology, at increasing application, some present application software do not satisfy current needs at all.Among actual environment, application program has been fixed on the node in node configuration, when the demand flip-flop, need carry out reprogramming to the node on the diverse location, can expend more manpower and financial resources like this.For example, be arranged in the function that the node in the forest possesses image data and data are handled, in case detect the fire dangerous situation, node need be with data transmission to remote control terminal or be transferred to adjacent node and report to the police handle by it.Certainly, these functions can integrate, but the yardstick of application program becomes huge, and maintainability will weaken.
Have two kinds of technology to address this problem at present, a kind of is Mate, and another is SensorWare, and the two all is to adopt wireless sensor network that node is carried out reprogramming, all contains merits and demerits.The Mate technology is that application program is divided into the junior unit functional block, these functional blocks can be routed to each node by network, and node is only stored the latest edition of this functional block, and explains that the entrained instruction of these functional blocks of operation just can realize corresponding task.Yet in the Mate technology, the user can not control the functional block on the node, and the functional block on each node all is uncertain, and the required specific function of finishing of individual node can't accurately satisfy.And SensorWare adopts the technology of dynamically inserting agent script, allows a plurality of application programs of operation on the node.But it is not fine that this script shows on animal migration, and comprises fixing entrance, very high to resource requirement on the system platform.
At the problems referred to above of wireless sensor network, generally adopt middleware Technology to solve.And present wireless sensor network system middleware mainly provides the convenient interface of access sensors, and realization, operation and the maintenance of using for wireless sensor network provide support.The research of this respect so far mainly concentrates on the middleware of supporting data management, software upgrading etc.
For the dynamic reprogramming problem of the network that solves wireless sensor network, computing machine institute of University of Washington has proposed the Agilla Middleware Model and has designed on TinyOS and realized Agilla.At the not extensibility of node application program in the past, Agilla regards application program as can move mutually mobile agent between node, and these mobile agents have characteristics such as localizability, intelligent and dynamic.In fact, each mobile agent all is a virtual machine that contains dependent instruction and virtual memory, and when instruction obtained resolving execution, the agency just carried out alternately with platform, and can migration mutually between node.Certainly, on the single physical node, can hold a plurality of can co-operatingly agency.Yet Agilla just is applied on the TinyOS operating system at present, and at existing other operating system, for example Man Disi, SOS etc. do not have corresponding specific design and realization.
Man Disi is a kind of wireless sensor network operating system based on multi-thread mechanism by the exploitation of Colorado (Colorado) university computer research institute.Developing application on Man Disi has above-mentioned shortcoming equally.In a single day application program based on Man Disi downloads on the node, therefore the non-constant of extensibility, must take certain measure to allow the application program based on Man Disi possess good scalability, when application demand changes, can on-the-fly modify the function that node possesses.
Summary of the invention
Technical matters: the development approach that the purpose of this invention is to provide a kind of wireless sensor networks mobile agent platform based on Man Disi, be used to solve problems such as the Man Disi range of application is narrow, network reprogramming difficulty, reduced the upward cost of development of application program of Man Disi.
Technical scheme: the present invention is applicable to wireless sensor network system platform Man Disi, also can develop brand-new mobile agent middleware platform according to the present invention.The present invention is by being incorporated into mobile agent mechanism in the application and development based on this mobile agent platform, its target is to realize the Remote Dynamic reprogramming of wireless sensor network node, dynamically revise the function of node, be reduced in cost and difficulty that Man Disi goes up application and development.
Realization is based on the wireless sensor network application program of mobile agent, and it should possess following feature: the function of whole application program should be finished by mobile agent, can realize on existing mobile agent platform.And the function of mobile agent can be on network changes dynamically, can insert or delete mobile agent on the node dynamically, changes the function of self, reaches the purpose of network reprogramming, the agency with act on behalf of between can cooperate mutual communication.
Mobile agent is carried out platform architecture on Man Disi among the present invention, and all agencies that move on the management node.Fig. 1 has provided the development model of whole mobile agent platform, this model is divided into three layers, and the superiors are the mobile agent part, are inserted on the node by wireless network or serial ports by the user, the middle layer is that mobile agent is carried out platform, is the core of whole invention.Orlop is wireless sensor network operating system platform Man Disi, mainly is responsible for providing mobile agent to carry out the running environment of platform.
Mobile agent is carrying the relevant information and the executable instruction of node, these executable instructions are explained through middleware platform and are carried out, finish corresponding task, the agency is in the process of carrying out, carry out alternately Data transmission or obtain on the platform parameter by underlying operating system (Man Disi) with agent platform.Can control by remote message between mobile agent and the mobile agent and realize cooperating.And the function of agency on network possesses dynamic alterability, in case user's demand changes, the basic parameter that only needs to revise the agency just can achieve the goal.
The agency adopts message response mechanism and overtime controlling mechanism to guarantee to move quality in the process that moves and the elimination wireless sensor network is congested.
Method flow
The step that development approach comprised based on the wireless sensor networks mobile agent platform of Man Disi is:
Step 1). mobile agent platform is divided into platform information administration module, proxy management module, order set module and mutual instruction transit module between the two,
Step 2). the platform information administration module that obtains in the step 1) is divided into nodal information administration module and platform network management module, the proxy management module is divided into acts on behalf of the operational management module, act on behalf of the migration management module, the order set module is classified according to the assembly language rule, can be divided into the fundamental operation instruction module, the agent operation instruction module, program control instruction module, device control instruction module, stack operation instruction
Step 3). by step 2) resulting result, the nodal information administration module is divided into the node location information administration module, node neighbor information administration module, the mesh information management module, the platform network administration module is divided into platform network message sends administration module and platform network information receiving module, to act on behalf of the operational management Module Division for acting on behalf of the operation queue administration module and acting on behalf of the running status administration module, to act on behalf of the migration management module further is divided into and acts on behalf of receiver module and act on behalf of transferring module
Step 4). platform network information receiving module that step 3) is produced and node location information administration module adopt the mode of thread to realize in conjunction with the characteristics of Man Disi multithreading, the internet message transmission interface implementation platform internet message that adopts Man Disi to provide simultaneously sends administration module
Step 5). with step 4) module compiles that realizes and being loaded on the node tests; During test; The node location information administration module utilizes platform network message to send the location message of the interface broadcast node that administration module provides; The location message bag of defining node is the nybble size; The first two byte is preserved the node abscissa; Latter two byte is preserved the node ordinate; The platform network information receiving module is responsible for receiving the node messages in the network; If the data packet format that receives and content are unanimously carried out next step; Otherwise get back to step 4) carry out process analysis
Step 6). the internet message that produces in the step 3) is sent administration module compile and be loaded in the platform, get back to step 5), if the gridding information module can adopt linear algorithm to produce the horizontal ordinate of node according to the number of node, and the content that the platform network information receiving module is received is consistent with the coordinate that the mesh information management module is produced, carry out next step, otherwise get back to step 3) redesign gridding information and send administration module and node neighbor information administration module
Step 7). add interpolation, deletion, inspection, search, the update functions of node neighbor information in the node neighbor information administration module that in step 3), produces, be loaded in the platform, the node location information that the interpolation interface is received in realizing according to network in the platform network information receiving module is revised the node neighbor information in the node neighbor information administration module dynamically, revise successfully, carry out next step, otherwise get back to step 7)
Step 8). the mode that the operation queue administration module adopts formation acted on behalf of in the step 3) is realized insertion, the delete function acted on behalf of, in acting on behalf of the running status administration module,, the function that provides in the operation queue administration module realizes agency's condition managing in conjunction with being provided, comprise stopping that migration is hung up, operation, sleep state can successful switch if act on behalf of running status, carries out next step, otherwise get back to step 8)
Step 9). according to the runnable interface of acting on behalf of that the running status administration module provides of acting on behalf of of step 8), mode performing step 1 by instruction prefetch) the instruction transit module in, during test, fixing agency's order code is 0x17, if can reading command, and can move the agency, carry out next step, otherwise get back to step 9)
Step 10). the agency who acts on behalf of the running status administration module and provide according to step 8) moves interface, the characteristics of and limit on transmission bandwidth poor in view of the wireless network transmissions reliability, adopt and repeatedly to send, to act on behalf of burst and data packet acknowledgement mechanism performing step 3) in act on behalf of receiver module and act on behalf of transferring module, move success if comprise the agency of migration instruction, carry out next step, otherwise get back to step 10)
Step 11). adopt arithmetic and AOI computing to come performing step 2) in the fundamental operation instruction module; Adopt pop down to go out stack operation and come performing step 2) in the stack operation module; Adopt jump instruction to come performing step 2) in the program control instruction module; The device drives interface performing step 2 that provides by Man Disi) the device control instruction module in, comprise the operation of read-write node device, the input of testing these instructions then and the whether success of realization that whether is complementary through the later result of ordering calculation and judges each instruction module, be, then carry out next step, otherwise get back to step 11)
Step 12). combined command transit module and instruction module, testing procedure 11) every instruction realizing, observe the operation result of instruction, if operation is correct, carries out next step, otherwise get back to step 11),
Step 13). system testing is carried out in the different packing of orders together, comprise that operational order, program control instruction, agency move instruction, stack operation instruction, device control instruction, and in network, dispose node, the binary code load module of utilizing Man Disi to provide imports sensor node with platform and tests, content measurement is whether the proxy instructs computing is normal, can the agency move in network, if step 12) is got back in failure.
Architecture
Fig. 3 has provided the architecture based on the mobile agent development platform of Man Disi, this architecture is divided into three layers, the superiors are mobile agent layers, at different application, mobile agent is carried out platform the agency and is carried out corresponding task, and has an intelligence migration instruction, the agency can execute the task to the another one node from a node motion, the middle layer is the core layer of whole agent platform, all functional modules have been integrated, the infrastructure of mobile agent operation is provided, and carries out alternately with Man Disi.The bottom is the Man Disi system, and the environment of mobile agent platform operation is provided, and all resource on the Control Node, is the mutual media of agent platform and node.
The middle layer is mainly divided according to the function that platform should have, Network Interface Module closely links to each other with other module, call the communication layers interface of Man Disi, and provide the interface of other module accesses, the neighbor information administration module obtains neighbor information from the interface that Network Interface Module provided, and real-time calling deputy environment administration module checks the validity of neighbor information, and the interface of proxy management module accesses is provided simultaneously.In the proxy management module, operation the agency call mutually with engine modules, engine modules enabled instruction parsing module, the step of going forward side by side is resolved the instruction that the agency is comprised with the instruction interface that transit module provided, at agency's migration and reception, interface and agency's migration that this module is called the neighbor information module respectively to be provided receive the Coordination Treatment module, call the module of relevant agent architecture operation simultaneously the migration agency is handled, include the Agent Status administration module, the agent code administration module, but act on behalf of stack management module and agency's expansion module etc.
And orlop belongs to Man Disi, it provides agent platform needed basic environment, and provide access interface to the upper strata, comprise network communication interface and node device control interface, in addition, in middleware platform, the visit of equipment is integrated in the order set, belong to the nodal operation instruction module, comprise the control of various sensor devices on the node and the control of other available resources.
The function of the superiors' mobile agent part is defined by user oneself, the pseudo-assembly packing of orders is got up to add in agency's the code block, and be inserted on the mobile agent platform on the node by network interface, platform starts the proxy management module immediately and starts engine modules and carry out the task of acting on behalf of appointment.Certainly, mobile agent can be moved to the another one node from a node, possesses four kinds of operator schemes equally, i.e. migration by force, weak migration and clone and four kinds of weak clones by force.
Beneficial effect: the present invention proposes application program development of novel method based on Man Disi, and the architecture based on mobile agent of using this method to develop.The present invention uses virtual machine thought and mobile proxy technology, has following advantage, obviously is that other wireless sensor network middleware based on Man Disi is not available:
(1) segmentation of realization function and reduction development difficulty: the method for using mobile agent, the function of application of complexity is decomposed into simple mobile agent particle, the segmentation of function has increased the rationality that task is carried out and assigned, reduce the development difficulty of legacy application, improved the efficient of exploitation.Simultaneously, the mobile agent that develops can be multiplexed to the agent platform on each node very easily, has promoted the reusability of code greatly.
(2) improve the abstractness of application and development: the exploitation of application program need not to understand the details of underlying operating system, and the order set customized application that can possess according to the agency has shielded complicated low layer identification code and realized; On the other hand, can be mapped to the corresponding lower-level system of different platform by instruction code and call, reduce the workload of multi-platform mobile agent application and development standard.
(3) dynamically form and the function that changes node: can generate the mobile agent of different abilities by the various combination of instruction dynamically, be routed to destination node, go to finish various tasks by network.Mobile agent can also increase or delete the function of self dynamically by fresh code more, strengthens the adaptive faculty of mobile agent to network environment and mission requirements greatly.
(4) improve the extensibility of mobile agent: at the order set module, provide interpolation, the delete interface of instruction,, needed new instruction, by this interface modify instruction system dynamically when application demand changes.In addition, in all module of system starts, all leave the space, and distributed a dynamic shared drive zone to be used for the data management function of expansion platform in order to expansion.
(5) provide interaction capabilities between the mobile agent: in order set, act on behalf of remote login and local and remote interactive interface, realized the task coordination mechanism between the agency for agent platform provides.
(6) provide node dynamic reprogramming ability: in application development based on Man Disi, also there is not at present a kind of mechanism to realize the network reprogramming of node, the present invention adopts virtual machine thought, the functional simulation of application program is become the binary command of a sequence, be inserted into specified node by network, allow mobile agent platform explain and carry out, finish function corresponding, reach the purpose of node reprogramming, saved human and financial resources.
Description of drawings
Fig. 1 is based on the middle unit development model of Man Disi, represents the migration of acting on behalf of between two nodes from left to right.
Fig. 2 is the network design of middleware, and the hardware physical platform and the network topology structure figure of the inventive method used in expression.
Fig. 3 is the architecture of whole middleware, the relation of calling mutually between functional module that the expression middleware should possess and the module.
Embodiment
Performance history based on the mobile agent development platform of Man Disi is specific as follows:
Step 1: set up Network Interface Module, mobile agent platform has the function that receives message from network, therefore, and the mainly responsible data that receive in the automatic network of Network Interface Module.At the development mode of Man Disi based on thread, in Network Interface Module, create one independently thread monitor message in the network, in case there is message to arrive, network interface is given the message maps module with the right of handle packet, products for further is handled.In addition at Man Disi operating system, when sending data at the same time, communication module can produce conflict, therefore, data all about communication all adopt formation to finish, therefore, the thread that Network Interface Module has a message queue and handles this message queue, this thread are checked the data that need send by network interface whether having in the row at regular intervals, if have, from message queue, take out data and send in the network.Otherwise this thread enters sleep state.
Step 2: set up the neighbor list module, each node possesses localizability, and mobile agent adopts the single-hop routing algorithm in the process of migration, therefore, mobile agent platform must be safeguarded a neighbor information tabulation, in this Module Design, the main positional information of being responsible for broadcasting oneself in network, in the process of broadcasting, adopt an independently thread, send message at regular intervals.When node receives neighbours' message, begin to carry out neighbours' Message Processing and revise own neighbor information tabulation.Certainly, mobile agent platform start another independently the thread neighbours of losing efficacy check, refresh neighbor list one time every the regular hour, in case neighbor information was not updated in the time interval of checking of losing efficacy in the neighbor list, so, mobile agent platform is carried out deletion neighbor information function.
Step 3: set up the proxy management module, mobile agent platform provides the agency basic service facility, comprises the execution environment, migration support, safeguard protection support of mobile middleware etc.The two was mutual mutually when the agency carried out on platform, platform possesses the function of control agent, comprise and start agency's operation, the deletion agency, running environment and major functions such as agency's migration and reception are acted on behalf of in replacement, the groundwork that starts agency's operation is to start agent engine, carries out agency's code section, and deletion agency's effect is to discharge to act on behalf of occupation space.In the proxy management module, the operation of acting on behalf of is divided into agency's transmission again and acts on behalf of receiver module, these two modules can be divided into 6 big modules respectively again according to the architecture of acting on behalf of.In agency's migration, control the flow process of whole agency's migration by agency's migration Coordination module, in sending Coordination module, the state transition of at first acting on behalf of, this invocation of procedure agency's state transition module, and employing message response mechanism, in the process of state transition, after the response that the state of node wait destination node is successfully accepted, change the agent code sending module over to by the migration Coordination module, in the process of agent code migration, code block number to the agency is analyzed, size according to size of code, the maximum bandwidth of combining with wireless sensor network, code block is cut apart transmission, these are finished dealing with by the code sending module, each code block at the agency, all adopt repeatedly transmit mechanism, send code threads sleep certain hour at every turn, and in this time interval, monitor the successful response arrival whether destination node is arranged by the network interface thread, if then enter next code block transmit status, all successfully move to destination node until all codes of agency, certainly, as long as the not complete migration of one of them code block, agency's migration telegon reenters the state transition module so, carry out so repeatedly 4 times, with the smooth migration that guarantees to act on behalf of, otherwise the agency carries out platform will restart agency's operation.After acting on behalf of code and successfully moving, the migration telegon will enter agent operation stack transferring module, and the rest may be inferred, all move to destination node until all parameters of agency.Destination node possesses the agency and receives Coordination module, this module is responsible for receiving agency's Coordination Treatment, receive agency's status message when platform, with regard to the starting state message processing module, fill on the platform parameters such as other execution environment, and the arrival of the next state of startup timer waiting agents, if at interval interior at the appointed time next state no show, receive telegon and act on behalf of the processing that takes defeat, comprise and empty the space of having distributed, start Network Interface Module thread etc., if in official hour, all receiver modules all complete successfully, platform will be got back to the new agency of proxy management resume module, comprise starting new agency, carry out functions such as proxy instructs.
In addition, in the proxy management module, expanded fault processing mechanism simultaneously,, will call this fault processing module and carry out fault processing in case make mistakes between allocation space deficiency or module invokes on the node.In fault processing, generally cause or the wrong information such as time with mistake turns back to products for further processing on the base station platform.
Step 4: set up the deputy environment administration module, this module is responsible for expanding the grid environment on the agent platform, each node possesses localizability, therefore, it is necessary managing at the location parameter of each node, and, adopt the single-hop routing algorithm, the message that is passed over by neighbor node need be called this module equally and carry out position analysis and could determine further operation, comprise functions such as node number and position conversion, and other node on whole sizing grid and the grid controlled, when sizing grid need change, other node location on the corresponding whole grid produces corresponding the variation, is used for the basic parameter information of unified whole grid node.
Step 5: set up order set, this Module Design and agency's function is closely related, order set has possessed the function of determining in case determine just to mean the agency, in the present invention, adopt the order set of pseudo-assembly instruction as the agency, mobile agent platform provides acts on behalf of running environment, and possesses acting on behalf of the function that all instructions make an explanation.In order set, by the entrained number of parameters classification of instruction, can be divided into 3 big fundamental types, they are respectively printenv type, single operand type and dual-operand type, divide by command function and can be divided into 6 big fundamental types, promptly basic operational order, nodal operation instruction, jump instruction, act on behalf of steering order, remote control commands and agent security steering order.And in acting on behalf of steering order, designed agency's State Control instruction and agency's migration instruction, and remote control commands is used for the cooperation between the network agency.
Step 6: set up the agent engine module, when the effect of this module is that operation is acted on behalf of, to the agent code execution that makes an explanation, and active stack and the parameter heap control module of calling the agency are controlled current agency's stack space, simultaneously, engine modules is created and is acted on behalf of the operation that operation queue comes all agencies on the management platform.When starting new an agency, engine modules is taken out the agency who waits for operation from act on behalf of operation queue, and begins to execute instruction from the code that the programmable counter of acting on behalf of points to, in the process of execution command, engine calling instruction transit module is further resolved instruction.
Step 7: set up the instruction transit module, this module is responsible for that agency's order set is carried out platform with the agency and is coupled together, mainly finish agency's the instruction parsing and the work of proxy instructs system initialization, the initialized purpose of order set is all operations instruction module of load instructions system, comprise basic operation instruction, nodal operation, jump instruction, act on behalf of modules such as steering order, when command adapted thereto was resolved, the instruction transit module was mapped to associative operation in the instruction space of appointment and carries out concrete instruction manipulation.
Step 8: set up the message maps module, all message in the Network Interface Module are handled in the effect of this module, and call corresponding message processing module according to type of message and carry out further Message Processing.Comprise Message Processing to be sent and receive Message Processing, the two all adopts the message queue pattern.In this module, safeguarding two kinds of message queues, manage sending message and receiving message respectively.In case when other module need send message, the transmission message queue just can call the processing module at this message.
For convenience of description, we have following application example at supposition: develop one based on the mobile agent development platform of Man Disi and based on the concrete application of this platform, the primary demand of using is to create mobile agent at base-station node, after the base station executes task, it is sent other node in the network, and in the local flicker node pilot lamp task of carrying out of other node.
Specific embodiments is:
Step 1). can be divided into the administration module of platform and the order set module that the agency comprised on the mobile agent platform main body, at first the administration module of platform be analyzed;
Step 2). the platform management module that obtains in the step 1) is carried out detail analysis and conclusion, obtain proxy management module, Network Interface Module, engine modules, instruction transit module, dynamic space administration module, neighbor information administration module, environmental management module, message maps module etc., safeguard a formation module in addition, be used for the queue buffer management among each module;
Step 3). depend on step 2) resulting result, the module of these small grain size is classified, Network Interface Module, proxy management module, engine modules, message maps module, instruction transit module are necessary modules, and dynamic space administration module, neighbor information administration module, environmental management module, formation module etc. are nonessential, are divided into starting proxy module, act on behalf of transferring module, acting on behalf of receiver module etc. in the proxy management module;
Step 4). carry out process analysis at the Network Interface Module in the step 3), proxy management module, engine modules, message maps module, instruction transit module,, realize the concrete function of each module in conjunction with the system call that Man Disi provides;
Step 5). combine at Network Interface Module in the step 4) and message maps module, message in the network is passed to the message maps module, operation agent functionality in the proxy management module combines with engine modules, parallel connection means and makes transit module test accordingly, message is transmitted and instruction transfer failure, gets back to step 4) and proceeds process analysis;
Step 6). with the dynamic space administration module in the step 3), neighbor information administration module, environmental management module, formation module loading in platform, start in engine modules simultaneously and act on behalf of the operation queue administration module, Network Interface Module mapping message module passes to the neighbor information administration module with neighbours' message, migration receiver module in the proxy management module is realized agency's migration and reception in conjunction with the neighbor information administration module, respectively these functional modules are tested, if pass through, carry out step 7), otherwise get back to step 6);
Step 7). according to the characteristics of mobile agent, order set is divided into fundamental operation instruction instructions such as (for example) addition subtraction multiplication and divisions, proxy management instruction (for example acting on behalf of startup, sleep, termination, migration etc.), dynamic space supervisory instruction (instructions such as for example space application, space release, remote access), sensor device steering order (for example reading, peek, open equipment, closing device etc.);
Step 8). the instruction module of analyzing at step 7), to each bar instruction realizations of encoding, and the port address that is processed into of these instructions is mapped in the instruction transit module, the confession engine modules is called, and tests at every instruction on platform; If pass through, carry out step 9); Otherwise get back to step 8);
Step 9). in network, dispose sensor node,, mobile agent is carried out the platform delivery node as Fig. 2, start node, platform brings into operation, and modules all on the platform is carried out initialization, node then starts all modules, and obtains detecting information by serial ports;
Step 10). the mobile agent code that will be used to test is inserted on the node-agent platform and moves, testing procedure 8) in each instruction module in the order set, if success is proceeded next step, continue test otherwise get back to step 8);
Step 11). integrating step 9) and step 10), the migration of test agent instruction on agent platform.If the agency moves successfully, continue execution in step 12), carry out the Network Interface Module test in the step 4) otherwise get back to;
Step 12). mobile agent executes task on destination node, mutual to carrying out between the agency's that inserts instruction enabled instruction transit module and the Man Disi, when the agency is finished, the instruction out of service in the code that platform is comprised according to the agency stops agency's operation.

Claims (1)

1. development approach based on the wireless sensor networks mobile agent platform of Man Disi is characterized in that mobile agent carries out the step that development approach comprised of platform and be:
Step 1). mobile agent platform is divided into platform information administration module, proxy management module, order set module and mutual instruction transit module between the two,
Step 2). the platform information administration module that obtains in the step 1) is divided into nodal information administration module and platform network management module, the proxy management module is divided into acts on behalf of the operational management module, act on behalf of the migration management module, the order set module is classified according to the assembly language rule, can be divided into the fundamental operation instruction module, the agent operation instruction module, program control instruction module, device control instruction module, the stack operation module
Step 3). by step 2) resulting result, the nodal information administration module is divided into the node location information administration module, node neighbor information administration module, the mesh information management module, the platform network administration module is divided into platform network message sends administration module and platform network information receiving module, to act on behalf of the operational management Module Division for acting on behalf of the operation queue administration module and acting on behalf of the running status administration module, to act on behalf of the migration management module further is divided into and acts on behalf of receiver module and act on behalf of transferring module
Step 4). platform network information receiving module that step 3) is produced and node location information administration module adopt the mode of thread to realize in conjunction with the characteristics of Man Disi multithreading, the internet message transmission interface implementation platform internet message that adopts Man Disi to provide simultaneously sends administration module
Step 5). with step 4) module compiles that realizes and being loaded on the node tests; During test; The node location information administration module utilizes platform network message to send the location message of the interface broadcast node that administration module provides; The location message bag of defining node is the nybble size; The first two byte is preserved the node abscissa; Latter two byte is preserved the node ordinate; The platform network information receiving module is responsible for receiving the node messages in the network; If the data packet format that receives and content are unanimously carried out next step; Otherwise get back to step 4) carry out process analysis
Step 6). with the mesh information management module compiles that produces in the step 3) and be loaded in the platform, get back to step 5), if the mesh information management module can adopt linear algorithm to produce the horizontal ordinate of node according to the number of node, and the content that the platform network information receiving module is received is consistent with the coordinate that the mesh information management module is produced, carry out next step, otherwise get back to step 3) redesign mesh information management module and node neighbor information administration module
Step 7). add interpolation, deletion, inspection, search, the update functions of node neighbor information in the node neighbor information administration module that in step 3), produces, be loaded in the platform, the node location information that the interpolation interface is received in realizing according to network in the platform network information receiving module is revised the node neighbor information in the node neighbor information administration module dynamically, revise successfully, carry out next step, otherwise get back to step 7)
Step 8). the mode that the operation queue administration module adopts formation acted on behalf of in the step 3) is realized insertion, the delete function acted on behalf of, in acting on behalf of the running status administration module,, the function that provides in the operation queue administration module realizes agency's condition managing in conjunction with being provided, comprise stopping that migration is hung up, operation, sleep state can successful switch if act on behalf of running status, carries out next step, otherwise get back to step 8)
Step 9). according to the runnable interface of acting on behalf of that the running status administration module provides of acting on behalf of of step 8), mode performing step 1 by instruction prefetch) the instruction transit module in, during test, fixing agency's order code is 0x17, if can reading command, and can move the agency, carry out next step, otherwise get back to step 9)
Step 10). the agency who acts on behalf of the running status administration module and provide according to step 8) moves interface, the characteristics of and limit on transmission bandwidth poor in view of the wireless network transmissions reliability, adopt and repeatedly to send, to act on behalf of burst and data packet acknowledgement mechanism performing step 3) in act on behalf of receiver module and act on behalf of transferring module, move success if comprise the agency of migration instruction, carry out next step, otherwise get back to step 10)
Step 11). adopt arithmetic and AOI computing to come performing step 2) in the fundamental operation instruction module; Adopt pop down to go out stack operation and come performing step 2) in the stack operation module; Adopt jump instruction to come performing step 2) in the program control instruction module; The device drives interface performing step 2 that provides by Man Disi) the device control instruction module in, comprise the operation of read-write node device, the input of testing these instructions then and the whether success of realization that whether is complementary through the later result of ordering calculation and judges each instruction module, be, then carry out next step, otherwise get back to step 11)
Step 12). each instruction module in combined command transit module and the step 11), testing procedure 11) every instruction realizing, observe the operation result of instruction, if operation is correct, carries out next step, otherwise get back to step 11),
Step 13). system testing is carried out in the different packing of orders together, comprise that operational order, program control instruction, agency move instruction, stack operation instruction, device control instruction, and in network, dispose node, the binary code load module of utilizing Man Disi to provide imports sensor node with platform and tests, content measurement is whether the proxy instructs computing is normal, can the agency move in network, if step 12) is got back in failure.
CNB2007100194971A 2007-01-29 2007-01-29 Development method of wireless sensor networks mobile agent platform based on Mandis Expired - Fee Related CN100428154C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007100194971A CN100428154C (en) 2007-01-29 2007-01-29 Development method of wireless sensor networks mobile agent platform based on Mandis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007100194971A CN100428154C (en) 2007-01-29 2007-01-29 Development method of wireless sensor networks mobile agent platform based on Mandis

Publications (2)

Publication Number Publication Date
CN101008893A CN101008893A (en) 2007-08-01
CN100428154C true CN100428154C (en) 2008-10-22

Family

ID=38697337

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007100194971A Expired - Fee Related CN100428154C (en) 2007-01-29 2007-01-29 Development method of wireless sensor networks mobile agent platform based on Mandis

Country Status (1)

Country Link
CN (1) CN100428154C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286911B (en) * 2008-03-05 2011-05-18 中国科学院嘉兴无线传感网工程中心 Networking method of wireless sensor network based on combination of cluster and Mesh
CN101710281B (en) * 2009-12-11 2013-01-23 西安电子科技大学 Dynamic integrated system and method of development platform based on Agent
CN102104612B (en) * 2009-12-21 2015-04-15 深圳先进技术研究院 Remote monitoring system and method based on mobile intelligent agent
CN103888954A (en) * 2012-12-20 2014-06-25 中国人民解放军总参谋部第六十一研究所 Service-oriented radio configuration SORA
CN105446872B (en) * 2014-08-29 2018-04-10 国际商业机器公司 Test manager, test agent device and the method for Mobile solution
CN105912345A (en) * 2016-05-09 2016-08-31 浪潮电子信息产业股份有限公司 Control node as well as system and method for refreshing external plugin card drives

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050256876A1 (en) * 2004-05-10 2005-11-17 Eidson John C Distributed applications using mobile agents
CN1776613A (en) * 2005-12-06 2006-05-24 南京邮电大学 Strategy-drive mobile intermediate development method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050256876A1 (en) * 2004-05-10 2005-11-17 Eidson John C Distributed applications using mobile agents
CN1776613A (en) * 2005-12-06 2006-05-24 南京邮电大学 Strategy-drive mobile intermediate development method

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
基于Mantis OS的无线传感器网络应用的研究. 段飞霞,王汝传,黄海平,孙力娟.电子工程师,第6期. 2006
基于Mantis OS的无线传感器网络应用的研究. 段飞霞,王汝传,黄海平,孙力娟.电子工程师,第6期. 2006 *
基于移动Agent的无线传感器网络数据管理框架. 叶宁,王汝传.电子工程师,第32卷第4期. 2006
基于移动Agent的无线传感器网络数据管理框架. 叶宁,王汝传.电子工程师,第32卷第4期. 2006 *
无线传感器网络硬件平台的研究与设计. 沙超,董挺挺,王汝传,孙力娟.电子工程师,第32卷第5期. 2006
无线传感器网络硬件平台的研究与设计. 沙超,董挺挺,王汝传,孙力娟.电子工程师,第32卷第5期. 2006 *

Also Published As

Publication number Publication date
CN101008893A (en) 2007-08-01

Similar Documents

Publication Publication Date Title
Liu et al. A survey on edge computing systems and tools
Dustdar et al. Smart cities
Weyns Architecture-based design of multi-agent systems
Mottola et al. Programming wireless sensor networks: Fundamental concepts and state of the art
Cao et al. Edge computing: a primer
CN102158554B (en) Mobile agent-based Internet of things middleware development method
Kushwaha et al. Oasis: A programming framework for service-oriented sensor networks
Weyns et al. Applying architecture-based adaptation to automate the management of internet-of-things
CN100428154C (en) Development method of wireless sensor networks mobile agent platform based on Mandis
CN109743893A (en) Method and apparatus for network slice
EP2455859B1 (en) Model-based programming, configuration, and integration of networked embedded devices for use in wireless sensor networks
Agirre et al. QoS aware middleware support for dynamically reconfigurable component based IoT applications
CN115543577B (en) Covariate-based Kubernetes resource scheduling optimization method, storage medium and device
Haghighi et al. Sensomax: An agent-based middleware for decentralized dynamic data-gathering in wireless sensor networks
Satoh Mobile agents
Schlatte et al. Modeling and analyzing resource-sensitive actors: a tutorial introduction
Pantoja et al. Exposing IoT objects in the internet using the resource management architecture
Kovtunenko et al. Multi-agent approach to computational resource allocation in edge computing
Mercadal et al. Improving the dynamism of mobile agent applications in wireless sensor networks through separate itineraries
Seghrouchni et al. Enablers for smart cities
da Silva Orchestration for Automatic Decentralization in Visually-defined IoT
Mordinyi Managing complex and dynamic software systems with space-based computing
Yao et al. [Retracted] Application Exploration of Scenario Logistics Ecosystem Based on beyond 5G and IoT Architecture
Rossouw A fault-tolerant wireless distributed computing platform for robot swarms
Bhatnagar et al. Cloud IoT: An Emerging Computing Paradigm for Smart World

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20070801

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000219

Denomination of invention: Development method of wireless sensor networks mobile agent platform based on Mandis

Granted publication date: 20081022

License type: Common License

Record date: 20161121

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
EC01 Cancellation of recordation of patent licensing contract
EC01 Cancellation of recordation of patent licensing contract

Assignee: Jiangsu Nanyou IOT Technology Park Ltd.

Assignor: Nanjing Post & Telecommunication Univ.

Contract record no.: 2016320000219

Date of cancellation: 20180116

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081022

Termination date: 20180129