CN103795814B - A kind of short message equipment universal communication interface producing CPU and OS based on the whole nation - Google Patents
A kind of short message equipment universal communication interface producing CPU and OS based on the whole nation Download PDFInfo
- Publication number
- CN103795814B CN103795814B CN201410049389.9A CN201410049389A CN103795814B CN 103795814 B CN103795814 B CN 103795814B CN 201410049389 A CN201410049389 A CN 201410049389A CN 103795814 B CN103795814 B CN 103795814B
- Authority
- CN
- China
- Prior art keywords
- interface
- equipment
- short message
- layer
- communication
- 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.)
- Active
Links
- 230000006854 communication Effects 0.000 title claims abstract description 57
- 238000004891 communication Methods 0.000 title claims abstract description 56
- 238000013461 design Methods 0.000 claims abstract description 28
- 238000002955 isolation Methods 0.000 claims abstract description 3
- 238000004886 process control Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 6
- 230000006870 function Effects 0.000 description 8
- 238000011161 development Methods 0.000 description 4
- 238000011160 research Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention discloses a kind of short message equipment universal communication interfaces that CPU and OS is produced based on the whole nation, belong to communication interface field.Above-mentioned communication interface is packaged with for the AT instruction and common function refinement of short message equipment for short message equipment common function interface, realizes the interface for JAVA routine call using JNI technology, serial communication function library is realized using standard POSIX API, realizing isolation that equipment communication and upper layer calls, the Design for polymorphism Similar integral hierarchical relationship using C++ using hierarchical design.Compared with prior art, the short message equipment universal communication interface of the invention for producing CPU and OS based on the whole nation has good Universal and scalability, has good application value.
Description
Technical field
The present invention relates to communication interface field, specifically a kind of short message equipment for producing CPU and OS based on the whole nation is general
Communication interface.
Background technique
Under the overall background of information security, various information becomes safely a most important problem.In recent years, China's political affairs
Mansion puts into a large amount of financial resources, material resources develop information technology software and hardware product with independent intellectual property rights, improves core competitiveness, protects
Hinder 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 core
Piece mainly just refers to the central processing unit of electronic computer, is that research and development difficulty is maximum in computer industry.Current domestic CPU master
There are the Godson CPU of Inst. of Computing Techn. Academia Sinica, the CPU and Beijing University crowd will CPU that soars of University of Science and Technology for National Defence.Basic software
It is primarily referred to as operating system, database and middleware etc., the basic software of China's independent research at present product mainly has acceptance of the bid kylin
Operating system, middle Ke Fangde operating system, magic database, Apusic, TongTech's middleware etc..
Under the support energetically of country, high-end general-purpose chip and basic software product have significant progress, product
Performance, stability, reliability are all greatly improved;The performance of Inst. of Computing Techn. Academia Sinica's Godson 3A processor
Advanced ranks in the world is all entered with stability;Domestic operating system has derived many based on state there has also been biggish progress
The software product for producing operating system, such as office software, database, middleware and other software product.
Although the basic software and hardware product of China's independent research has biggish development, due to domestic basic software and hardware
Product market share is very low, and ecological environment is very not perfect, and rarely peripherals manufacturer can research and develop outer based on domestic CPU and OS
Connect device communication interface and software product.Therefore the most of external equipment of existing market can not all make in full domestic environment
With so that the popularization and use of domestic basis software and hardware product encounter difficulty.By taking short message equipment as an example, existing market is most absolutely
Number short message equipment manufacturer provides the communication interface and software of Windows operating system, therefore user does not need too many throwing
Short message equipment can be used by entering.
But since the instruction set of domestic CPU is different with intel, AMD product of the market mainstream, lead to short message equipment manufacturer
Communication interface packet and software product can not run and use in the complete machine based on domestic CPU.
Summary of the invention
Technical assignment of the invention is that in view of the above shortcomings of the prior art, providing a kind of has good versatility and can
The short message equipment universal communication interface that CPU and OS is produced based on the whole nation of scalability.
Technical assignment of the invention is realized in the following manner: a kind of short message equipment producing CPU and OS based on the whole nation is logical
With communication interface, it is packaged with its main feature is that being refined for the AT instruction of short message equipment and common function for short message equipment common work
Energy interface realizes the interface for JAVA routine call using JNI technology, realizes serial communication function using standard POSIX API
Library is realized isolation that equipment communication and upper layer calls using hierarchical design, is closed using the Design for polymorphism Similar integral level of C++
System.
Further, described to realize that serial communication function library refers to using standard POSIX API: to use and follow POSIX standard
Serial port communication technology realize short message equipment and domestic server and PC serial communication function library.
The hierarchical design refers to: universal communication interface design is divided into application layer, equipment application layer, equipment interface
Layer, physical communication layer;
Application layer is used to provide short message equipment communication interface to application program and call, including java application program, C/C
++ application program;
Design for polymorphism of the equipment application layer based on C Plus Plus shields the difference of underlying device, provides unification to upper layer
Interface;
Device interface layer realizes interface for different short message equipments, provides calling interface to equipment application layer;
Physical communication layer is used for the realization of short message equipment and server and PC communication interface.
The Similar integral hierarchical relationship is that SmsApp class corresponds to the equipment application layer in hierarchical Design, is mentioned to application layer
For unified calling interface, WaveCom and Seimens class corresponds to device interface layer.
The short message equipment universal communication interface for producing CPU and OS based on the whole nation of the invention has following compared with prior art
It is outstanding the utility model has the advantages that
(1), server, PC machine and short message equipment under totally-domestic environment may be implemented by the communication interface of the invention
Communication, so as to realize setting short message equipment, control short message transmit and receive, control GPRS data transmit and receive etc. functions.
(2), the invention communication interface can be used for operating based on the acceptance of the bid kylin of domestic Godson CPU and the domestic CPU that soars
Short message equipment communication process under system environments.
(3), there is good Universal and scalability, can support the SMS module of existing market mainstream, and can be with
Flexibly it is extended to support other brand short message equipments.
(4), it can be called by JAVA and C Plus Plus, support the calling of different programming languages under domestic environment.
(5), there is good professional platform independence, can not only operate under full domestic environment, it is only necessary to recompilate
It operates under other operating system environments for following POSIX standard.
Detailed description of the invention
Attached drawing 1 is the architecture diagram of communication interface hierarchical design of the present invention;
Attached drawing 2 is this present invention Communications Interface Unit interface layer block diagram;
Attached drawing 3 is communication interface Similar integral relational graph of the present invention.
Specific embodiment
It is general to the short message equipment of the invention for producing CPU and OS based on the whole nation logical with specific embodiment referring to Figure of description
Letter interface is described in detail below.
Embodiment:
The short message equipment universal communication interface for producing CPU and OS the present invention is based on the whole nation is implemented by following scheme:
(1), short message universal communication interface uses running environment
Hardware environment: Godson CPU, the CPU that soars, tide Godson PC, tide Loongson server, tide FT server, short
Believe equipment.
Software environment: acceptance of the bid kylin server operating system (Godson CPU), acceptance of the bid kylin server operating system (are soared
CPU), acceptance of the bid kylin desktop operating system (Godson CPU), OpenJDK.
(2), the programming of short message universal communication interface is summarized
The short message equipment universal communication interface that CPU and OS is produced based on the whole nation needs to have good scalability, general
Property, it can be adapted for the short message equipment of the market mainstream, while what also be can be convenient is extended under design architecture, to be applicable in it
His manufacturer's SMS module.
Short message equipment general-purpose interface based on whole nation production CPU and OS is had good logical based on open design architecture
With property, it can be applicable in the brands SMS module such as the wavacom of mainstream, Siemens in the market, can also be added under this framework new
Short message equipment communication interface, without modifying original code, scalability is good.
The control instruction of short message equipment is instructed using AT, for example, inquiring SIM card operator's informaiton, inquiry signal strength, setting
Short message is set to send format, send short message, can instruct by GPRS online etc. by sending corresponding AT to short message equipment come real
It is existing;The communication of short message equipment and host mainly passes through serial mode.When secondary development, sent by serial ports to SMS module
AT instruction control SMS module is realized and sends short message, deletes short message, short message reading, making and receiving calls, transmitting-receiving GPRS data etc.
Function.
(3), short message design for Universal Interface framework
(1), the hierarchical design of short message general-purpose interface
The design philosophy of layering is used based on the short message equipment universal communication interface design architecture that the whole nation produces CPU and OS,
It is broadly divided into application layer, equipment application layer, device interface layer and physical communication layer, as shown in attached drawing 1,2.
Application layer is responsible for providing short message equipment communication interface calling, including java application program, C/C to application program
++ application program;Device interface layer encapsulates different interfaces for different short message equipments, and equipment application layer can be according to not
The interface of relevant device is called with setting.In device interface layer, separately designs and connect for wavecom, Siemens's SMS module
Mouthful, and equipment application layer can shield the difference of underlying device, application program only needs to call equipment to answer by application layer
With layer interface, the interface for calling directly device interface layer is not needed.
Using the design pattern, the program of different layers completes different functions, and underlying programs provide calling interface to upper layer.
When bottom code changes, bottom code only need to be modified, is not required to modify layer identification code.
Incoming configuration parameter is only needed when secondary development or can be by calling application program layer interface by configuration file
Drive the short message equipment of different brands.
(2), the technology that short message universal communication interface uses
Under full domestic environment, the secondary development communicated with short message equipment mainly uses JAVA and C/C++ language, therefore we
It designs and considers JAVA application call when producing the short message equipment universal communication interface of CPU and OS based on the whole nation.Based on the whole nation
The short message equipment universal communication interface for producing CPU and OS uses JAVA JNI technology, so that producing the short message of CPU and OS based on the whole nation
Device-General communication interface is provided simultaneously with the ability of JAVA language and C/C++ language call.
In the environment of domestic CPU and OS, domestic operating system uses the API for following POSIX standard, therefore is based on
The short message equipment universal communication interface that the whole nation produces CPU and OS carries out serial communication exploitation using standard POSIX interface.
(3), short message general-purpose interface class designs
The feature of C Plus Plus polymorphism, SmsApp class pair are utilized based on the short message equipment general-purpose interface that the whole nation produces CPU and OS
The equipment application layer in hierarchical Design is answered, unified calling interface, WaveCom and Seimens class pair are provided to application layer
Answer device interface layer.The present invention reaches polymorphism purpose using the Virtual Function of C++, can be come by the interface of calling SmsApp
Call distinct device interface.The polymorphism of C/C++ is utilized in the design philosophy, as follows:
class SmsApp
{
SmsApp();
visual SmsAt();
……
}
class WaveCom : public SmsApp
{
WaveCom();
SmsAt();
……
}
class Seimens : public SmsApp
{
Seimens ();
SmsAt();
……
}
Above-mentioned class design relation is as shown in Fig. 3.
Claims (1)
1. a kind of short message equipment universal communication interface for producing CPU and OS based on the whole nation, it is characterised in that:
Using the design architecture shielding underlying device of layering it is different caused by process control difference, while realize equipment communication and on
The isolation that layer calls provides the application call interface of unified standard to upper level applications, has and compiled by multilingual
The ability for the application call write, including java, C++;It is connect using the POSIX that the operating system for producing CPU based on the whole nation follows
Cause for gossip shows equipment communication;Design architecture based on layering devises the inheritance hierarchy relationship of class,
The design architecture of the layering refers to that the design architecture by short message equipment universal communication interface is designed as application layer, equipment
Application layer, device interface layer, physical communication layer;
Application layer is used to provide short message equipment communication interface to application program and call;
Equipment application layer is based on programming language Design for polymorphism, shields the difference of underlying device, provides unified mark to upper layer
Quasi- application call interface;
Device interface layer realizes equipment control interface for the short message equipment of different brands, model, is used for equipment application layer
Unified standard calling interface is provided;
Physical communication layer realizes that short message equipment produces the domestic physical server of CPU and OS, PC with based on the whole nation with POSIX interface
Communication, the short message equipment for providing unified standard to device interface layer call communication interface;
The Similar integral hierarchical relationship are as follows:
SmsApp class corresponds to the equipment application layer in hierarchical Design, defines unified standard interface, provides system to application layer
One calling interface, while unified realization interface being provided for underlying device interface class;
Equipment interface class corresponds to device interface layer, is directed to different short message equipments, realizes equipment control interface, and the equipment connects
Mouth class realizes the standard interface rule that SmsApp class defines, including WaveCom or Seimens class.
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 CN103795814A (en) | 2014-05-14 |
CN103795814B true 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) |
Families Citing this family (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 |
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 |
CN108090219B (en) * | 2014-12-24 | 2021-08-20 | 北京奇虎科技有限公司 | Method and device for processing built-in data of database |
CN104679523A (en) * | 2015-03-17 | 2015-06-03 | 浪潮集团有限公司 | Graphical packaged software realization method based on domestic platform |
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 |
CN113434118B (en) * | 2021-05-31 | 2024-01-12 | 深圳市国电科技通信有限公司 | Java platform-based hierarchical architecture system of concentrator |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4133459B2 (en) * | 2003-03-06 | 2008-08-13 | シャープ株式会社 | Concentrator, network compatible device, communication system |
-
2014
- 2014-02-13 CN CN201410049389.9A patent/CN103795814B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Also Published As
Publication number | Publication date |
---|---|
CN103795814A (en) | 2014-05-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103795814B (en) | A kind of short message equipment universal communication interface producing CPU and OS based on the whole nation | |
CN105477854B (en) | Applied to the handle control method of intelligent terminal, apparatus and system | |
Yang et al. | μ PnP: plug and play peripherals for the internet of things | |
CN101976202B (en) | Method and device for use of multiple virtual machine monitors to handleprivileged events | |
CN103902283B (en) | Method for achieving real-time asynchronous communication through model transformation in CORBA | |
US12039374B2 (en) | Extendable container-orchestration system controllers | |
Kaltenbrunner et al. | The tuio 2.0 protocol: An abstraction framework for tangible interactive surfaces | |
CN103279414B (en) | A kind of convert channel detection method being applicable to Xen virtual platform | |
CN109739791A (en) | A kind of universal safety trusted interface card of PCIE and MINIPCIE double nip | |
CN101788803B (en) | Easily expansible numerical control system based on Windows | |
CN108921855A (en) | Image processing method and system based on information | |
CN103338063B (en) | Android electric intelligent key and Bluetooth unlock system, as well as implementation method thereof | |
CN101998691B (en) | Method, system and device for data transmission | |
CN109242055A (en) | Smart card peripheral device, command processing method, electronic equipment and storage medium | |
CN111090430B (en) | Application software development system under embedded system | |
CN108280133A (en) | A kind of control method and equipment for page browsing | |
CN104424153B (en) | A kind of audio & video equipment data collecting system and its method to USB interface | |
CN101630296A (en) | USB attached apparatus and internal data transmission method thereof | |
JP6027235B2 (en) | Mobile device communication method, apparatus and system | |
CN105653534B (en) | Data processing method and device | |
CN100374996C (en) | Method for providing three-dimensional input information for computer | |
CN104808915A (en) | Key control method and electronic device | |
CN103914928B (en) | A kind of tax returns system and method utilizing M2M technology based on Android system | |
WO2024138785A1 (en) | Thing object digitization method for metaverse system development | |
Zhou et al. | The key study of the integration between smartphone NFC technology and ERP system |
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 |