CN109361761A - A kind of Internet of Things communication terminal operating system - Google Patents

A kind of Internet of Things communication terminal operating system Download PDF

Info

Publication number
CN109361761A
CN109361761A CN201811404521.8A CN201811404521A CN109361761A CN 109361761 A CN109361761 A CN 109361761A CN 201811404521 A CN201811404521 A CN 201811404521A CN 109361761 A CN109361761 A CN 109361761A
Authority
CN
China
Prior art keywords
data
layer
communication
internet
protocol
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811404521.8A
Other languages
Chinese (zh)
Other versions
CN109361761B (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 Chao Yan Intelligent Technology Co Ltd
Original Assignee
Nanjing Chao Yan Intelligent 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 Nanjing Chao Yan Intelligent Technology Co Ltd filed Critical Nanjing Chao Yan Intelligent Technology Co Ltd
Priority to CN201811404521.8A priority Critical patent/CN109361761B/en
Publication of CN109361761A publication Critical patent/CN109361761A/en
Application granted granted Critical
Publication of CN109361761B publication Critical patent/CN109361761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/62Establishing a time schedule for servicing the requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/321Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers

Abstract

The present invention discloses a kind of Internet of Things communication terminal operating system, comprising: application layer, protocol layer, data link layer and communication layers;The application layer is for being acquired on-site signal and being transmitted to internet-of-things terminal and protocol layer;Whether the protocol layer carries out assembling and the conversion of protocol format to the collected initial data of application layer, generate number, verification data, encrypt and encryption method and the server for being transmitted to internet-of-things terminal;The data of the protocol layer received are scheduled by the data link layer, and are sent to communication layers using priority scheduling algorithm;The server communication connection of the input terminal of the communication layers and the internet-of-things terminal, each functional module of layered shaping;Data link layer does the scheduling and distribution of data content, and operates specific communication module, reduces the operation difficulty to communication module.

Description

A kind of Internet of Things communication terminal operating system
Technical field
The invention belongs to the technical fields of communication system, more particularly to a kind of Internet of Things communication terminal operating system.
Background technique
Internet-of-things terminal collection on-site data gathering and it is in communication in one, field data can pass through RS232/RS485/Can etc. Bus acquisition, is then sent by network, general by way of the transmission AT order of Uart bus or embedded TCP/IP agreement It sends.
The characteristics of according to field data, internet of things equipment will be designed to diversified forms, to meet the requirement of different rates, lead to Letter mode will also be selected according to data characteristics, and low speed can select GPRS, the modules such as NBIOT, and high speed can be selected 4G, the schemes such as Ethernet.It therefore, is that optional module is more the characteristics of internet of things equipment, terminal type is also varied.
But a problem is brought in this way, is exactly the management trouble to these modules, for single internet-of-things terminal, collection At module and few, complex operations system administration is not needed, a software program can complete all working, but optional type More, business becomes increasingly complex, and with the increase of optional module, the complexity of portfolio, software development workload estimate increases in geometric progression Add, if none good management software, Added Business can not almost be carried out, and previous code can not also be safeguarded.
Summary of the invention
The present invention is to solve technical problem present in above-mentioned background technique, provides a kind of operation side by internet-of-things terminal Formula is unified, and the data obtained from multiple data sources are able to use in the network that different links is sent, system according to data source into Row content scheduling, the Internet of Things communication terminal operation system that external equipment can also be controlled according to the instruction that network issues System.
The present invention is achieved through the following technical solutions: a kind of Internet of Things communication terminal operating system, comprising: application layer, Protocol layer, data link layer and communication layers;The input terminal communication connection of the output end of the application layer and the protocol layer;It is described The input terminal communication connection of the output end of protocol layer and the data link layer;The output end of the data link layer leads to described Believe the input terminal communication connection of layer;
The application layer is for being acquired on-site signal and being transmitted to internet-of-things terminal and protocol layer;
The protocol layer to the collected initial data of application layer carry out assembling and protocol format conversion, generate number, Whether verification data encrypt and encryption method and the server for being transmitted to internet-of-things terminal;
The data of the protocol layer received are scheduled by the data link layer, and are sent using priority scheduling algorithm To communication layers;
The server communication connection of the input terminal of the communication layers and the internet-of-things terminal, and be arranged in the communication layers Moment point, each timer arrive, and communication layers can all count.
In a further embodiment, the application layer, protocol layer, data link layer and communication layers pass through public affairs between each other Interface connection altogether.
In a further embodiment, the application layer is by RS232, the buses such as RS485, CAN and external sensor The connection of respective bus interface, and communicate with, and the acquisition data that sensor returns are sent to protocol layer.
In a further embodiment, the protocol layer is made by protocol layer abstract structure gymnastics, specifically includes the following steps:
Step (1): specific communication protocol is selected in the initialization of protocol layer abstract structure body.
Step (2): setting protocol header starts comprising termination number, data length, check value, encryption method and agreement Condition code;
Step (3): the data received in application layer are parsed, and according to protocol packing at defined format;
Step (4): the data issued for server are transmitted to corresponding application layer process after unpacking according to agreement.
In a further embodiment, the data link layer determines the content of communication layer data, in sending link, the layer Protocol layer data is scheduled, is just directly transmitted when communication link is unimpeded, is otherwise just temporarily stored in inside the caching of terminal, to Link communication recovery is sent out again;When receiving, the data received are issued protocol layer by this layer of meeting.
In a further embodiment, the priority scheduling algorithm includes:
Step 1: n data source of setting, the n data source are S1、S2、S3…Sn, the n data source it is initial excellent First grade is set as a1、a2、a3…an, the data source priority after optimization is w1、w2、w3…wn
Step 2: each data source S of time t moment is setiThe data quantity C of arrivalit, last time not sent complete data Amount is RitAnd CitAnd RitSummation Lit;Work as CitMore hour proves data source S at this timeiThe data volume of transmission is smaller, real-time It is more demanding, need higher priority to send;Work as LitThe bigger data volume for illustrating data source accumulation is more, to empty in time Caching, it is similarly desirable to increase it sends priority;
Step 3: for these data source datas processing there is being lined up, cpu handle the every number of transmission one by one It according to the data in source, will wait in line in a fairly large number of situation of data source, and thus constitute a queuing system;In order to Priority of these data sources under the conditions of different disposal is specified, handles such case using queueing theory;
Step 4: the data source number in moment t system is N (t), by queueing theory it is found that working asWhen 1, N (t) It is not traversal, and as ρ < 1, N (t) is traversal, and average queue length at steady state is? After obtaining average queue length, then calculates separately t moment at steady state and be averaged the arrival byte number N in each arrival queuetWith Accumulated bytes number Mt:
According to above-mentioned derivation, a data source S is proposediIn the priority calculation formula of t moment:
In a further embodiment, which does system initialization before use, successively to carry out communication layers initialization, Data link layer initialization, protocol layer initialization and application layer initialization;The while for entering system standby after the completion of initialization is followed In ring, the timed task of low rights can be run herein, and excitation Internet of Things is whole when specific business being waited to arrive under normal condition The timer at end, after timer interruption, system is transferred to specific service operation.
Beneficial effects of the present invention: each functional module of layered shaping;Data link layer is done the scheduling of data content and is divided Hair, and specific communication module is operated, reduce the operation difficulty to communication module;Protocol layer carries out encoding and decoding processing to data, makes Its data for capableing of transmission server interaction;Interaction between module is carried out by abstract structure body, and concrete function is only each It is realized in functional module, external operation is carried out by abstract structure body, reduces the degree of coupling between modules;Communication Module can self-setting timer period, adapted to the requirement of different transmission rates.
Detailed description of the invention
Fig. 1 is the inside connection figure of Internet of Things communication terminal operating system of the present invention.
Fig. 2 is the structure chart of the protocol layer in the present invention.
Fig. 3 is the flow chart of data dispatch in the present invention
Fig. 4 is the structure chart of data link layer in the present invention.
Fig. 5 is the flow chart of system initialization of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
A kind of Internet of Things communication terminal operating system, comprising: application layer, protocol layer, data link layer and communication layers.Such as figure Shown in 1, the input terminal communication connection of the output end of the application layer and the protocol layer;The output end of the protocol layer with it is described The input terminal communication connection of data link layer;The output end of the data link layer and the input end communication of the communication layers connect It connects;The application layer, protocol layer, data link layer and communication layers pass through common interface between each other and connect.Avoid depth coupling It closes, programmer is facilitated to develop.
The application layer is for being acquired on-site signal and being transmitted to internet-of-things terminal and protocol layer.It can pass through The buses such as RS232, RS485, CAN carry out data transmission, and internet-of-things terminal can read these data, also have terminal direct Analog signal is acquired, by AD conversion at digital signal.In turn, terminal can also be sent instructions to outer by these buses Portion's equipment.The data of this part are all initial data, will not directly be transmitted online.
In the present embodiment, application layer mainly handle with the data interaction of external sensor, with most of sensors offer RS485 bus interface for, application layer says the word by 485 to sensor, the data of return be sent to protocol layer assembling.This The processing strategie of layer can be by user's self-defining, as long as original data processing is good, it only carries out data with protocol layer Interaction, does not contact directly with other layers.
The protocol layer to the collected initial data of application layer carry out assembling and protocol format conversion, generate number, Whether verification data encrypt and encryption method and the server for being transmitted to internet-of-things terminal;In order to server processing these Message.There are many protocol format, such as the JTT808 agreement of vehicle-mounted emphasis, electric vehicle national standard agreement, the electricity such as IEC61850 for every profession and trade Network data, there are also the customized communication formats of producer.Protocol layer mainly completes the coding and decoding to real time data, which can be with Made by protocol layer abstract structure gymnastics, finally by specific protocol realization, specific structure is as shown in Figure 2.
The content of protocol layer abstract structure body PROTOCOL_OP is as shown in table 1.
The content of 1 protocol layer abstract structure body PROTOCOL_OP of table
By taking the DMOP agreement developed on the basis of we are referring to national standard electric vehicle data standard as an example, its heading are as follows:
When realization, which need to realize the function in PROTOCOL_OP, and is directed toward protocol layer abstract structure body, sound Bright following variable:
PROTOCOL_OP g_PRO_DMOP_op=
{
.ProtoName=" DMOP ",
.m_RecvCharcter=" ## ",
.Init=Dmop_Init,
.AssemBuff=Dmop_AssemBuff,
.RecvFunc=DmopRecvFunc,
.RecvAppFunc=NULL//this agreement is not needed to hardware operation, so function does not have to realize
};
Then g_PRO_DMOP_op is directed toward virtual architecture body, when other each layers use this layer, it is only necessary to by virtually tying The data manipulation of DMOP agreement can be realized in structure body pointer operation.
The data of the protocol layer received are scheduled by the data link layer, and are sent using priority scheduling algorithm To communication layers.The data link layer determines the content of communication layer data, and in sending link, which adjusts Protocol layer data Degree, just directly transmits when communication link is unimpeded, is otherwise just temporarily stored in inside the caching of terminal, sends out again to link communication recovery; When receiving, the data received are issued communication layers by this layer of meeting.
This layer of use priority dispatching algorithm come determine send content, for different data sources data carry out priority Sequence, the priority of each data source are that dynamic adjusts.
In practice, the MCU processing capacity of internet of things equipment is all weaker, is not suitable for more complex priority calculating side Method, it is proposed that a kind of priority scheduling algorithm of simplification, both ensure that the transmission of significant data, and can also take into account MCU in this case Operational capability.
The priority scheduling algorithm includes:
Step 1: n data source of setting, the n data source are S1、S2、S3…Sn, the n data source it is initial excellent First grade is set as a1、a2、a3…an, the data source priority after optimization is w1、w2、w3…wn
Step 2: each data source S of time t moment is setiThe data quantity C of arrivalit, last time not sent complete data Amount is RitAnd CitAnd RitSummation Lit;Work as CitMore hour proves data source S at this timeiThe data volume of transmission is smaller, real-time It is more demanding, need higher priority to send;Work as LitThe bigger data volume for illustrating data source accumulation is more, to empty in time Caching, it is similarly desirable to increase it sends priority;
Step 3: for these data source datas processing there is being lined up, cpu handle the every number of transmission one by one It according to the data in source, will wait in line in a fairly large number of situation of data source, and thus constitute a queuing system;In order to Priority of these data sources under the conditions of different disposal is specified, handles such case using queueing theory;
For these data source datas processing there is being lined up, cpu handle each data source of transmission one by one Data will be waited in line in a fairly large number of situation of data source, thus constitute a queuing system.In order to it is clear this A little priority of data source under the conditions of different disposal, we handle such case using queueing theory.M/M/1 queuing is single The queuing system of waiter, these data source datas arrive interval time obedience parameter as the exponential distribution of λ, handle time obedience Parameter is the exponential distribution of μ, and independent same distribution;
Step 4: the data source number in moment t system is N (t), by queueing theory it is found that working asWhen 1, N (t) It is not traversal, and as ρ < 1, N (t) is traversal, and average queue length at steady state is? After obtaining average queue length, then calculates separately t moment at steady state and be averaged the arrival byte number N in each arrival queuetWith Accumulated bytes number Mt:
According to above-mentioned derivation, a data source S is proposediIn the priority calculation formula of t moment:
In specific site environment, the case where most of us encounter, is while acquiring RS485 facility information and can is total Line information.For RS485 facility information, Modbus agreement is mostly used greatly, is had the characteristics that short and pithy.And for Can bus message, although the data to arrive every time are few, its real-time is more demanding, and the data of a period are complete Portion, which is packaged, to be uploaded, this has been received that more data need to send when will lead to sending node.
In view of the reliability of communication and the bearing capacity of link, the every 5s of communication layers is designed to server and uploads data, The maximum length for uploading data is 800 bytes.It is excellent for calculating its that the data in a period of time are intercepted at random by serial ports tool First grade is simultaneously compared with actual conditions.
2 data source data of table
If M/M/1 model: in data sending instant, the data source data arrival time reached at random is obeyedFinger Number distribution, processing time obeyExponential distribution, calculate these data sources arrive when average queue lengthAvailable L=9, then by the arrival byte number in the average queue length for calculating each moment t NtWith accumulated bytes number Mt, as shown in table 3
Arrival byte number N in 3 average queue length of tabletWith accumulated bytes number Mt
ForIn ai, initial situation divide into 485 data sources have compared with Gao You It is each to calculate each communication occasions of communication layers according to table 2 and table 3 by first grade a1=1, the lower a2=2 of the priority of can data source The specific priority of data source, as shown in table 4.
4 data source priority ω of tablei
Time (t) 485 data source priority ω1 Can data source priority ω2
5 0.079 4.997
10 1.027 0.964
15 0.060 1.182
20 0.079 0.018
25 1.027 2.116
30 0.960 0.835
Data source priority each time is calculated, the average queue length L in the 5s period is first calculated, then according to formula point The priority π 1 and π 2 of 485 data sources and can data sources at this time are not calculated, compare its size, it is lesser to possess compared with Gao You First grade.Through calculating find, communication layers each time to server upload data when, system can in the light of actual conditions under Optimal mode selects to need the data of the data source sent, rather than selection needs are arranged according to priority predetermined The data of the data source of transmission.The selected data source sent of system is consistent with the case where manually calculating, and meets expection.
The scheduling of data realizes that the content interacted with server includes real time data, operational order in this layer, and buffer area is temporary Deposit data etc..Data mode is adjusted according to content.
For example, data mode is indicated with DataState, it is specific to be worth are as follows:
Value Meaning
FWDATA Firmware update
RTDATA Real time data
UNSEND What transmission was kept in does not send out data
HBDATA Send heartbeat packet
The flow chart of data dispatch is as shown in Figure 3.
Reception for data, this layer mainly establish a data receiver hook array, according to the condition code of different data, Hook Function is called, for example, the unit of the hook array of setting, has the following structure:
RECV_FUNC
For example the beginning of some agreements has " ## " mark, system arrives agreement mark and corresponding protocol processes function registration The array.When the data for having the agreement arrive, this layer of meeting is transmitted to protocol layer by function hook and handles.
This layer of abstract structure body DATALL_OP defined to communication module operation, communication module need to realize specific function, Then these functions are assigned to these pointers, so that it may run.Its structure is as shown in Figure 4.
The content of this layer of abstract structure body DATALL_OP is as follows:
After timer is arranged in communication module, the Timing Processing function of module can be linked in the timer clock of system, place It manages function to realize to the finite state machine of module, regularly sends the data that link layer is sent.
By taking the middle M6313 module for moving Internet of Things as an example, which is a GPRS module, realizes communication bottom in the present system Data transmit-receive, according to the DATALL_OP structural body of link layer, as long as realizing that these functions can be connected in system, than Such as, the structural body of M6313_op is stated:
DATALL_OP M6313_op=
{
.init=M6313_init,
.SetSend=M6313_SetSend,
.send=M6313_Send,
.recv=M6313_Recv,
.checkLos=M6313_CheckLos,
.reboot=M6313_reboot,
.close=M6313_close
};
According to the AT Command Reference of M6313, as long as realizing these functions in structural body.
The server communication connection of the input terminal of the communication layers and the internet-of-things terminal, and be arranged in the communication layers Moment point, each timer arrive, and communication layers can all count.
The system does system initialization before use, successively to carry out communication layers initialization, data link layer initialization, association Discuss layer initialization and application layer initialization;Enter in the while circulation of system standby after the completion of initialization, the timing of low rights is appointed Business can be run herein, the timer of excitation internet-of-things terminal when specific business being waited to arrive under normal condition, in timer It has no progeny, system operation.
As shown in figure 5, system initialization mainly initializes the operation of MCU, such as clock, timer interruption.
Communication module initializes mainly the characteristics of according to specific module, initializes associated buffer.
Chain path level initialization does data field, scheduling strategy, and firmware update resumes the initialization in region.
Terminal number configuration, heading setting etc. are done in protocol layer initialization.
Application layer initializes the setting for doing data data acquisition bus, such as the configuration of RS485 bus.
Enter in the while circulation of system standby after the completion of initialization, the timed task of some low rights can be herein Operation.The timer interruption for usually waiting for exciting when specific business arrives is operated.
Timed task is placed in fixed cycle operator array, and the unit of the array is function of time structural body, and content is as follows: TIMER_FUNC
Type Title Purposes
int tID The ID of timer
void (*time_function)() The entry address of Timing Processing function
int ticks The period that timing executes, the multiple of Base clock
In initialization, each module using timed task need to be by respective Timing Processing function registration to this array In, after timer interruption generation, the processing function ISR of the interruption can successively call the processing function in array.

Claims (7)

1. a kind of Internet of Things communication terminal operating system characterized by comprising application layer, protocol layer, data link layer and logical Believe layer;The input terminal communication connection of the output end of the application layer and the protocol layer;The output end of the protocol layer with it is described The input terminal communication connection of data link layer;The output end of the data link layer and the input end communication of the communication layers connect It connects;
The application layer is for being acquired on-site signal and being transmitted to internet-of-things terminal and protocol layer;
The protocol layer carries out assembling and the conversion of protocol format to the collected initial data of application layer, generates number, verification Whether data encrypt and encryption method and the server for being transmitted to internet-of-things terminal;
The data of the protocol layer received are scheduled by the data link layer, and it is logical to use priority scheduling algorithm to be sent to Believe layer;
The server communication connection of the input terminal of the communication layers and the internet-of-things terminal, and the moment is set in the communication layers Point, each timer arrive, and communication layers can all count.
2. a kind of Internet of Things communication terminal operating system according to claim 1, which is characterized in that the application layer, association View layer, data link layer pass through common interface with communication layers between each other and connect.
3. a kind of Internet of Things communication terminal operating system according to claim 1, which is characterized in that the application layer passes through The connection of the respective bus interface of the buses such as RS232, RS485, CAN and external sensor, and communicate with, and sensor is returned Acquisition data be sent to protocol layer.
4. a kind of Internet of Things communication terminal operating system according to claim 1, which is characterized in that the protocol layer is by assisting The gymnastics of layer abstract structure is discussed to make, specifically includes the following steps:
Step (1): specific communication protocol is selected in the initialization of protocol layer abstract structure body.
Step (2): setting protocol header includes termination number, data length, check value, the feature that encryption method and agreement start Code;
Step (3): the data received in application layer are parsed, and according to protocol packing at defined format;
Step (4): the data issued for server are transmitted to corresponding application layer process after unpacking according to agreement.
5. a kind of Internet of Things communication terminal operating system according to claim 1, which is characterized in that the data link layer Determine the content of communication layer data, in sending link, which is scheduled Protocol layer data, when communication link is unimpeded with regard to straight It receives and sends, is otherwise just temporarily stored in inside the caching of terminal, sent out again to link communication recovery;When receiving, this layer of meeting will be received Data issue protocol layer.
6. a kind of Internet of Things communication terminal operating system according to claim 1, which is characterized in that the priority scheduling Algorithm includes:
Step 1: n data source of setting, the n data source are S1、S2、S3…Sn, the initial priority of the n data source It is set as a1、a2、a3…an, the data source priority after optimization is w1、w2、w3…wn
Step 2: each data source S of time t moment is setiThe data quantity C of arrivalit, last time, not sent complete data volume was RitAnd CitAnd RitSummation Lit;Work as CitMore hour proves data source S at this timeiThe data volume of transmission is smaller, requirement of real-time It is higher, need higher priority to send;Work as LitThe bigger data volume for illustrating data source accumulation is more, to empty in time slow It deposits, it is similarly desirable to increase it sends priority;
Step 3: for these data source datas processing there is being lined up, cpu handle each data source of transmission one by one Data, will wait in line in a fairly large number of situation of data source, and thus constitute a queuing system;In order to clear Priority of these data sources under the conditions of different disposal, handles such case using queueing theory;
Step 4: the data source number in moment t system is N (t), by queueing theory it is found that working as N (t) is not Traversal, and as ρ < 1, N (t) is traversal, and average queue length at steady state isIt is obtaining After average queue length, then calculates separately t moment at steady state and be averaged the arrival byte number N in each arrival queuetWith it is accumulative Byte number Mt:
According to above-mentioned derivation, a data source S is proposediIn the priority calculation formula of t moment:
7. a kind of Internet of Things communication terminal operating system according to claim 1, which is characterized in that the system is before use System initialization is done, it is initial successively to carry out communication layers initialization, data link layer initialization, protocol layer initialization and application layer Change;Enter in the while circulation of system standby after the completion of initialization, the timed task of low rights can be run herein, normally The timer of internet-of-things terminal is excited when specific business being waited to arrive under state, after timer interruption, system is transferred to specific business Operation.
CN201811404521.8A 2018-11-23 2018-11-23 Internet of things communication terminal operating system Active CN109361761B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811404521.8A CN109361761B (en) 2018-11-23 2018-11-23 Internet of things communication terminal operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811404521.8A CN109361761B (en) 2018-11-23 2018-11-23 Internet of things communication terminal operating system

Publications (2)

Publication Number Publication Date
CN109361761A true CN109361761A (en) 2019-02-19
CN109361761B CN109361761B (en) 2020-03-31

Family

ID=65338661

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811404521.8A Active CN109361761B (en) 2018-11-23 2018-11-23 Internet of things communication terminal operating system

Country Status (1)

Country Link
CN (1) CN109361761B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166340A (en) * 2019-06-05 2019-08-23 北京京投信安科技发展有限公司 T-NET full system type pictorial single line multi-source data acquiring and transmission system
CN116684203A (en) * 2023-08-03 2023-09-01 南京南自华盾数字技术有限公司 Method and system for realizing ModbusTCP protocol security protection without code variation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168056A (en) * 2014-09-01 2014-11-26 绵阳灵通电讯设备有限公司 Satellite communication terminal based on Android operating system
CN104994536A (en) * 2015-07-13 2015-10-21 苏州大学 Configuration method and portable configuration device oriented to WSCN (Wireless Sensor & Controller Node)
CN105721555A (en) * 2016-01-25 2016-06-29 英科信息技术(北京)有限公司 Operation system for Internet of things and terminal device of Internet of things
WO2016201974A1 (en) * 2015-06-15 2016-12-22 清华大学深圳研究生院 Operation control unit-based cross-protocol distributed cloud storage system and data management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168056A (en) * 2014-09-01 2014-11-26 绵阳灵通电讯设备有限公司 Satellite communication terminal based on Android operating system
WO2016201974A1 (en) * 2015-06-15 2016-12-22 清华大学深圳研究生院 Operation control unit-based cross-protocol distributed cloud storage system and data management method
CN104994536A (en) * 2015-07-13 2015-10-21 苏州大学 Configuration method and portable configuration device oriented to WSCN (Wireless Sensor & Controller Node)
CN105721555A (en) * 2016-01-25 2016-06-29 英科信息技术(北京)有限公司 Operation system for Internet of things and terminal device of Internet of things

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王沁等: ""固定优先级抢占调度算法下非周期任务实时性能研究"", 《小型微型计算机系统》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166340A (en) * 2019-06-05 2019-08-23 北京京投信安科技发展有限公司 T-NET full system type pictorial single line multi-source data acquiring and transmission system
CN116684203A (en) * 2023-08-03 2023-09-01 南京南自华盾数字技术有限公司 Method and system for realizing ModbusTCP protocol security protection without code variation
CN116684203B (en) * 2023-08-03 2023-12-22 南京南自华盾数字技术有限公司 Method and system for realizing ModbusTCP protocol security protection without code variation

Also Published As

Publication number Publication date
CN109361761B (en) 2020-03-31

Similar Documents

Publication Publication Date Title
US6301527B1 (en) Utilities communications architecture compliant power management control system
CN100514233C (en) EPA on-site controller based on SOPC
CN101572702B (en) Method for scheduling high-speed bus master and slave network communication
CN104579862B (en) Data communication network for aircraft
US6993769B2 (en) System and method for replacing underlying connection-based communication mechanisms in real time systems at run-time
CN109361761A (en) A kind of Internet of Things communication terminal operating system
CN102427417A (en) System and method for remotely controlling Internet of things access equipment
CN109981724A (en) A kind of internet-of-things terminal based on block chain, artificial intelligence system and processing method
CN104579864B (en) Data communication network for aircraft
CN111366208B (en) Data acquisition method based on upper and lower layer communication among platform, remote transmission equipment and water meter
CN108848133B (en) A kind of Hub controller design method of Facing to Manufacturing Internet of Things
CN105429781A (en) Network communication design method based on IEC1850/MMS
CN110225086A (en) A kind of collecting method and system towards industrial Internet of Things
CN109327511A (en) A kind of data request method and server based on http protocol
CN105245424B (en) The method that PROFIBUS DP and PROFINET communication network are interconnected by shared memory
CN103034543A (en) Communication method among multiple software operating environments and method for enabling multiple software operating environments to communicate
CN206773708U (en) Intelligent traditional Chinese medical science detection information shared system
CN110031052A (en) Water meter system and method under a kind of long-range control
CN103049409B (en) One-way high-speed data transmission control method
CN113553279B (en) RDMA communication acceleration set communication method and system
CN202406127U (en) Remote control system for access device of Internet of Things
CN107104866A (en) A kind of intelligent data bus protocol and system
CN209248754U (en) Data collector based on the communication of networking module
CN108900259A (en) A kind of online underwater sound communication test of heuristics device based on multi-core processor
CN110572790B (en) Rural express delivery small cage reading system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant