CN105487896A - Use method of embedded mainboard in different equipment - Google Patents

Use method of embedded mainboard in different equipment Download PDF

Info

Publication number
CN105487896A
CN105487896A CN201510844999.2A CN201510844999A CN105487896A CN 105487896 A CN105487896 A CN 105487896A CN 201510844999 A CN201510844999 A CN 201510844999A CN 105487896 A CN105487896 A CN 105487896A
Authority
CN
China
Prior art keywords
main board
embedded main
application program
linux
self
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
CN201510844999.2A
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.)
Nanjing Panda Electronics Co Ltd
Nanjing Panda Communication Technology Co Ltd
Original Assignee
Nanjing Panda Electronics Co Ltd
Nanjing Panda Communication 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 Panda Electronics Co Ltd, Nanjing Panda Communication Technology Co Ltd filed Critical Nanjing Panda Electronics Co Ltd
Priority to CN201510844999.2A priority Critical patent/CN105487896A/en
Publication of CN105487896A publication Critical patent/CN105487896A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a use method of an embedded mainboard in different equipment. The use method comprises the following steps: standardizing the peripheral circuit of the embedded mainboard, and providing peripheral interfaces, wherein the peripheral interfaces comprise one group of network card interfaces, an RS232 serial port, an RS422 serial port, a USB (Universal Serial Bus) interface and a GPIO (General Purpose Input/Output) interface; simultaneously downloading multiple sets of application software to a Flash memory system arranged on the embedded mainboard; selecting M pieces of GPIO interfaces from one group of GPIO interfaces through negotiation by the peripheral circuit and the embedded mainboard, arranging M pieces of GPIO interfaces in sequence, converting high and low level values output by the M pieces of GPIO interfaces into M bits of ID (Identity) of the embedded mainboard, wherein the high level expresses 1, and low level expresses 0; causing each ID (Identity) to be associated with one application program and a configuration file corresponding to the application program; and calling the corresponding application program by a self-starting program according to the ID value. The use method can cause the same embedded mainboard to be put into different equipment to adapt to adaptively start the corresponding application program, convenience is brought for after-sales maintenance, and enterprise cost is saved.

Description

A kind of method that embedded main board uses in distinct device
Technical field
The present invention relates to embedded system, the method that especially a kind of embedded main board uses in distinct device.
Background technology
Embedded system (EmbeddedSystem), application-centered, based on computer technology, and software and hardware can cutting, is applicable to application system has strict demand special purpose computer system to function, reliability, cost, volume, power consumption.It is generally made up of four parts such as application program of embedded microprocessor, peripheral hardware devices, embedded OS and user, for realizing control to other equipment, the function such as supervision or management.In tradition embedded device, the peripheral interface of the corresponding a set of embedded main board of a usual product, a set of specialty and a set of application software, if this kind of embedded device breaks down, safeguard to get up also to need corresponding auxiliary facility, very inconvenient, in addition, the function difference that traditional embedded main board realizes because of its interface and internal module can not be applicable to plurality of devices simultaneously, and the equipment for different model needs corresponding embedded main board just can finish the work.Production cost and the later maintenance cost of tradition embedded main board cause very large pressure to supply vendor.
Summary of the invention
Goal of the invention: for solving the problems of the technologies described above, the invention provides a kind of method that embedded main board uses in distinct device, making a set of embedded main board put into distinct device all can the corresponding application software of self-adapting start, facilitates after-sales service, saves enterprise cost.
Technical scheme: for achieving the above object, technical scheme of the present invention is: a kind of method that embedded main board uses in distinct device, and described embedded main board has flash storage and peripheral circuit, comprises step:
(1) in embedded main board peripheral circuit, arrange peripheral interface, peripheral interface comprises a networking card interface, RS232 serial ports, RS422 serial ports, USB interface and GPIO interface, and embedded main board is connected with the motherboard of external equipment by peripheral interface;
(2) in flash storage, file is created, the self-triggered program of embedded main board, application program and the configuration file corresponding from application program to be downloaded in FLASH memory according to the functional requirement of external equipment and to be stored in respectively in different file, and the path of self-triggered program executable file place file and EXENAME are added in the configuration file corresponding with application program;
(3) peripheral circuit and embedded main board are chosen M through consultation and are arranged by M GPIO interfacing order from one group of GPIO interface, the low and high level value that M GPIO interface exports is converted to the M position ID of embedded main board, wherein high level represents 1, and low level represents 0; Each ID value association application program and the configuration file corresponding with application program;
(4) embedded main board loading Linux operating system call self-triggered program by (SuSE) Linux OS; Self-triggered program reads embedded main board ID, calls the application program be associated according to ID value from flash storage;
(5) application program reads corresponding configuration file, carries out parameter initialization to (SuSE) Linux OS.
Preferably, carrying out, step (4) is front also to be comprised: (SuSE) Linux OS searches flash storage, check in the whether loaded flash storage of self-triggered program executable file, application program executable file and configuration file, if be not loaded into, then return and perform step (2), if loaded, then perform step (4);
Preferably, described step (4) also comprises, when reading embedded main board ID, each in ID value is detected, when detecting that in the ID of M position, the level value of each is 0 or 1, return reading normal instructions to (SuSE) Linux OS, (SuSE) Linux OS calls according to ID value the application program be associated after receiving and reading normal instructions; Have any place value not to be 0 or 1 when detecting in the ID of M position, then return reading exceptional instructions to (SuSE) Linux OS, (SuSE) Linux OS carries out circulation and reads, until read correct value 0 or 1.
Preferably, described self-triggered program comprises embedded main board relay indicating light lighting program.
Beneficial effect: do invention compared to the prior art, has following beneficial effect:
1, for manufacturer, the invention provides a kind of method that embedded main board uses in distinct device, decreasing cost of hardware design when not doing mass upgrade to embedded main board, reducing after-sales service cost simultaneously, facilitating operation and the use of after-sales service personnel.
2, for built-in terminal user, the method that the embedded main board that the present invention proposes uses in distinct device, same embedded main board can be made to adapt to plurality of devices, reduce user and buying and safeguarding the cost and effort that different embedded main board spends.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the embodiment of the present invention;
Fig. 2 is the application schematic diagram of the embodiment of the present invention in distinct device.
Embodiment
Below in conjunction with accompanying drawing, the present invention is further described.
The embedded main board peripheral interface adopted in the embodiment of the present invention comprises more than 3 network card interface, 3 RS232 serial ports, 3 RS422 serial ports, 4 USB interface and 16 GPIO, and peripheral interface can access the mobile devices such as the USB keyboard of USB mouse and standard simultaneously.
The process flow diagram of the embodiment of the present invention as shown in Figure 1, comprises the following steps:
101 embedded main boards power on loading Linux operating system kernel;
102Linux operating system searches flash storage reserved area, check in the whether loaded flash storage of self-triggered program executable file, application program executable file and configuration file, if downloaded, entered step 104, do not download and then enter step 103;
103 create file in flash storage, self-triggered program, application program and the configuration file corresponding from application program being downloaded in flash storage is also stored in different file respectively, then restarts kernel or powered-down switch restarting equipment with instruction reboot;
The path of self-triggered program executable file place file and EXENAME to be added in the configuration file rc.local that operating system carries by 104, and operating system calls self-triggered program;
105 self-triggered programs read embedded main board ID, call the application program be associated according to ID value from flash storage;
106 application programs read the configuration file corresponding with oneself, the correlation parameter such as IP address, gateway of initialization system.
As the preferred embodiment of the present invention, in above-described embodiment workflow when reading embedded main board ID, also to detect each in ID value, when detecting that in the ID of M position, the level value of each is 0 or 1, return reading normal instructions to (SuSE) Linux OS, (SuSE) Linux OS calls according to ID value the application program be associated after receiving and reading normal instructions; Have any place value not to be 0 or 1 when detecting in the ID of M position, then return reading exceptional instructions to (SuSE) Linux OS, (SuSE) Linux OS carries out circulation and reads, until read correct value 0 or 1.
Be illustrated in figure 2 the application schematic diagram of the embodiment of the present invention in distinct device.Equipment 1 and equipment 2 have different peripheral interface quantity, realize different functions, and we put into same embedded main board in equipment 1 and equipment 2, are all loaded into self-triggered program, application program 1 and application program 2 in embedded main board.In the present embodiment, be simplified illustration process, embedded main board ID figure place is set to 3, and namely the value of M is 3, ID value when being 001, invokes application 2 when invokes application 1, ID value is 010.
When equipment 1 powers on, the first loading Linux operating system kernel of embedded main board, (SuSE) Linux OS calls self-triggered program, and self-triggered program lights embedded main board relay indicating light, then, self-triggered program person reads 3 GPIO pins of specifying, reading result is 0,0,1, now self-triggered program invokes application 1, completes the loading of application program 1.
When equipment 2 powers on, the first loading Linux operating system kernel of embedded main board, (SuSE) Linux OS calls self-triggered program, and self-triggered program lights embedded main board relay indicating light, then, self-triggered program reads 3 GPIO pins of specifying, reading result is 0,1,0, now self-triggered program invokes application 2, thus complete the loading of application program 2.
Be not difficult to find out, equipment 1 and equipment 2 have different functions, but put into same embedded main board in equipment 1 and equipment 2, and self-triggered program calls different application programs according to different use scenes, achieve one piece of embedded main board and use in distinct device.
The above is only the preferred embodiment of the present invention; be noted that for those skilled in the art; under the premise without departing from the principles of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (4)

1. the method that uses in distinct device of embedded main board, described embedded main board has flash storage and peripheral circuit, it is characterized in that, comprises step:
(1) in embedded main board peripheral circuit, arrange peripheral interface, peripheral interface comprises a networking card interface, RS232 serial ports, RS422 serial ports, USB interface and GPIO interface, and embedded main board is connected with the motherboard of external equipment by peripheral interface;
(2) in flash storage, file is created, the self-triggered program of embedded main board, application program and the configuration file corresponding from application program to be downloaded in FLASH memory according to the functional requirement of external equipment and to be stored in respectively in different file, and the path of self-triggered program executable file place file and EXENAME are added in the configuration file corresponding with application program;
(3) peripheral circuit and embedded main board are chosen M through consultation and are arranged by M GPIO interfacing order from one group of GPIO interface, the low and high level value that M GPIO interface exports is converted to the M position ID of embedded main board, wherein high level represents 1, and low level represents 0; Each ID value association application program and the configuration file corresponding with application program;
(4) embedded main board loading Linux operating system call self-triggered program by (SuSE) Linux OS; Self-triggered program reads embedded main board ID, calls the application program be associated according to ID value from flash storage;
(5) application program reads corresponding configuration file, carries out parameter initialization to (SuSE) Linux OS.
2. the method that uses in distinct device of a kind of embedded main board according to claim 1, it is characterized in that, carrying out, step (4) is front also to be comprised: (SuSE) Linux OS searches flash storage, check in the whether loaded flash storage of self-triggered program executable file, application program executable file and configuration file, if be not loaded into, then return and perform step (2), if loaded, then perform step (4).
3. the method that uses in distinct device of a kind of embedded main board according to claim 1, it is characterized in that, described step (4) also comprises, when reading embedded main board ID, each in ID value is detected, when detecting that in the ID of M position, the level value of each is 0 or 1, return reading normal instructions to (SuSE) Linux OS, (SuSE) Linux OS calls according to ID value the application program be associated after receiving and reading normal instructions; Have any place value not to be 0 or 1 when detecting in the ID of M position, then return reading exceptional instructions to (SuSE) Linux OS, (SuSE) Linux OS carries out circulation and reads, until read correct value 0 or 1.
4. the method that uses in distinct device of a kind of embedded main board according to claim 1, it is characterized in that, described self-triggered program comprises embedded main board relay indicating light lighting program.
CN201510844999.2A 2015-11-27 2015-11-27 Use method of embedded mainboard in different equipment Pending CN105487896A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510844999.2A CN105487896A (en) 2015-11-27 2015-11-27 Use method of embedded mainboard in different equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510844999.2A CN105487896A (en) 2015-11-27 2015-11-27 Use method of embedded mainboard in different equipment

Publications (1)

Publication Number Publication Date
CN105487896A true CN105487896A (en) 2016-04-13

Family

ID=55674892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510844999.2A Pending CN105487896A (en) 2015-11-27 2015-11-27 Use method of embedded mainboard in different equipment

Country Status (1)

Country Link
CN (1) CN105487896A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472420A (en) * 2019-07-19 2019-11-19 深圳中电长城信息安全系统有限公司 A kind of binding recognition methods, system, terminal device and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609035A (en) * 2011-01-24 2012-07-25 上海风格信息技术有限公司 Self-adaption modular circuit based on embedded system and self-adaption method thereof

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609035A (en) * 2011-01-24 2012-07-25 上海风格信息技术有限公司 Self-adaption modular circuit based on embedded system and self-adaption method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472420A (en) * 2019-07-19 2019-11-19 深圳中电长城信息安全系统有限公司 A kind of binding recognition methods, system, terminal device and storage medium
CN110472420B (en) * 2019-07-19 2021-05-11 深圳中电长城信息安全系统有限公司 Binding identification method, system, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105404525B (en) Manage the method and device of the basic input output system configuration in computer system
EP3063620B1 (en) Selective power management for pre-boot firmware updates
CN103399840B (en) The outer amending method of the band of a kind of allocation of computer file and computer
CN102200916B (en) Electronic equipment, configurable member and method for storing configuration information of configurable member
US10592253B2 (en) Technologies for pre-memory phase initialization of a computing device
US20150067311A1 (en) Method and system for verifying proper operation of a computing device after a system change
CN112486522A (en) Deployment method and device of OpenStack bare machine with intelligent network card
CN105786547A (en) Operation system restarting method and apparatus
CN106055440A (en) Testing method and system for realizing abnormal power failure of server through BMC
CN110020528A (en) A kind of BMC starting method, apparatus and electronic equipment and storage medium
CN103514014A (en) Method for designing boot system of embedded terminal equipment
CN102855149B (en) A kind of chip operating system upgrade method, device and system
CN106371876B (en) Method and system for upgrading external program of product
CN104166521A (en) Computer with a memory card
CN107992183B (en) CPU power consumption limit value optimization method and electronic equipment
CN105487896A (en) Use method of embedded mainboard in different equipment
CN102880479A (en) Method and device for remotely modifying basic input output system (BIOS) attribute parameters
CN109117406B (en) PCIE hot plug test method, device, terminal and storage medium
CN102736908A (en) System, device and method for remotely setting CMOS (Complementary Metal-Oxide-Semiconductor Transistor) parameters
CN104407689A (en) Calculator system and power-on method and updating method thereof
CN104461659A (en) High-reliability computer starting method
CN115061976A (en) Address configuration method, device, carrier board, core board, server and medium
CN114117562A (en) Intelligent network card management method and device, electronic equipment and computer storage medium
CN105589659B (en) Data processing system with multiple subsystems and method
CN103747239B (en) A kind of method and intelligent television entering debugging mode

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160413

RJ01 Rejection of invention patent application after publication