CN103795814A - Short message equipment universal communication interface based on fully domestic CPU and OS - Google Patents
Short message equipment universal communication interface based on fully domestic CPU and OS Download PDFInfo
- Publication number
- CN103795814A CN103795814A CN201410049389.9A CN201410049389A CN103795814A CN 103795814 A CN103795814 A CN 103795814A CN 201410049389 A CN201410049389 A CN 201410049389A CN 103795814 A CN103795814 A CN 103795814A
- Authority
- CN
- China
- Prior art keywords
- short message
- interface
- equipment
- message equipment
- communication interface
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a short message equipment universal communication interface based on a fully domestic CPU and an OS, and belongs to the field of communication interfaces. The communication interface is provided with a common functional interface aimed at short message equipment in an extracting and packaging mode according to an AT instruction and common functions of the short message equipment, an interface used for being called by a JAVA program is achieved by adopting the JNI technology, a serial port communication function library is achieved by adopting a standard POSIXAPI, separation between equipment communication and upper-layer calling is achieved by using a layering design, and an inheritance-hierarchy-like relation is designed by using the polymorphism of the C++. Compared with the prior art, the short message equipment universal communication interface based on the fully domestic CPU and the OS has good universality and expandability and has good popularization and application value.
Description
Technical field
The present invention relates to communication interface field, specifically a kind of short message equipment Generalized Communication Interface that produces CPU and OS based on the whole nation.
Background technology
Under the overall background of information security, various information becomes safely a vital problem.In recent years, the Chinese government drops into a large amount of financial resources, material resources develop the information technology software and hardware product with independent intellectual property right, improves core competitiveness, ensures China's information security.
The high base of core is exactly the abbreviation of " key electronic device, high-end general-purpose chip and basic software product ".High-end general-purpose chip mainly just refers to the central processing unit of electronic computer, is in computer industry, to research and develop difficulty maximum.Current domestic CPU mainly contains the Godson CPU of Inst. of Computing Techn. Academia Sinica, soar CPU and the many will CPU of Beijing University of University of Science and Technology for National Defence.Basic software mainly refers to operating system, database and middleware etc., and China's independent research basic software product mainly contains acceptance of the bid kylin operating system, middle Ke Fangde operating system, magic database, Apusic, TongTech's middleware etc. at present.
Under the support energetically of country, high-end general-purpose chip and basic software product have had significant progress, and the performance of product, stability, reliability are all greatly improved; Performance and the stability of the Godson 3A of Inst. of Computing Techn. Academia Sinica processor have all entered world's rank of advanced units; Domestic operating system has also had larger progress, has derived a lot of software products based on domestic operating system, as office software, database, middleware and other software products.
Although the basic software and hardware product of China's independent research has had larger development, but because domestic basic software and hardware product market share is very low, biological environment is imperfection very, and rarely peripherals manufacturer can research and develop external equipment communication interface and the software product based on domestic CPU and OS.Therefore the existing market overwhelming majority's external equipment all cannot produce in the whole nation environment use, makes the popularization of domestic basic software and hardware product and use run into difficulty.Take short message equipment as example, the most short message equipment of existing market manufacturer provides communication interface and the software of Windows operating system, and therefore user does not need too many input just can use short message equipment.
But different due to the instruction set of domestic CPU and the intel of the market mainstream, AMD product, cause the communication interface bag of short message equipment manufacturer and software product on the complete machine based on domestic CPU, to move and to use.
Summary of the invention
Technical assignment of the present invention is for above-mentioned the deficiencies in the prior art, and a kind of short message equipment Generalized Communication Interface based on whole nation product CPU and OS with good Universal and scalability is provided.
Technical assignment of the present invention is realized in the following manner: a kind of short message equipment Generalized Communication Interface that produces CPU and OS based on the whole nation, be characterized in refining and being packaged with for short message equipment common function interface for the AT instruction of short message equipment and common function, adopt JNI technology realize for the interface of JAVA routine call, adopt standard P OSIX API realize serial communication function library, hierarchical design realize the isolation of devices communicating and upper strata calling, use C++ Design for polymorphism class inheritance hierarchy relation.
Further, described employing standard P OSIX API realizes serial communication function library and refers to: adopt the serial port communication technology of following POSIX standard to realize the serial communication function library of short message equipment and domestic server and PC.
Described hierarchical design refers to: Generalized Communication Interface design is divided into application layer, equipment application layer, device interface layer, physical communication layer;
Application layer, for providing short message equipment communication interface to call to application program, comprises java application program, C/C++ application program;
The Design for polymorphism of equipment application layer based on C Plus Plus, shielding underlying device difference, provide unified interface to upper strata;
Device interface layer has realized interface for different short message equipments, provides calling interface to equipment application layer;
Physical communication layer is for the realization of short message equipment and server and PC communication interface.
It is the equipment application layer in the corresponding hierarchical Design of SmsApp class that described class inheritance hierarchy is closed, and provides unified calling interface, WaveCom and Seimens class corresponding device interface layer to application layer.
Short message equipment Generalized Communication Interface based on whole nation product CPU and OS of the present invention compared with prior art has following outstanding beneficial effect:
(1), by this communication interface of the present invention can realize server under totally-domestic environment, PC is communicated by letter with short message equipment, short message equipment is set, controls note and send and receive, control GPRS data and send the functions such as reception thereby can realize.
(2), this invention communication interface can be for the short message equipment communication process under the acceptance of the bid kylin operating system environment based on domestic Godson CPU and the domestic CPU that soars.
(3), there is good Universal and scalability, can support the SMS module of existing market main flow, and can expand flexibly to support other brand short message equipments.
(4), can be called by JAVA and C Plus Plus, support calling of different programming languages under domestic environment.
(5), there is good professional platform independence, not only can operate in the whole nation and produce under environment, only need to recompilate and just may operate under other operating system environments of following POSIX standard.
Accompanying drawing explanation
Accompanying drawing 1 is the Organization Chart of communication interface hierarchical design of the present invention;
Accompanying drawing 2 is this present invention Communications Interface Unit interface layer block diagrams;
Accompanying drawing 3 is communication interface class inheritance figure of the present invention.
Embodiment
Short message equipment Generalized Communication Interface based on whole nation product CPU and OS of the present invention is described in detail below with specific embodiment with reference to Figure of description.
Embodiment:
The short message equipment Generalized Communication Interface that the present invention is based on whole nation product CPU and OS passes through following scheme implementation:
(1), note Generalized Communication Interface uses running environment
Hardware environment: Godson CPU, the CPU that soars, tide Godson PC, tide Loongson server, tide soar server, short message equipment.
Software environment: acceptance of the bid kylin server OS (Godson CPU), acceptance of the bid kylin server OS (CPU soars), acceptance of the bid kylin desktop operating system (Godson CPU), OpenJDK.
(2), note Generalized Communication Interface programming general introduction
Produce the short message equipment Generalized Communication Interface of CPU and OS based on the whole nation, need to possess good extensibility, versatility, go for the short message equipment of the market mainstream, also can under design architecture, expand easily, to be suitable for other manufacturer's SMS module simultaneously.
The design architecture of short message equipment general-purpose interface based on whole nation product CPU and OS based on open, possesses good versatility, can be suitable for the brand SMS module such as wavacom, Siemens of main flow on market, also can under this framework, add new short message equipment communication interface, and not needing to revise original code, autgmentability is good.
The control command of short message equipment adopts AT instruction, for example, inquiry SIM card operator's informaiton, request signal intensity, note is set sends form, sends note, surfed the Net etc. and can be realized by send corresponding AT instruction to short message equipment by GPRS; Short message equipment is mainly to pass through serial mode with communicating by letter of host.When secondary development, send AT instruction control SMS module by serial ports to SMS module, realize such as sending note, deleting short message, short message reading, play phone, receiving and dispatching the functions such as GPRS data.
(3), note design for Universal Interface framework
(1), the hierarchical design of note general-purpose interface
Short message equipment Generalized Communication Interface design architecture based on whole nation product CPU and OS has adopted the design philosophy of layering, is mainly divided into application layer, equipment application layer, device interface layer and physical communication layer, as shown in accompanying drawing 1,2.
Application layer is responsible for providing short message equipment communication interface to call to application program, comprises java application program, C/C++ application program; Device interface layer has encapsulated different interfaces for different short message equipments, and equipment application layer can be called according to difference setting the interface of relevant device.In device interface layer, design respectively interface for wavecom, Siemens's SMS module, and equipment application layer can shield the difference of underlying device, application program only need to be passed through application layer invocation facility Applied layer interface, does not need the interface of direct invocation facility interface layer.
Adopt this Design Mode, the program of different layers completes different functions, and bottom program provides calling interface to upper strata.In the time that bottom code changes, only need to revise bottom code, do not need to revise layer identification code.
When secondary development, only need to import configuration parameter into or just can drive the short message equipment of different brands by invokes application layer interface by configuration file.
(2) technology that, note Generalized Communication Interface adopts
Produce under environment in the whole nation, and the secondary development of communicating by letter with short message equipment mainly adopts JAVA and C/C++ language, has considered JAVA application call when therefore we design the short message equipment Generalized Communication Interface based on whole nation product CPU and OS.The short message equipment Generalized Communication Interface that produces CPU and OS based on the whole nation has adopted JAVA JNI technology, makes to possess based on the short message equipment Generalized Communication Interface of whole nation product CPU and OS the ability of JAVA language and C/C++ language call simultaneously.
Under environment based on domestic CPU and OS, domestic operating system has adopted the API that follows POSIX standard, and therefore the short message equipment Generalized Communication Interface based on whole nation product CPU and OS adopts standard P OSIX interface to carry out serial communication exploitation.
(3), note general-purpose interface class design
Short message equipment general-purpose interface based on whole nation product CPU and OS utilizes the feature of C Plus Plus polymorphism, and the equipment application layer in the corresponding hierarchical Design of SmsApp class, provides unified calling interface to application layer, WaveCom and Seimens class corresponding device interface layer.The present invention utilizes the Virtual Function of C++ to reach polymorphism object, can, by calling the interface of SmsApp, call distinct device interface.This design philosophy has been utilized the polymorphism of C/C++, as follows:
class?SmsApp
{
SmsApp();
visual?SmsAt();
……
}
class?WaveCom?:?public?SmsApp
{
WaveCom();
SmsAt();
……
}
class?Seimens?:?public?SmsApp
{
Seimens?();
SmsAt();
……
}
Above-mentioned class design relation as shown in Figure 3.
Claims (4)
1. one kind is produced the short message equipment Generalized Communication Interface of CPU and OS based on the whole nation, it is characterized in that: refine and be packaged with for short message equipment common function interface for the AT instruction of short message equipment and common function, adopt JNI technology realize for the interface of JAVA routine call, adopt standard P OSIX API realize serial communication function library, hierarchical design realize the isolation of devices communicating and upper strata calling, use C++ Design for polymorphism class inheritance hierarchy relation.
2. the short message equipment Generalized Communication Interface that produces CPU and OS based on the whole nation according to claim 1, is characterized in that adopting the serial port communication technology of following POSIX standard to realize the serial communication function library of short message equipment and domestic server and PC.
3. the short message equipment Generalized Communication Interface that produces CPU and OS based on the whole nation according to claim 1, is characterized in that described hierarchical design refers to: Generalized Communication Interface design is divided into application layer, equipment application layer, device interface layer, physical communication layer;
Application layer, for providing short message equipment communication interface to call to application program, comprises java application program, C/C++ application program;
The Design for polymorphism of equipment application layer based on C Plus Plus, shielding underlying device difference, provide unified interface to upper strata;
Device interface layer has realized interface for different short message equipments, provides calling interface to equipment application layer;
Physical communication layer is for the realization of short message equipment and server and PC communication interface.
4. the short message equipment Generalized Communication Interface that produces CPU and OS based on the whole nation according to claim 1, is characterized in that described class inheritance hierarchy pass is:
Equipment application layer in the corresponding hierarchical Design of SmsApp class, provides unified calling interface to application layer, WaveCom and Seimens class corresponding device interface layer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410049389.9A CN103795814B (en) | 2014-02-13 | 2014-02-13 | A kind of short message equipment universal communication interface producing CPU and OS based on the whole nation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410049389.9A CN103795814B (en) | 2014-02-13 | 2014-02-13 | A kind of short message equipment universal communication interface producing CPU and OS based on the whole nation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103795814A true CN103795814A (en) | 2014-05-14 |
CN103795814B CN103795814B (en) | 2019-06-25 |
Family
ID=50671081
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410049389.9A Active CN103795814B (en) | 2014-02-13 | 2014-02-13 | A kind of short message equipment universal communication interface producing CPU and OS based on the whole nation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103795814B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182220A (en) * | 2014-08-12 | 2014-12-03 | 浪潮软件股份有限公司 | Image acquisition method based on domestic CPU and domestic OS |
CN104243886A (en) * | 2014-09-28 | 2014-12-24 | 中国电子科技集团公司第二十七研究所 | High-speed image analyzing and video generating technology based on plug-in technology |
CN104679523A (en) * | 2015-03-17 | 2015-06-03 | 浪潮集团有限公司 | Graphical packaged software realization method based on domestic platform |
CN108090219A (en) * | 2014-12-24 | 2018-05-29 | 北京奇虎科技有限公司 | The processing method and processing device of database onboard data |
CN108614705A (en) * | 2017-02-07 | 2018-10-02 | 腾讯科技(深圳)有限公司 | A kind of data compilation processing method and terminal |
CN111294404A (en) * | 2020-02-11 | 2020-06-16 | 深圳震有科技股份有限公司 | Processing method and device, computer equipment and medium suitable for various external short message services |
CN112653836A (en) * | 2020-12-14 | 2021-04-13 | 珠海格力智能装备有限公司 | Image acquisition method and device, storage medium and processor |
CN113434118A (en) * | 2021-05-31 | 2021-09-24 | 深圳市国电科技通信有限公司 | Layered architecture system of concentrator based on Java platform |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2798174Y (en) * | 2004-12-27 | 2006-07-19 | 张金明 | General interface equipment for digital integrated multimedia computer |
US20060191435A1 (en) * | 2003-03-06 | 2006-08-31 | Akiyoshi Fujihara | Line concentrator, network-capable apparatus, and communication system |
CN101118436A (en) * | 2007-09-03 | 2008-02-06 | 石毅 | New style open type numerical control system realizing method based on multiple CPU parallel processing technology |
CN201266993Y (en) * | 2008-09-03 | 2009-07-01 | 成都众山科技有限公司 | Short message general-purpose data transmission equipment |
CN103353839A (en) * | 2013-06-07 | 2013-10-16 | 杭州竞天数码科技有限公司 | Universal serial device communication module based on Android system |
-
2014
- 2014-02-13 CN CN201410049389.9A patent/CN103795814B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060191435A1 (en) * | 2003-03-06 | 2006-08-31 | Akiyoshi Fujihara | Line concentrator, network-capable apparatus, and communication system |
CN2798174Y (en) * | 2004-12-27 | 2006-07-19 | 张金明 | General interface equipment for digital integrated multimedia computer |
CN101118436A (en) * | 2007-09-03 | 2008-02-06 | 石毅 | New style open type numerical control system realizing method based on multiple CPU parallel processing technology |
CN201266993Y (en) * | 2008-09-03 | 2009-07-01 | 成都众山科技有限公司 | Short message general-purpose data transmission equipment |
CN103353839A (en) * | 2013-06-07 | 2013-10-16 | 杭州竞天数码科技有限公司 | Universal serial device communication module based on Android system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104182220A (en) * | 2014-08-12 | 2014-12-03 | 浪潮软件股份有限公司 | Image acquisition method based on domestic CPU and domestic OS |
CN104243886A (en) * | 2014-09-28 | 2014-12-24 | 中国电子科技集团公司第二十七研究所 | High-speed image analyzing and video generating technology based on plug-in technology |
CN104243886B (en) * | 2014-09-28 | 2018-07-20 | 中国电子科技集团公司第二十七研究所 | A kind of high speed image parsing and video generation method based on plug-in part technology |
CN108090219A (en) * | 2014-12-24 | 2018-05-29 | 北京奇虎科技有限公司 | The processing method and processing device of database onboard data |
CN104679523A (en) * | 2015-03-17 | 2015-06-03 | 浪潮集团有限公司 | Graphical packaged software realization method based on domestic platform |
CN108614705A (en) * | 2017-02-07 | 2018-10-02 | 腾讯科技(深圳)有限公司 | A kind of data compilation processing method and terminal |
CN108614705B (en) * | 2017-02-07 | 2022-06-03 | 腾讯科技(深圳)有限公司 | Data compiling processing method and terminal |
CN111294404A (en) * | 2020-02-11 | 2020-06-16 | 深圳震有科技股份有限公司 | Processing method and device, computer equipment and medium suitable for various external short message services |
CN112653836A (en) * | 2020-12-14 | 2021-04-13 | 珠海格力智能装备有限公司 | Image acquisition method and device, storage medium and processor |
CN113434118A (en) * | 2021-05-31 | 2021-09-24 | 深圳市国电科技通信有限公司 | Layered architecture system of concentrator based on Java platform |
CN113434118B (en) * | 2021-05-31 | 2024-01-12 | 深圳市国电科技通信有限公司 | Java platform-based hierarchical architecture system of concentrator |
Also Published As
Publication number | Publication date |
---|---|
CN103795814B (en) | 2019-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103795814A (en) | Short message equipment universal communication interface based on fully domestic CPU and OS | |
CN1849585B (en) | Method, system and product for using multiple virtual machine monitors to handle privileged events | |
Pena et al. | The internet of things: The role of reconfigurable platforms | |
EP3128447A1 (en) | Handling versioned datasets in data pipelines | |
CN106502930B (en) | The method and apparatus of GPIO simulation serial line interface based on windows platform | |
CN103413074B (en) | A kind of method and apparatus being realized software protection by API | |
CN103488478A (en) | Device management framework based on android platform | |
WO2020192667A1 (en) | Cross-language compiling method and device | |
CN108073688A (en) | A kind of method and device of Data Migration | |
US20160357684A1 (en) | Preemptive guest merging for virtualization hypervisors | |
CN109471893A (en) | Querying method, equipment and the computer readable storage medium of network data | |
CN101840391B (en) | Electronic payment system dual-processor sub-system communication method and calling method thereof | |
CN104572102A (en) | Method for solving Chinese messy codes in JAVA | |
CN107861803A (en) | Cpci bus RS422 communications driving method under a kind of XP systems based on interruption | |
CN101819524B (en) | Access method of RFID (Radio Frequency Identification Device) reader and interface driving device thereof | |
CN103338063B (en) | Android electric intelligent key and Bluetooth unlock system, as well as implementation method thereof | |
CN105468448A (en) | Slave core system call implementation method facing to isomerism many-core environment | |
CN110175139A (en) | A kind of the Universal debugging method and USB device of USB device | |
CN111090430B (en) | Application software development system under embedded system | |
CN109242055A (en) | Smart card peripheral device, command processing method, electronic equipment and storage medium | |
CN114741400A (en) | Data synchronization and analysis method, device and terminal equipment | |
CN109669595A (en) | The control method and system of touch screen | |
CN105653534B (en) | Data processing method and device | |
KR20100122431A (en) | Sharing input/output(i/o) resources across multiple computing systems and/or environments | |
CN100374996C (en) | Method for providing three-dimensional input information for computer |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |