CN110119282A - A kind of internet-of-things terminal and system based on general-purpose built-in type computer - Google Patents

A kind of internet-of-things terminal and system based on general-purpose built-in type computer Download PDF

Info

Publication number
CN110119282A
CN110119282A CN201910395929.1A CN201910395929A CN110119282A CN 110119282 A CN110119282 A CN 110119282A CN 201910395929 A CN201910395929 A CN 201910395929A CN 110119282 A CN110119282 A CN 110119282A
Authority
CN
China
Prior art keywords
unit
function
internet
program
software
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
CN201910395929.1A
Other languages
Chinese (zh)
Other versions
CN110119282B (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.)
Suzhou University
Original Assignee
Suzhou 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 Suzhou University filed Critical Suzhou University
Priority to CN201910395929.1A priority Critical patent/CN110119282B/en
Publication of CN110119282A publication Critical patent/CN110119282A/en
Application granted granted Critical
Publication of CN110119282B publication Critical patent/CN110119282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • 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

Abstract

The embodiment of the present application provides a kind of internet-of-things terminal based on general-purpose built-in type computer, comprising: software layer and hardware layer;Software layer includes: the first unit for encapsulating the BIOS program including GPIO, UART, AD and Flash basic function component and communications module building blocks of function, and the first unit is used to determine core clock and bus clock, one timer of starting, provides function of time calling interface, provides common bottom layer driving method of calling and starting RTOS towards knowledge element;The second unit for calling the User program of the building blocks of function in the first unit is encapsulated, the second unit calls the building blocks of function in the first unit for instruction depending on the user's operation.The internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application, improves the granularity of hardware design and the granularity of software programming, while improving the portability of software.

Description

A kind of internet-of-things terminal and system based on general-purpose built-in type computer
Technical field
This application involves internet of things field more particularly to a kind of internet-of-things terminals based on general-purpose built-in type computer And system.
Background technique
Microcontroller is the core of internet-of-things terminal UE, carries sensor sample, filtering processing, fusion calculation, leads to The functions such as letter, control executing agency.MCU manufacturer is often equipped with a thick reference manual, few then several louvers, Duo Zeke Up to page nearly thousand.Many producers also provide software development kit (Software Development Kit, SDK).But MCU is answered Too many energy is generally taken in bottom layer driving with developer, and there are hardware and software development granularities for the development scheme of terminal UE The problems such as low, portable weak.
(1) hardware development granularity is low.In the hardware design of usual NB-IoT terminal UE, a MCU is selected first, selects one Money communications module selects an eSIM card, according to the function of terminal UE, has started the design of MCU minimum system, communication adaptation circuit is set Meter, the design of eSIM card interface and the design of other application functions.
(2) register stage programs, and software programming granularity is low, and threshold is higher.MCU reference manual belongs to register stage programming Guide is the basic reference of terminal projects teacher.For example, to complete a serial communication, need to be related to baud rate register, Register, status register, data register etc. are controlled, under normal circumstances, engineer is directed to used chip, encapsulates its drive It is dynamic.Even if the SDK provided using producer, it is also desirable to twists and turns.Anyway, there is certain technical threshold, spend many times. In addition, engineer makes towards character product, do not have social property, usually reduction is portable.For another example, logical to NB-IoT Believe mould group, producer provides AT instruction, to get through entire communication process, needs to spend more time.
(3) portable weak, replacement chip is difficult, influences product up-gradation.The a certain product of some terminal producers uses one For many years, some chips have even stopped production a MCU chip, and price is more expensive, but since early development portability is weaker, replacement Chip needs more Innovation Input, therefore, even if new chip cost performance is high, also more difficult replacement.Mould is communicated for NB-IoT Group replaces its model, it is difficult to guarantee that original software is constant.
Summary of the invention
In view of this, the purpose of the application is to propose a kind of internet-of-things terminal based on general-purpose built-in type computer and is System, to solve the skill that hardware and software development granularity present in the development scheme of terminal UE in the prior art is low, portability is weak Art problem.
A kind of object based on general-purpose built-in type computer is proposed in the first aspect of the application based on above-mentioned purpose Networked terminals, comprising:
Software layer and hardware layer;
Wherein, the software layer includes:
Encapsulate the BIOS including GPIO, UART, AD and Flash basic function component and communications module building blocks of function The first unit of program, the first unit is for determining core clock and bus clock, one timer of starting, providing the time Function call interface provides common bottom layer driving method of calling and starting RTOS towards knowledge element;
The second unit for calling the User program of the building blocks of function in the first unit is encapsulated, the second unit is used The building blocks of function in the first unit is called in instruction depending on the user's operation;
The hardware layer includes:
Micro-control unit, micro-control unit peripheral circuit and communications module;
The micro-control unit is used to control the building blocks of function operation in the first unit and carries out to the data of parameter Processing, the micro-control unit peripheral circuit are used to respond the micro-control unit and transport to the building blocks of function in the first unit The processing of capable control and the data to parameter, the communications module are used to establish with information post office and communicate to connect.
In some embodiments, further includes:
Energy supply control module, for being powered to the micro-control unit and the micro-control unit peripheral circuit.
In some embodiments, further includes:
Wireless communication module, for establishing wireless communication connection with other equipment, the wireless communication module includes WIFI Communication unit, bluetooth-communication unit and ZigBee communication unit.
In some embodiments, the first unit, is specifically used for:
System clock initialization is carried out, determining core clock and bus clock are provided;Start a timer, when providing Between function call interface, one timer of BIOS initialization, opening timing device interrupt, carry out system timing, be real-time oss System provides time timing, provides function of time method of calling;Bottom layer driving component is called towards knowledge element;Start RTOS, In GEC chip with real time operating system RTOS, RTOS will be started in BIOS startup stage, such client layer programming can be at this It is carried out under operating system, user engineering frame is then based on the construction of RTOS.
In some embodiments, the first unit, is also used to:
The hardware and software of initialising subscriber program more new function, the hardware and software of initialization of BIOS more new function;Sentence Disconnected user program is switched to user program execution;Program fleet is prevented using house dog mechanism;Reserved BIOS program upgrading side Formula, driving increase mode.
In some embodiments, the second unit, including multiple classification subelements, for storing for user's Selection and call Document, kernel, MCU, GEC, user's plate, software component and without operating system source files of program.
In some embodiments, the micro-control unit peripheral circuit includes:
MCU hardware minimum system, communication film group circuit and antenna-matching circuit.
Based on above-mentioned purpose, in the second aspect of the application, it is also proposed that a kind of based on general-purpose built-in type computer Internet of things system, including the internet-of-things terminal based on general-purpose built-in type computer as described in first aspect, in addition, also wrapping It includes:
Information post office and man-machine interactive system;
The information post office includes base station, core net, internet and Cloud Server, and the man-machine interactive system includes passing through The application system of CS-Monitor forwarding and the application system forwarded by retransmission process.
In some embodiments, the Cloud Server, comprising:
By the CS-Monitor server with data forwarding and data management constituted with remote data base and only There is data forwarding function without having the forwarding server of data storage function.
In some embodiments, it is described by CS-Monitor forward application system, including pc client, Web page, Mobile phone A pp and wechat small routine;
The application system forwarded by retransmission process, including user listen to program and listen to local used in program Database.
The embodiment of the present application provides a kind of internet-of-things terminal based on general-purpose built-in type computer, comprising: software layer and hard Part layer;Wherein, the software layer includes: to encapsulate including GPIO, UART, AD and Flash basic function component and communication mould The first unit of the BIOS program of group building blocks of function, the first unit is for determining core clock and bus clock, starting one A timer provides function of time calling interface, provides common bottom layer driving method of calling and starting towards knowledge element RTOS;The second unit for calling the User program of the building blocks of function in the first unit is encapsulated, the second unit is used for The building blocks of function in the first unit is called in instruction depending on the user's operation;The hardware layer includes: micro-control unit, micro-control Unit peripheral circuit processed and communications module;The micro-control unit be used for control in the first unit building blocks of function operation and The data of parameter are handled, the micro-control unit peripheral circuit is single to described first for responding the micro-control unit The control of building blocks of function operation in member and the processing of the data to parameter, the communications module are used to establish with information post office logical Letter connection.The internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application, improves the granularity of hardware design With the granularity of software programming, while the portability of software is improved.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is the functional structure signal of the internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application one Figure;
Fig. 2 is an optional embodiment party of the internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application one The structural schematic diagram of formula;
Fig. 3 is the structural schematic diagram of the Internet of things system based on general-purpose built-in type computer of the embodiment of the present application two;
Fig. 4 is an optional embodiment party of the Internet of things system based on general-purpose built-in type computer of the embodiment of the present application two The structural schematic diagram of formula.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
As shown in Figure 1, being the function knot of the internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application one Structure schematic diagram.From figure 1 it appears that the internet-of-things terminal 100 based on general-purpose built-in type computer of the present embodiment, can wrap It includes:
Software layer 101 and hardware layer 102.
Wherein, the software layer 101 may further include again: encapsulate basic including GPIO, UART, AD and Flash The first unit 1011 of the BIOS program of building blocks of function and communications module building blocks of function, the first unit 1011 is for true Determine core clock and bus clock, one timer of starting, function of time calling interface is provided, is provided towards the normal of knowledge element With bottom layer driving method of calling and starting RTOS.In addition, the software layer 101 further includes encapsulating to call the first unit The second unit 1012 of the User program of building blocks of function in 1011, the second unit 1012 for referring to depending on the user's operation Enable the building blocks of function called in the first unit 1011.
The hardware layer 102 may further include again: micro-control unit 1021,1022 and of micro-control unit peripheral circuit Communications module 1023.The building blocks of function that the micro-control unit 1021 is used to control in the first unit 1011 is run and to ginseng Several data are handled, and the micro-control unit peripheral circuit 1022 is for responding the micro-control unit 1021 to described the The control of building blocks of function operation in one unit 1011 and the processing of the data to parameter, the communications module 1023 are used for and letter It ceases post office and establishes communication connection.
As shown in Fig. 2, being that one of the internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application one can Select the structural schematic diagram of embodiment.
The internet-of-things terminal of the present embodiment, using embedded computer (General Embedded Computer, GEC), And a general-purpose built-in type computer with specific function, it is embodied in hardware and two sides of software.On hardware, MCU Hardware minimum system and general character circuit package towards concrete application provide weighing for SOC grades of chips at an entirety for user Hardware entities, and according to hardware component require carry out schematic diagram drafting, document writes and hardware testing case designing.Soft On part, embedded software is divided into BIOS program and User program two parts.BIOS program is prior to User program Solidification in MCU Nonvolatile storage (such as Flash) in, when starting, BIOS program is first run, and is subsequently diverted to User program.BIOS provides work Clock and bottom layer driving component towards knowledge element, and function prototype grade calling interface is provided for User program.In addition, also wrapping Include peripheral circuit, as illustrated in the drawing energy supply control module, peripheral sensors (temperature, humidity etc.), executing agency (such as lampet, Motor etc.), wireless module (WiFi, bluetooth and ZigBee etc..
It is compared with MCU, GEC has the direct measurability of hardware, user software programming agility and portability three basic Basic characteristics.
1) the direct measurability of GEC hardware
Different from general MCU, GEC can directly run internal BIOS program similar to PC machine after energization, BIOS driving retains The lampet pin used, low and high level switching (in AHL-IoT-GEC development kit, can observe directly lampet flashing).It can Software AHL-UserPrgUpdate is updated using golden cucurbit GEC, GEC is connected using serial ports, directly by Use_Frame user's journey GEC is written in sequence, includes the printf sentence similar to PC program debugging in Use_Frame program, is exported by serial ports to PC machine Information realizes the direct measurability of GEC hardware.
2) the programming agility of GEC user software
Different from general MCU, resident BIOS is similar with PC machine power up inside GEC, at the beginning of completing system bus clock Beginningization;One system timer is provided, time setting is provided and obtains function interface;Embedded common drive is resided in BIOS It is dynamic, such as GPIO, UART, ADC, Flash, I2C, SPI, PWM, and provide function prototype grade calling interface.Utilize User journey Sequence different frames, user software are not needed from compiling " zero ", but on the basis of corresponding frame, BIOS resource is sufficiently applied, it is real Now quick programming.
3) portability of GEC user software
Different from general MCU software, the bios software of GEC is researched and developed by GEC supplier to be completed, and is supplied to GEC chip User, i.e. software have versatility by Hardware.BIOS resides most of driving towards knowledge element, provides letter Number prototype grade calling interface.It programs on this basis, as long as following the basic principle of soft project, GEC user software has Higher portability.
And the hardware of general-purpose built-in type computer, be exactly MCU hardware minimum system and the general character towards concrete application electricity Road is packaged into an entirety, provides the reusable hardware entities of chip-scale for user.The general-purpose built-in type of the present embodiment calculates The hardware of machine, including MCU hardware minimum system, NB-IoT communications module and antenna-matching circuit.The hardware minimum system of MCU is Refer to the peripheral circuit of minimum scale necessary to internal processes can be made to run.Use a chip, it is necessary to it is hard that it is understood completely Part minimum system.When MCU work is abnormal, the element that may be malfunctioned in minimum system will be searched first.Under normal circumstances, The hardware minimum system of MCU is made of circuits such as power supply, crystal oscillator and resets.Chip is wanted to work, it is necessary to when having power supply and work Clock;The means that MCU restarts under not power-down conditions are then provided as reset circuit.With flash storage manufacturing technology Development, most of chip provide the write-in program function in plate or on-line system, i.e., blank chip are welded on circuit board Afterwards, then by writer program it downloads in chip.In this way, hardware minimum system should also wrap the interface circuit of writer With which.Communications module circuit is generally made of circuits such as communications module itself, power supply, serial ports, SIM cards (optional).Communication Mould group is wanted to work, it is necessary to have power supply, the power supply needs controllable from the point of view of low-power consumption angle.Communications module need to generally be used with MCU Serial mode carries out data communication, while section communication mould group can be internally integrated SIM card, and have will not.It is internal not integrate SIM The communications module of card need to add SIM card circuit.For NB-IoT terminal or other communication terminals, antenna-matching circuit is very It is important.Its signal quality for directly affecting terminal device, data transmission success etc..
The unique best approach for improving code quality and productivity is exactly the code being multiplexed, and software component technology is software It is multiplexed the important method realized.Component is reusable entity, it contains the interface conformed to the standard and function and realizes, can be by It is independent to dispose and assembled by third party.Embedded software component (Embedded Software Component) is that have relatively Standalone feature can clearly recognize component entity, it be encapsulation, specification, reusable software basic unit.The software of specification Component is made of header file (.h) and source files of program (.c) file.Header file (.h) should be that software component is concise and complete Operation instruction, that is to say, that be not required to check in the case of source files of program, it will be able to carry out upper one layer of program using the component completely Exploitation.Embedded software component is divided into basic component, application component and software component three by the present embodiment in order to facilitate understanding Seed type.Basic component is the basic knowledge element according to MCU inner function module, for function inside MCU pin function or MCU Can, using MCU internal register, the component of made direct intervention hardware.Common basic component mainly has: GPIO structure Part, UART component, ADC component, Flash component, I2C component etc..Application component is using basic component and Object-Oriented Programming Component.Such as Light component and uecom component.Light component calls basic component GPIO, completes the envelope controlled lampet Dress.Uecom component calls serial ports component to complete NB-IoT communication.Printf function can also be included in application component, because it Call serial ports component.The general type of printf function call are as follows: printf (" format effector string ", output table column).It is soft Part component is the assembling unit with Standard Interface and the Context-dependent determined an of object-oriented, it can independently be made It is called with or by other components.
The internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application, improves the granularity of hardware design With the granularity of software programming, while the portability of software is improved.
In addition, an alternative embodiment as the application, in the above-described embodiments, further includes:
Energy supply control module, for being powered to the micro-control unit and the micro-control unit peripheral circuit.
As another alternative embodiment of the application, in the above-described embodiments, further includes:
Wireless communication module, for establishing wireless communication connection with other equipment, the wireless communication module includes WIFI Communication unit, bluetooth-communication unit and ZigBee communication unit.
In some specific embodiments of the application, the first unit is specifically used for:
System clock initialization is carried out, determining core clock and bus clock are provided;Start a timer, when providing Between function call interface, one timer of BIOS initialization, opening timing device interrupt, carry out system timing, be real-time oss System provides time timing, provides function of time method of calling;Bottom layer driving component is called towards knowledge element;Start RTOS, In GEC chip with real time operating system RTOS, RTOS will be started in BIOS startup stage, such client layer programming can be at this It is carried out under operating system, user engineering frame is then based on the construction of RTOS.
GEC MCU hardware minimum system and the general character circuit package towards concrete application is at an entirety, is on hardware The reusable hardware entities of user's offer chip-scale;On software, embedded software is divided into BIOS program and User program Two parts.BIOS program is prior to User program Solidification in the nonvolatile storage (such as Flash) in MCU.When starting, BIOS journey Sequence is first run, and is subsequently diverted to User program.This is that the working mechanism of general purpose computer is introduced into embedded computer, to be accomplished This point, in terms of software architecture, it must be determined that functional localization and bottom layer driving standardization calling, the User program of BIOS The problems such as with the marching method of BIOS.In the present embodiment, the major function of BIOS has: determine core clock and bus clock, Start a timer, function of time calling interface is provided, common bottom layer driving method of calling towards knowledge element is provided, opens Dynamic RTOS and other function.
Determine core clock and bus clock: chip electrifying startup, first operation BIOS carry out system clock initialization, Provide determining core clock and bus clock.That is, the work clock of CPU and serving three buses (address bus, number According to bus, control bus) bus clock thereby determine that.
Start a timer, function of time calling interface: one timer of BIOS initialization is provided, in opening timing device It is disconnected, system timing is carried out, time " ticking (Tick) " is provided for real time operating system, function of time method of calling is provided.Make In GEC with ARM Cortex-M kernel, use Systick as ticking timer.
It provides the common bottom layer driving method of calling towards knowledge element: being resident common bottom layer driving machine code in BIOS, It resides in the nonvolatile storage (such as Flash) of GEC.User engineering frame provide these drivings towards knowledge element Method of calling.Method of calling towards knowledge element, although referring to that is be resident in BIOS is the machine code of bottom layer driving component, In user engineering frame, it is nonetheless possible to use generic function method of calling is called, and simplifies application layer program exploitation.
Start RTOS: in the GEC chip with real time operating system RTOS, RTOS will be started in BIOS startup stage, Client layer programming in this way can carry out under the operating system, and user engineering frame is then based on the construction of RTOS.
Other function: the hardware and software of initialising subscriber program more new function, or even include the hard of BIOS more new function Part and software;Judge user program, is switched to user program execution;Program fleet is prevented using house dog mechanism;Reserved BIOS Program upgrades mode, driving increase mode etc..
Software in GEC can be divided into BIOS program and User program two parts.After GEC chip powers on, operation BIOS first Program completes the setting of system work clock, starts the ticking timer of Systick.
It when there is User program, then replicates interrupt vector table and is copied to the area RAM, turn to User program and execute.This function It can be realized by setting register SP and PC pointer.In User program operation process, User can be updated by serial ports, NB-IoT Program.UART1, UART2 are received to interrupt to be updated by the program update based on NB-IoT and the program based on serial ports respectively and be used. The interrupt handling routine of UART1, UART2 have been cured in the area BIOS, and User program cannot modify.But UART2 can still make Output is debugged for User program printf to use.In interruption in User program operation process, interrupt vector table and BIOS Interrupt vector table is consistent.Before turning to User program from BIOS, interrupt vector table is copied in RAM, and is set It sets vector table offset register and is directed toward this region.The interrupt vector table that BIOS and User shares BIOS can be achieved in this way.UART1 And the reception of UART2 is interrupted after generating, the respective interrupt processing routine in the directly execution area BIOS realizes program more new function.GEC It is solidificated in the area BIOS after the middle encapsulation by bottom layer driving function, and be supplied to User program using application programming interfaces API mode to make With, allow developer when writing User program as normal use function name and pass ginseng mode call BIOS provide Api interface.The only header file (.h file) of visible each driving function in User program.With normal function name in User program And pass the bottom layer driving component that the mode joined calls the area BIOS.User program and BIOS program are independent from each other two engineerings, User program can not directly obtain the api interface function table address in BIOS program.Service example is interrupted using shared SVC in GEC The mode of journey obtains the api interface function table address.
As the alternative embodiment of the application, the second unit, including multiple classification subelements are supplied for storing The document of user's Selection and call, kernel, MCU, GEC, user's plate, software component and without operating system source files of program.These texts Shelves, kernel, MCU, GEC, user's plate, software component and without operating system source files of program, are referred to as embedded software component, It can functionally be divided into three classes again, be divided into basic component, application component and software component three types.Basic component is basis The basic knowledge element of MCU inner function module, for MCU pin function or MCU built-in function, using MCU internal register, The component of made direct intervention hardware.Common basic component mainly has: GPIO component, UART component, ADC component, The application components such as Flash component, I2C component are the components using basic component and Object-Oriented Programming.Such as Light component and Uecom component.Light component calls basic component GPIO, completes the encapsulation controlled lampet.Uecom component calls serial ports structure Part completes NB-IoT communication.Printf function can also be included in application component, because it calls serial ports component.Software component is The assembling unit with Standard Interface and the Context-dependent determined of one object-oriented, it can be used independently or by it He calls component.The software component that this book provides mainly has: crc component, frame component and timeStamp component.Artificial intelligence If some algorithms be fabricated to component, software component scope can also be included in.
The internet-of-things terminal based on general-purpose built-in type computer of the embodiment of the present application, improves the granularity of hardware design With the granularity of software programming, while the portability of software is improved.
Based on above-mentioned purpose, in the second aspect of the application, it is also proposed that a kind of based on general-purpose built-in type computer Internet of things system, including such as above-mentioned internet-of-things terminal 100 as described in the examples based on general-purpose built-in type computer, in addition, Further include:
Information post office 200 and man-machine interactive system 300.
Specifically, the information post office 200 includes base station 201, core net 202, internet 203 and Cloud Server 204, institute State Cloud Server 204, and may further include: what is be made of CS-Monitor and remote data base has data forwarding and number According to management server and only only have data forwarding function without having the forwarding server of data storage function.
The man-machine interactive system includes forwarding by the application system 301 of CS-Monitor forwarding and by retransmission process Application system 302.Wherein, the application system forwarded by CS-Monitor, including pc client, Web page, mobile phone App and wechat small routine;The application system forwarded by retransmission process, including user listen to program and are made with program is listened to Local data base.
As shown in figure 4, being that one of the Internet of things system based on general-purpose built-in type computer of the embodiment of the present application two can Select the structural schematic diagram of embodiment.In the present embodiment, after communications module issues data-signal, data-signal will successively flow Cloud Server is forwarded to through base station, core net and internet and listens to program, and completing actual forwarding work among these is by communicating What company was responsible for, user need to only complete the communication interaction of terminal side and Cloud Server one end and understand basic principle;Cloud Server needs that there is fixed ip address to communicate to guarantee to establish with the terminal for being not fixed IP address with client, cloud clothes Business device can be divided by function be made of CS-Monitor and remote data base with data forwarding, (data are deposited with data management Storage, display in real time with history, historical query and in real time postback function) combination of function and only only data forwarding function without The retransmission process for having data storage function.Man-machine interactive system HCI can be divided by forwarding medium passes through CS-Monitor The application system of forwarding and the application system forwarded by retransmission process.The former can specifically be subdivided into CS- by application mode again This four concrete applications of Client (pc client), Web page, mobile phone A pp and wechat small routine, these applications do not include local Database, need to by CS-Monitor come access history data, they by consistent WebSocket communication mode with communicate Format is contacted with CS-Monitor foundation;It is divided into US-Monitor user by the application system that retransmission process forwards and listens to program With listen to local data base used in program, US-Monitor has basic data management function.
The Internet of things system based on general-purpose built-in type computer of the embodiment of the present application, improves the granularity of hardware design With the granularity of software programming, while the portability of software is improved.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (10)

1. a kind of internet-of-things terminal based on general-purpose built-in type computer characterized by comprising
Software layer and hardware layer;
Wherein, the software layer includes:
Encapsulate the BIOS program including GPIO, UART, AD and Flash basic function component and communications module building blocks of function First unit, the first unit is for determining core clock and bus clock, one timer of starting, providing the function of time Calling interface provides common bottom layer driving method of calling and starting RTOS towards knowledge element;
The second unit for calling the User program of the building blocks of function in the first unit is encapsulated, the second unit is used for root The building blocks of function in the first unit is called according to the operational order of user;
The hardware layer includes:
Micro-control unit, micro-control unit peripheral circuit and communications module;
The micro-control unit is used to control the building blocks of function operation in the first unit and handles the data of parameter, The micro-control unit peripheral circuit is used to respond the micro-control unit to the building blocks of function operation in the first unit The processing of control and the data to parameter, the communications module are used to establish with information post office and communicate to connect.
2. internet-of-things terminal according to claim 1, which is characterized in that further include:
Energy supply control module, for being powered to the micro-control unit and the micro-control unit peripheral circuit.
3. internet-of-things terminal according to claim 2, which is characterized in that further include:
Wireless communication module, for establishing wireless communication connection with other equipment, the wireless communication module includes WIFI communication Unit, bluetooth-communication unit and ZigBee communication unit.
4. internet-of-things terminal according to claim 3, which is characterized in that the first unit is specifically used for:
System clock initialization is carried out, determining core clock and bus clock are provided;Start a timer, time letter is provided Number calling interface, one timer of BIOS initialization, opening timing device interrupt, and carry out system timing, mention for real time operating system For time timing, function of time method of calling is provided;Bottom layer driving component is called towards knowledge element;Start RTOS, is having In the GEC chip of real time operating system RTOS, RTOS will be started in BIOS startup stage, such client layer programming can be in the operation It is carried out under system, user engineering frame is then based on the construction of RTOS.
5. internet-of-things terminal according to claim 4, which is characterized in that the first unit is also used to:
The hardware and software of initialising subscriber program more new function, the hardware and software of initialization of BIOS more new function;Judgement is used Family program is switched to user program execution;Program fleet is prevented using house dog mechanism;Reserved BIOS program upgrading mode is driven Dynamic increase mode.
6. internet-of-things terminal according to any one of claims 1 to 5, which is characterized in that the second unit, including it is multiple Classify subelement, for storing the document for user's Selection and call, kernel, MCU, GEC, user's plate, software component and without operation System source files of program.
7. internet-of-things terminal according to claim 6, which is characterized in that the micro-control unit peripheral circuit includes:
MCU hardware minimum system, communication film group circuit and antenna-matching circuit.
8. a kind of Internet of things system based on general-purpose built-in type computer, which is characterized in that any including such as claim 1 to 7 The internet-of-things terminal based on general-purpose built-in type computer described in, furthermore, further includes:
Information post office and man-machine interactive system;
The information post office includes base station, core net, internet and Cloud Server, and the man-machine interactive system includes passing through CS- The application system of Monitor forwarding and the application system forwarded by retransmission process.
9. Internet of things system according to claim 8, which is characterized in that the Cloud Server, comprising:
The server with data forwarding and data management that is made of CS-Monitor and remote data base and only only number According to forwarding capability without having the forwarding server of data storage function.
10. Internet of things system according to claim 8, which is characterized in that the application forwarded by CS-Monitor System, including pc client, Web page, mobile phone A pp and wechat small routine;
The application system forwarded by retransmission process, including user listen to program and listen to local data used in program Library.
CN201910395929.1A 2019-05-14 2019-05-14 Internet of things terminal and system based on general embedded computer Active CN110119282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910395929.1A CN110119282B (en) 2019-05-14 2019-05-14 Internet of things terminal and system based on general embedded computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910395929.1A CN110119282B (en) 2019-05-14 2019-05-14 Internet of things terminal and system based on general embedded computer

Publications (2)

Publication Number Publication Date
CN110119282A true CN110119282A (en) 2019-08-13
CN110119282B CN110119282B (en) 2023-10-27

Family

ID=67522324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910395929.1A Active CN110119282B (en) 2019-05-14 2019-05-14 Internet of things terminal and system based on general embedded computer

Country Status (1)

Country Link
CN (1) CN110119282B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679608A (en) * 2020-06-16 2020-09-18 南通大学 Wetland ecological environment monitoring system based on NB-IoT
CN111770142A (en) * 2020-06-16 2020-10-13 南通大学 Flower planting monitoring system and using method thereof
CN112631671A (en) * 2020-12-31 2021-04-09 东软睿驰汽车技术(沈阳)有限公司 Method and device for initializing operating system
CN114389963A (en) * 2021-11-26 2022-04-22 国电南瑞南京控制系统有限公司 Whole-process debugging method and debugging device for rapid access of Internet of things fusion terminal
WO2022099885A1 (en) * 2020-11-16 2022-05-19 苏州大学 Method for achieving camping of real-time operating system in embedded architecture

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200735557A (en) * 2005-11-15 2007-09-16 Harris Corp Power management system for SCA based software defined radio and related method
US20110088037A1 (en) * 2009-10-13 2011-04-14 Roman Glistvain Single-stack real-time operating system for embedded systems
CN103384157A (en) * 2013-03-14 2013-11-06 上海汉枫电子科技有限公司 Low-power-consumption embedded type WIFI module
CN107992291A (en) * 2017-11-16 2018-05-04 上海南潮信息科技有限公司 Ruff OS Internet of Things operating systems applied to built-in application program
CN109120486A (en) * 2018-08-28 2019-01-01 珠海格力电器股份有限公司 WiFi module data transmission method, Transmission system, intelligent appliance data transmission system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200735557A (en) * 2005-11-15 2007-09-16 Harris Corp Power management system for SCA based software defined radio and related method
US20110088037A1 (en) * 2009-10-13 2011-04-14 Roman Glistvain Single-stack real-time operating system for embedded systems
CN103384157A (en) * 2013-03-14 2013-11-06 上海汉枫电子科技有限公司 Low-power-consumption embedded type WIFI module
CN107992291A (en) * 2017-11-16 2018-05-04 上海南潮信息科技有限公司 Ruff OS Internet of Things operating systems applied to built-in application program
CN109120486A (en) * 2018-08-28 2019-01-01 珠海格力电器股份有限公司 WiFi module data transmission method, Transmission system, intelligent appliance data transmission system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111679608A (en) * 2020-06-16 2020-09-18 南通大学 Wetland ecological environment monitoring system based on NB-IoT
CN111770142A (en) * 2020-06-16 2020-10-13 南通大学 Flower planting monitoring system and using method thereof
WO2022099885A1 (en) * 2020-11-16 2022-05-19 苏州大学 Method for achieving camping of real-time operating system in embedded architecture
CN112631671A (en) * 2020-12-31 2021-04-09 东软睿驰汽车技术(沈阳)有限公司 Method and device for initializing operating system
CN114389963A (en) * 2021-11-26 2022-04-22 国电南瑞南京控制系统有限公司 Whole-process debugging method and debugging device for rapid access of Internet of things fusion terminal

Also Published As

Publication number Publication date
CN110119282B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
CN110119282A (en) A kind of internet-of-things terminal and system based on general-purpose built-in type computer
CN110928529B (en) Method and system for assisting operator development
CN110262818A (en) The hot update method of Java code, device, electronic equipment and storage medium
Andersen et al. System design for a synergistic, low power mote/BLE embedded platform
CN104050080B (en) User space debugs the method and system of linux kernel
CN108830720A (en) Intelligent contract operation method, device, system and computer readable storage medium
CN106575249A (en) Low power debug architecture for system-on-chips (SOCs) and systems
US10067747B2 (en) Embedded device application development
CN103399840A (en) Out-of-band altering method of configuration file of computer and computer
CN101251819A (en) Debug method suitable for multi-processor core system chip
CN109783340B (en) SoC test code programming method, IP test method and device
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN109445323B (en) WEB-based distributed intelligent measurement and control software platform design method
CN108874677A (en) A kind of android terminal and its test method and system
CN108427552A (en) Android application installation package producing device, method, electronic equipment and storage medium
CN102981827A (en) Display interface data treatment method and platform based on middle piece
CN111562436B (en) Equipment driving method and device of double-core intelligent electric meter
CN111142861B (en) Method and device for integrating structured comprehensive control system
CN108399245A (en) Data processing method, device and the intelligent appliance gateway of intelligent appliance gateway device
CN203950176U (en) A kind of wireless sensor network node hardware platform that can online reconfiguration
CN115495188A (en) Theme color switching method, device, equipment and medium for hybrid development APP
CN106354966B (en) The method of the conversion of chip id E project file and rapid configuration artificial debugging environment
US11429357B2 (en) Support device and non-transient computer-readable recording medium recording support program
Mattoo et al. Internet of Things: A progressive case study
CN110018959B (en) Embedded application debugging method and 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