CN106154921A - Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method - Google Patents

Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method Download PDF

Info

Publication number
CN106154921A
CN106154921A CN201610580248.9A CN201610580248A CN106154921A CN 106154921 A CN106154921 A CN 106154921A CN 201610580248 A CN201610580248 A CN 201610580248A CN 106154921 A CN106154921 A CN 106154921A
Authority
CN
China
Prior art keywords
task
module
parameter
master chip
mode area
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
Application number
CN201610580248.9A
Other languages
Chinese (zh)
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.)
Shanghai Renywell Technology Co Ltd
Original Assignee
Shanghai Renywell Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Renywell Technology Co Ltd filed Critical Shanghai Renywell Technology Co Ltd
Priority to CN201610580248.9A priority Critical patent/CN106154921A/en
Publication of CN106154921A publication Critical patent/CN106154921A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/21Pc I-O input output
    • G05B2219/21108Module, I-O module consisting of counters and comparators

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

nullThe present invention relates to a kind of Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method,Including master chip、Parameter collection module、GPRS communication module、GPS locating module、CAN drives module、Interface parameter display control circuit and electric power driving module,Also include that multiplex roles drives module,Described parameter collection module drives module to access master chip by multiplex roles,There is execution efficiency high、Take up room little、The features such as real-time performance is excellent and extensibility is strong,It is dispatched to processor by scheduler priority analyze and process,By parameter collection Info low for priority level by scheduler schedules to idle control zone delay process,Ensure important parameter priority treatment,When power is off or in the case of network connection interruption,The last of memorizer storage parameter collection module gathers data and operating system update data.

Description

Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method
Technical field
The present invention relates to agricultural machinery technological field, particularly relate to a kind of Intelligent agricultural machinery based on Internet of Things at a high speed Processing system and method.
Background technology
China is large agricultural country, but most agricultural production completes by manual labor substantially, sows, execute in most rural areas Fertilizer, irrigates and the operation such as harvesting, relies primarily on pure manual labor, and the most not only efficiency is low, and affect crops growth and Harvest.Even if some place achieve Mechanization sowing, apply fertilizer, the operation such as arable land, generally also need manpower to coordinate, and sow and The mechanized operations such as harvesting, fertilising are independent of one another, the most reasonably link together, also have impact on the efficiency of agricultural mechanical operation And the production cycle.Additionally substantially lean on irrigation amount the opportunity of agricultural irrigation the experience of people to judge, can not judge accurately Go out irrigation time and the irrigation volume of crops, irrigate and improper will cause the serious consequence such as crop production reduction, waste water resource.
Along with the development of technology of Internet of things and the demand to construction modern agriculture, Internet of Things is organic with agricultural mechanical operation Combine, for improve agricultural mechanical operation efficiency significant with yield.But China's agriculture production environment Changeable, agricultural production process disperses, and supplier is complicated, and demand is ever-changing waits difficulty.
During every job parameter of agricultural machinery, operational factor, ambient parameter are acquired, first, by In needing the overabundance of data that gathers, and the single acquisition cycle is the shortest, traditional processor gathers at multi-group data simultaneously, There will be during process, analysis to process and postpone even to cache the situation taking rear loss of data, seriously spun out agricultural The time cycle of mechanical treatment data, and greatly reduce the accuracy of Internet of Things collection agricultural machinery data.Second, in data During processing, storing, show, upload, owing to multi-group data runs simultaneously, embedded system is to system processing resources very Rely on, if system resource is deficient, task dispatcher can not Real-Time Scheduling, the reality of agricultural machinery processing system can be directly influenced Shi Xingneng.
Summary of the invention
The technical problem to be solved is to provide a kind of Intelligent agricultural machinery of based on Internet of Things high speed processing system System and method, first, use the master chip of MC9S12XEP100MAG model and use embedded real-time operating system, preferably μ C/OS kernel, compact structure, can reach the real-time disposal of multi-tasks of preemptive type, can manage at 64 parameter collection Info simultaneously Reason, and priority treatment priority is the highest and is in the parameter collection Info of the highest ready state, it is provided that parameter collection Info is dispatched Synchronize with between management, memory management, parameter collection Info task with communicate, the function such as time management and interruption service, have and hold The features such as line efficiency is high, it is little to take up room, real-time performance is excellent and extensibility is strong.Second, parameter collection module by connecing more Mouth driving module accesses master chip, reduces the use of master chip pin, reduces master chip selection cost, and multiplex roles driving module can To be concurrently accessed multiple parameter collection module, increase extended area and the expansion interface number of master chip, adopt for increasing parameter Collection module reserves corresponding expansion interface.3rd, the parameters information that parameter collection module can be collected by processor according to Process significance level and pass through priority identifier identification priority, parameter collection Info high for priority level is passed through scheduler Priority scheduling analyzes and processes to processor, by parameter collection Info low for priority level by scheduler schedules to idle control zone Delay process.4th, during priority identifier identification priority, preferential evaluator will need information to be processed according to information weight Wanting degree to be divided at least four task stack space, wherein GPS location/GPRS communications parameter collection information is preferential as first Level, the rotation step number counting of motor shows as third priority, LCD as the second priority, oil level/oil pressure parameter acquisition Show parameter as the 4th priority, so master chip carry out data process time, the first priority processing GPS location/GPRS is logical News parameter, it is to avoid time delay occur in location information and GPRS communication information;Stepping electricity in second priority processing instrument display panel The rotation step number counting of machine, it is to avoid occur starting speed display delay;Third priority processes oil pressure/oil in instrument display panel The reading that position postpones to occur postpones.5th, when the rotation step number counting of motor is as the second priority processing, in order to reduce The problem of motor pointer display delay on motor dial plate, within a processor, can by motor pointer Hunting range maximum angle is divided into 500~1000 equal portions, and encodes these 500~1000 equal portions, makes motor pointer pendulum Dynamic coding registration form, swings coding registration form instruction motor beat of pointer angle according to control signal power comparison motor Degree, swings the setting of coding registration form, substantially reduces the delay time of control signal A/D conversion, reduces instrument and becomes index The delay value of display.
The technical solution adopted for the present invention to solve the technical problems is:
Intelligent agricultural machinery high_speed stamping die based on Internet of Things, including master chip, parameter collection module, GPRS communication Module, GPS locating module, CAN drive module, interface parameter display control circuit and electric power driving module, described main core Sheet and engine parameter acquisition module drive module to electrically connect by CAN, described master chip the most respectively with in order to upper The GPRS communication module of machine communication electrically connects and electrically connects in order to position the GPS locating module of harvester position, described main core Sheet is connected with the interface parameter display control circuit in order to drive interface parameter to show, it is characterised in that also include that multiplex roles drives Dynamic model block, described parameter collection module drives module to access master chip by multiplex roles.
Further, also include that external memorizer, described external memorizer are connected with master chip.Described external memorizer is adopted Use IS61C1024AL model.
Further, the multiplex roles driving chip that described multiplex roles drives module to be VID6606 model, there are at least four groups Output interface, can simultaneously drive four motors in interface parameter display control circuit.Multiplex roles drives setting of module Putting the use reducing master chip pin, reduce master chip and select cost, multiplex roles drives module can be concurrently accessed multiple parameter Acquisition module, increases extended area and the expansion interface number of master chip, for increasing the reserved corresponding expansion of parameter collection module Exhibition interface.
Further, described master chip selects the master chip of MC9S12XEP100MAG model, master chip 23 foot and multiplex roles Driving module CWA pin to connect, 23 pins of master chip drive the FA pin of module to be connected with multiplex roles, 24 pins of master chip The CWB pin driving module with multiplex roles is connected, and 7 pins of master chip are connected to multiplex roles and drive the CWD pin of module, described Multiplex roles drives module at least to have outA interface, outB interface, outC interface and four, outD interface.
Further, described parameter collection module includes generator parameter acquisition module, auger parameter collection module, electric power storage Pond parameter detection module, inclination angle detection module, ambient parameter acquisition module, paddy full parameter collection module, threshing parameter acquisition mould One or more in block.
Intelligent agricultural machinery high speed processing method based on Internet of Things, comprises the following steps:
S01: system electrification, the principal function of master chip initializes, and intervalometer and interruption are provided with, can bus initialization The parameters sensor initializing of parameter collection module setting of making zero after having initialized with AD conversion;
S02: master chip creates startup task, keyboard task, instrument display task, parameter acquisition task, serial ports task, number According to the task of process and GPS location/GPRS communication task;Described instrument display task includes that the rotation counting display of motor is appointed One or more in business, interface background display task, interface parameter display task, LCD display task;Described parameter acquisition is appointed Business includes engine parameter acquisition tasks, oil level/oil pressure parameter acquisition task, flood dragon parameter acquisition task, ambient parameter collection One or more in task;
S03: create task control block and queue control block (QCB), and with the pointer OSQPtr in queue control block (QCB) by all queues Control block chaining is chained list, is contacted the task code in task control block and task stack by PC pointer and SP pointer and is transported Row;
S04: by GPS location/GPRS communication task, oil level/oil pressure parameter acquisition task, engine parameter acquisition tasks And/or flood dragon parameter acquisition task is set to periodically execution task;The rotation of motor is counted display task, the interface back of the body Scape display task, interface parameter display task, LCD display task and ambient parameter acquisition tasks are set to triggering task;
The priority orders of the task in the priority identifier identification step S03 of S05: master chip, priority identifier Preferential identification GPS location/GPRS communication task is as the first priority, and the rotation step number counting load of motor is as second Priority, oil level/oil pressure parameter acquisition task is as third priority, and LCD display task is as the 4th priority;Other tasks Successive arrangement priority orders;
S06: master chip is by GPS location/GPRS communication task high for priority level and engine parameter acquisition tasks, oil Position/oil pressure parameter acquisition task, flood dragon parameter acquisition task and/or ambient parameter acquisition tasks quasi-periodic perform task to be passed through Scheduler priority is dispatched to master chip analysis, processes, is stored in external memorizer and/or is uploaded to host computer, and master chip will The parameter collection Info that priority level is low passes through scheduler schedules to idle control zone delay process;
S07: when multiple parameter acquisition tasks operationally, when needing mutual ensuring escapement from confliction to call same shared resource, Master chip gives the priority level of each one semaphore task of parameter acquisition task, and collects these priority levels into signal Collection, the priority level that master chip obtains semaphore task according to task temporarily rises to all tasks during using shared resource Limit priority one level higher on, after this semaphore task makes to be finished shared resource release semaphore, then recover should The priority level that parameter acquisition task is original.
Further, in step S07: when parameter acquisition tasks obtains semaphore task, and share resource accessing After end, it is necessary to release semaphore, this semaphore task need to call function OSSemPost at transmission semaphore, OSSemPost function, before the counter operation to semaphore, first has to check whether the task of also waiting this semaphore, If it did not, just semaphore enumerator OSEventCnt is added one;Go to run wait if it has, then call scheduler OS_Sched The task that task medium priority is the highest.
Further, in step S07, need to access when an exclusive formula shares resource when parameter acquisition tasks it is necessary to Call function OSMutexPend and ask to manage the mutex signal of this resource, if semaphore has signal, then mean There is no other tasks at present and take shared resource, this parameter acquisition task can continue to run with and this exclusive formula is shared resource Row accesses, and otherwise parameter acquisition task is put into waiting state, shares other tasks of resource release until taking this exclusive formula Put this semaphore.
Further, include in described external memorizer that the first register mode area, the second register mode area, the 3rd register mode area and the 4th are posted Depositing district, described first register mode area is for depositing the parameter acquisition task of real-time update, and the registered data of the first register mode area is in power-off Can remove afterwards, the data of last parameters acquisition tasks before described second register mode area register system power-off, second The registered data of register mode area is not removed;Described 3rd register mode area is used for depositing real-time system more new data, and the 3rd posts The data depositing district can be eliminated after a loss of power;Described 4th register mode area is used for registration operations system data;When the 3rd register mode area System update data can move to the 4th register mode area after having downloaded, when in the 3rd register mode area after more new data is transferred, The data shifted are removed in three register mode areas.
Further, described operating system control with MCB the first register mode area in external memorizer, second Register mode area, the 3rd register mode area and the 4th register mode area, described external memorizer internal memory divides the first register mode area, the second register mode area, The method of the 3rd register mode area and the 4th register mode area is, one two-dimensional array of each register mode area definition, each in two-dimensional array Dimension group is exactly a memory block, when scheduler is not in use by a memory block, can it be discharged in time.
Beneficial effect
Owing to have employed above-mentioned technical scheme, the present invention compared with prior art, has the following advantages that and actively imitates Really:
First, use the master chip of MC9S12XEP100MAG model and use embedded real-time operating system, preferably μ C/OS kernel, compact structure, can reach the real-time disposal of multi-tasks of preemptive type, can manage at 64 parameter collection Info simultaneously Reason, and priority treatment priority is the highest and is in the parameter collection Info of the highest ready state, it is provided that parameter collection Info is dispatched Synchronize with between management, memory management, parameter collection Info task with communicate, the function such as time management and interruption service, have and hold The features such as line efficiency is high, it is little to take up room, real-time performance is excellent and extensibility is strong.Second, parameter collection module by connecing more Mouth driving module accesses master chip, reduces the use of master chip pin, reduces master chip selection cost, and multiplex roles driving module can To be concurrently accessed multiple parameter collection module, increase extended area and the expansion interface number of master chip, adopt for increasing parameter Collection module reserves corresponding expansion interface.3rd, the parameters information that parameter collection module can be collected by processor according to Process significance level and pass through priority identifier identification priority, parameter collection Info high for priority level is passed through scheduler Priority scheduling analyzes and processes to processor, by parameter collection Info low for priority level by scheduler schedules to idle control zone Delay process.4th, during priority identifier identification priority, preferential evaluator will need information to be processed according to information weight Wanting degree to be divided at least four task stack space, wherein GPS location/GPRS communications parameter collection information is preferential as first Level, the rotation step number counting of motor shows as third priority, LCD as the second priority, oil level/oil pressure parameter acquisition Show parameter as the 4th priority, so master chip carry out data process time, the first priority processing GPS location/GPRS is logical News parameter, it is to avoid time delay occur in location information and GPRS communication information;Stepping electricity in second priority processing instrument display panel The rotation step number counting of machine, it is to avoid occur starting speed display delay;Third priority processes oil pressure/oil in instrument display panel The reading that position postpones to occur postpones.5th, when the rotation step number counting of motor is as the second priority processing, in order to reduce The problem of motor pointer display delay on motor dial plate, within a processor, can by motor pointer Hunting range maximum angle is divided into 500~1000 equal portions, and encodes these 500~1000 equal portions, makes motor pointer pendulum Dynamic coding registration form, swings coding registration form instruction motor beat of pointer angle according to control signal power comparison motor Degree, swings the setting of coding registration form, substantially reduces the delay time of control signal A/D conversion, reduces instrument and becomes index The delay value of display.6th, the second register mode area and the setting of the 3rd register mode area, it is ensured that when power is off or network connection interruption In the case of, the last of memorizer storage parameter collection module gathers data and operating system update data.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of the present invention.
Fig. 2 is the circuit diagram that multiplex roles of the present invention drives module.
Fig. 3 is the circuit diagram of external memorizer of the present invention.
Fig. 4 is the circuit diagram of external memorizer interface of the present invention.
Fig. 5 is the FB(flow block) of one embodiment of the invention.
Fig. 6 is signal set operation of the present invention and controls schematic diagram.
Signal set operation and control schematic diagram when Fig. 7 is delay process of the present invention.
In the drawings: 1-task control block;2-queue control block (QCB);3-chained list;4-task code;5-delay process.
Detailed description of the invention
Below in conjunction with specific embodiment, the present invention is expanded on further.Should be understood that these embodiments are merely to illustrate the present invention Rather than restriction the scope of the present invention.In addition, it is to be understood that after having read the content that the present invention lectures, people in the art The present invention can be made various changes or modifications by member, and these equivalent form of values fall within the application appended claims equally and limited Scope.
Embodiments of the present invention:
Seeing Fig. 1~Fig. 7, Intelligent agricultural machinery high_speed stamping die based on Internet of Things, including master chip, parameter acquisition Module, GPRS communication module, GPS locating module, CAN drive module, interface parameter display control circuit and power drives Module, described master chip drives module to electrically connect with engine parameter acquisition module by CAN, and described master chip is also distinguished With in order to electrically connect with the GPRS communication module of upper machine communication and to be electrically connected in order to position the GPS locating module of harvester position Connecing, described master chip is connected with the interface parameter display control circuit in order to drive interface parameter to show, it is characterised in that also wrap Including multiplex roles and drive module, described parameter collection module drives module to access master chip by multiplex roles.
As the presently preferred embodiments, also include that external memorizer, described external memorizer are connected with master chip.Described external deposit Reservoir uses IS61C1024AL model.
As the presently preferred embodiments, described multiplex roles drives module to be the multiplex roles driving chip of VID6606 model, have to Few four groups of output interfaces, can simultaneously drive four motors in interface parameter display control circuit.Multiplex roles drives mould The use arranging minimizing master chip pin of block, reduces master chip and selects cost, and multiplex roles drives module can be concurrently accessed many Individual parameter collection module, increases extended area and the expansion interface number of master chip, reserves phase for increasing parameter collection module The expansion interface answered.
As the presently preferred embodiments, described master chip select MC9S12XEP100MAG model master chip, master chip 23 foot with Multiplex roles drives module CWA pin to connect, and 23 pins of master chip drive the FA pin of module to be connected with multiplex roles, master chip 24 pins drive the CWB pin of module to be connected with multiplex roles, and 7 pins of master chip are connected to multiplex roles and drive the CWD of module to draw Foot, described multiplex roles drives module at least to have outA interface, outB interface, outC interface and four, outD interface.
As the presently preferred embodiments, described parameter collection module includes generator parameter acquisition module, auger parameter acquisition mould Block, accumulator parameter detection module, inclination angle detection module, ambient parameter acquisition module, paddy full parameter collection module, threshing parameter One or more in acquisition module.
Intelligent agricultural machinery high speed processing method based on Internet of Things, comprises the following steps:
S01: system electrification, the principal function of master chip initializes, and intervalometer and interruption are provided with, can bus initialization The parameters sensor initializing of parameter collection module setting of making zero after having initialized with AD conversion;
S02: master chip creates startup task, keyboard task, instrument display task, parameter acquisition task, serial ports task, number According to the task of process and GPS location/GPRS communication task;Described instrument display task includes that the rotation counting display of motor is appointed One or more in business, interface background display task, interface parameter display task, LCD display task;Described parameter acquisition is appointed Business includes engine parameter acquisition tasks, oil level/oil pressure parameter acquisition task, flood dragon parameter acquisition task, ambient parameter collection One or more in task;
S03: create task control block and queue control block (QCB), and with the pointer OSQPtr in queue control block (QCB) by all queues Control block chaining is chained list, is contacted the task code in task control block and task stack by PC pointer and SP pointer and is transported Row;
S04: by GPS location/GPRS communication task, oil level/oil pressure parameter acquisition task, engine parameter acquisition tasks And/or flood dragon parameter acquisition task is set to periodically execution task;The rotation of motor is counted display task, the interface back of the body Scape display task, interface parameter display task, LCD display task and ambient parameter acquisition tasks are set to triggering task;
The priority orders of the task in the priority identifier identification step S03 of S05: master chip, priority identifier Preferential identification GPS location/GPRS communication task is as the first priority, and the rotation step number counting load of motor is as second Priority, oil level/oil pressure parameter acquisition task is as third priority, and LCD display task is as the 4th priority;Other tasks Successive arrangement priority orders;
S06: master chip is by GPS location/GPRS communication task high for priority level and engine parameter acquisition tasks, oil Position/oil pressure parameter acquisition task, flood dragon parameter acquisition task and/or ambient parameter acquisition tasks quasi-periodic perform task to be passed through Scheduler priority is dispatched to master chip analysis, processes, is stored in external memorizer and/or is uploaded to host computer, and master chip will The parameter collection Info that priority level is low passes through scheduler schedules to idle control zone delay process;
S07: when multiple parameter acquisition tasks operationally, when needing mutual ensuring escapement from confliction to call same shared resource, Master chip gives the priority level of each one semaphore task of parameter acquisition task, and collects these priority levels into signal Collection, the priority level that master chip obtains semaphore task according to task temporarily rises to all tasks during using shared resource Limit priority one level higher on, after this semaphore task makes to be finished shared resource release semaphore, then recover should The priority level that parameter acquisition task is original.
As the presently preferred embodiments, in step S07: when parameter acquisition tasks obtains semaphore task, and accessing altogether Enjoying after resource terminates, it is necessary to release semaphore, this semaphore task need to call function OSSemPost sending semaphore, OSSemPost function, before the counter operation to semaphore, first has to check whether the task of also waiting this semaphore, If it did not, just semaphore enumerator OSEventCnt is added one;Go to run wait if it has, then call scheduler OS_Sched The task that task medium priority is the highest.
As the presently preferred embodiments, in step S07, share resource when parameter acquisition tasks needs to access an exclusive formula Time it is necessary to call function OSMutexPend to ask to manage the mutex signal of this resource, if semaphore has signal, Then meaning that there is no other tasks at present takies shared resource, this parameter acquisition task can continue to run with and be total to this exclusive formula Enjoying resource to conduct interviews, otherwise parameter acquisition task is put into waiting state, until taking this exclusive formula to share its of resource His task releases this semaphore.
As the presently preferred embodiments, include in described external memorizer the first register mode area, the second register mode area, the 3rd register mode area and 4th register mode area, described first register mode area is for depositing the parameter acquisition task of real-time update, the registered data of the first register mode area Can remove after power is turned off, the number of last parameters acquisition tasks before described second register mode area register system power-off According to, the registered data of the second register mode area is not removed;Described 3rd register mode area is used for depositing real-time system more new data, The data of the 3rd register mode area can be eliminated after a loss of power;Described 4th register mode area is used for registration operations system data;When the 3rd posts Deposit after the system update data in district have been downloaded and can move to the 4th register mode area, when the more new data in the 3rd register mode area is transferred After, the data shifted are removed in the 3rd register mode area.
As the presently preferred embodiments, described operating system first is deposited with what MCB controlled in external memorizer District, the second register mode area, the 3rd register mode area and the 4th register mode area, described external memorizer internal memory divides the first register mode area, second The method of register mode area, the 3rd register mode area and the 4th register mode area is, one two-dimensional array of each register mode area definition, in two-dimensional array Each one-dimension array is exactly a memory block, when scheduler is not in use by a memory block, can it be discharged in time.

Claims (10)

1. Intelligent agricultural machinery high_speed stamping die based on Internet of Things, including master chip, parameter collection module, GPRS communication mould Block, GPS locating module, CAN drive module, interface parameter display control circuit and electric power driving module, described master chip With engine parameter acquisition module by CAN drive module electrically connect, described master chip the most respectively with in order to host computer The GPRS communication module of communication electrically connects and electrically connects in order to position the GPS locating module of harvester position, described master chip It is connected with the interface parameter display control circuit in order to drive interface parameter to show, it is characterised in that also include that multiplex roles drives Module, described parameter collection module drives module to access master chip by multiplex roles.
Intelligent agricultural machinery high_speed stamping die based on Internet of Things the most according to claim 1, it is characterised in that also wrap Including external memorizer, described external memorizer is connected with master chip.
Intelligent agricultural machinery high_speed stamping die based on Internet of Things the most according to claim 1, it is characterised in that described The multiplex roles driving chip that multiplex roles drives module to be VID6606 model, has at least four group output interfaces, can simultaneously drive Four motors in interface parameter display control circuit.
Intelligent agricultural machinery high_speed stamping die based on Internet of Things the most according to claim 1, it is characterised in that described Master chip selects the master chip of MC9S12XEP100MAG model, master chip 23 foot to drive module CWA pin to be connected with multiplex roles, 23 pins of master chip drive the FA pin of module to be connected with multiplex roles, and 24 pins of master chip drive module with multiplex roles CWB pin connects, and 7 pins of master chip are connected to multiplex roles and drive the CWD pin of module, and described multiplex roles drives module at least There is outA interface, outB interface, outC interface and four, outD interface.
Intelligent agricultural machinery high_speed stamping die based on Internet of Things the most according to claim 1, it is characterised in that described Parameter collection module includes generator parameter acquisition module, auger parameter collection module, accumulator parameter detection module, inclination angle inspection Survey one or more in module, ambient parameter acquisition module, paddy full parameter collection module, threshing parameter collection module.
6. Intelligent agricultural machinery high speed processing method based on Internet of Things, it is characterised in that comprise the following steps:
S01: system electrification, the principal function of master chip initializes, and intervalometer and interruption are provided with, can bus initialization and AD Transition initialization complete after the parameters sensor initializing of parameter collection module setting of making zero;
S02: master chip creates at startup task, keyboard task, instrument display task, parameter acquisition task, serial ports task, data Reason task and GPS location/GPRS communication task;Described instrument display task include motor rotation counting display task, One or more in interface background display task, interface parameter display task, LCD display task;Described parameter acquisition task Appoint including engine parameter acquisition tasks, oil level/oil pressure parameter acquisition task, flood dragon parameter acquisition task, ambient parameter collection One or more in business;
S03: create task control block and queue control block (QCB), and with the pointer OSQPtr in queue control block (QCB) by all queue controls Clamp dog is linked as chained list, is contacted the task code in task control block and task stack by PC pointer and SP pointer and is run It;
S04: by GPS location/GPRS communication task, oil level/oil pressure parameter acquisition task, engine parameter acquisition tasks and/or Flood dragon parameter acquisition task is set to periodically execution task;The rotation of motor is counted display task, interface background shows Show that task, interface parameter display task, LCD display task and ambient parameter acquisition tasks are set to triggering task;
The priority orders of the task in the priority identifier identification step S03 of S05: master chip, priority identifier is preferential Identification GPS location/GPRS communication task is as the first priority, and the rotation step number counting load of motor is preferential as second Level, oil level/oil pressure parameter acquisition task is as third priority, and LCD display task is as the 4th priority;Other tasks are follow-up Priority of disposing order order;
S06: master chip by GPS location/GPRS communication task high for priority level and engine parameter acquisition tasks, oil level/ Oil pressure parameter acquisition task, flood dragon parameter acquisition task and/or ambient parameter acquisition tasks quasi-periodic perform task by adjusting Degree device priority scheduling to master chip analysis, process, be stored in external memorizer and/or be uploaded to host computer, master chip is by excellent The parameter collection Info that first rank is low passes through scheduler schedules to idle control zone delay process;
S07: when multiple parameter acquisition tasks operationally, when needing mutual ensuring escapement from confliction to call same shared resource, main core Sheet gives the priority level of each one semaphore task of parameter acquisition task, and these priority levels is collected as signal collection, Master chip obtains the priority level of semaphore task according to task and temporarily rises to all tasks during resource using to share High priority one level higher on, after this semaphore task makes to be finished shared resource release semaphore, then recover this ginseng The priority level that number acquisition tasks is original.
Intelligent agricultural machinery high speed processing method based on Internet of Things the most according to claim 1, it is characterised in that in step In rapid S07: when parameter acquisition tasks obtains semaphore task, and after the shared resource of access terminates, it is necessary to release letter Number amount, this semaphore task send semaphore need to call function OSSemPost, OSSemPost function is at the meter to semaphore Before number device operation, first have to check whether the task of also waiting this semaphore, if it did not, just semaphore enumerator OSEventCnt adds one;Go to run the task that wait task medium priority is the highest if it has, then call scheduler OS_Sched.
Intelligent agricultural machinery high speed processing method based on Internet of Things the most according to claim 7, it is characterised in that in step In rapid S07, when parameter acquisition tasks needs to access when an exclusive formula shares resource it is necessary to call function OSMutexPend Request manages the mutex signal of this resource, if semaphore has signal, then means that there is no other tasks at present takies Sharing resource, this parameter acquisition task can continue to run with and this exclusive formula is shared resource and conduct interviews, otherwise parameter acquisition Task is put into waiting state, shares other tasks of resource release this semaphore until taking this exclusive formula.
Intelligent agricultural machinery high speed processing method based on Internet of Things the most according to claim 7, it is characterised in that described Include in external memorizer that the first register mode area, the second register mode area, the 3rd register mode area and the 4th register mode area, described first register mode area are used In depositing the parameter acquisition task of real-time update, the registered data of the first register mode area can be removed after power is turned off, and described second posts The data of last parameters acquisition tasks before depositing district register system power-off, the registered data of the second register mode area is in power-off After do not remove;Described 3rd register mode area is used for depositing real-time system more new data, and the data of the 3rd register mode area after a loss of power can be by Remove;Described 4th register mode area is used for registration operations system data;When the system update data of the 3rd register mode area have downloaded it After can move to the 4th register mode area, when in the 3rd register mode area after more new data is transferred, the number shifted is removed in the 3rd register mode area According to.
Intelligent agricultural machinery high speed processing method based on Internet of Things the most according to claim 9, it is characterised in that institute State operating system with MCB to the first register mode area controlling in external memorizer, the second register mode area, the 3rd register mode area and 4th register mode area, divides the first register mode area, the second register mode area, the 3rd register mode area and the 4th are deposited in described external memorizer internal memory The method in district is, one two-dimensional array of each register mode area definition, and each one-dimension array in two-dimensional array is exactly a memory block, When scheduler is not in use by a memory block, can in time it be discharged.
CN201610580248.9A 2016-07-22 2016-07-22 Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method Pending CN106154921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610580248.9A CN106154921A (en) 2016-07-22 2016-07-22 Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610580248.9A CN106154921A (en) 2016-07-22 2016-07-22 Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method

Publications (1)

Publication Number Publication Date
CN106154921A true CN106154921A (en) 2016-11-23

Family

ID=58060250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610580248.9A Pending CN106154921A (en) 2016-07-22 2016-07-22 Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method

Country Status (1)

Country Link
CN (1) CN106154921A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108593305A (en) * 2018-04-19 2018-09-28 浙江大学 A kind of agricultural machinery diesel engine real time execution monitoring of working condition instrument
CN109428946A (en) * 2017-08-31 2019-03-05 Abb瑞士股份有限公司 Method and system for Data Stream Processing
CN114323096A (en) * 2021-12-10 2022-04-12 中国船舶重工集团公司第七一九研究所 General type process parameter display instrument

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428946A (en) * 2017-08-31 2019-03-05 Abb瑞士股份有限公司 Method and system for Data Stream Processing
EP3451626A1 (en) * 2017-08-31 2019-03-06 ABB Schweiz AG Method and system for data stream processing
US10798011B2 (en) 2017-08-31 2020-10-06 Abb Schweiz Ag Method and system for data stream processing
CN108593305A (en) * 2018-04-19 2018-09-28 浙江大学 A kind of agricultural machinery diesel engine real time execution monitoring of working condition instrument
CN114323096A (en) * 2021-12-10 2022-04-12 中国船舶重工集团公司第七一九研究所 General type process parameter display instrument

Similar Documents

Publication Publication Date Title
CN106775599B (en) Multi-computing-unit coarse-grained reconfigurable system and method for recurrent neural network
CN103645954B (en) A kind of CPU dispatching method based on heterogeneous multi-core system, device and system
CN104317770B (en) Data store organisation for many-core processing system and data access method
CN111708641B (en) Memory management method, device, equipment and computer readable storage medium
CN106154921A (en) Intelligent agricultural machinery high_speed stamping die based on Internet of Things and method
CN103823706B (en) A kind of plant model analog simulation real-time scheduling method based on RTLinux
CN104486255A (en) Service resource dispatching method and device
CN101013986A (en) Method for realizing data inquiring system of sensor network based on middleware of mobile agent
CN110166975A (en) Agriculture internet of things sensors communication means based on wireless network and raspberry pie node
CN101290238A (en) Agricultural land information monitoring system based on ZigBee network and embedded 3S technology
CN102662641A (en) Parallel acquisition method for seed distribution data based on CUDA
CN202976230U (en) Pigeon racing timer
CN103440200B (en) A kind of height based on dual operating systems real-time big data quantity test back method
CN106557442A (en) A kind of chip system
CN108304344A (en) Computing unit and method for operating the same
CN109144749A (en) A method of it is communicated between realizing multiprocessor using processor
CN107741874A (en) A kind of GIS clouds virtual machine automatically creates method and system
CN205958988U (en) High -speed processing system of intelligent agriculture machinery based on thing networking
CN102195361B (en) Method for acquiring and processing data of intelligent distribution terminal of multi-core single chip
CN106293491B (en) The processing method and Memory Controller Hub of write request
CN110502543A (en) Device performance data storage method, device, equipment and storage medium
CN207216853U (en) Big data collector remotely configurable under a kind of manufacturing environment
CN109408118A (en) MHP heterogeneous multiple-pipeline processor
CN108595156A (en) A kind of batch processing method and system based on Impala components
CN105183628B (en) A kind of embedded system log collection device, record system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161123

WD01 Invention patent application deemed withdrawn after publication