CN105572704A - Method for supporting Beidou module under Android platform - Google Patents
Method for supporting Beidou module under Android platform Download PDFInfo
- Publication number
- CN105572704A CN105572704A CN201410539674.9A CN201410539674A CN105572704A CN 105572704 A CN105572704 A CN 105572704A CN 201410539674 A CN201410539674 A CN 201410539674A CN 105572704 A CN105572704 A CN 105572704A
- Authority
- CN
- China
- Prior art keywords
- big dipper
- android platform
- module under
- nmea
- gps
- 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
Links
Landscapes
- Navigation (AREA)
Abstract
The invention discloses a method for supporting a Beidou module under an Android platform, wherein the method belongs to the field of mobile terminals. A system according to the method comprises an embedded processor and a Beidou navigation chip. The method comprises the following steps of transmitting a positioning application by an APP; starting a positioning service thread; calling a location provider service in an APP framework by the thread; calling the location provider service into a JNI, acquiring a GpsInterface by the JNI, and transmitting realization of one callback function to the interface; and calling a Gps drive. According to the method of the invention, through modifying a hardware abstraction layer in an Android system, realization of a Beidou satellite module on terminal equipment is comprehensively promoted, and mobile phones, mobile terminals or personal computer which supports the Android system can be randomly operated.
Description
Technical field
The present invention relates to technical field of mobile terminals, under being specifically related to Android platform, support Big Dipper modular approach.
Background technology
Beidou satellite navigation system is China's global positioning satellite of developing voluntarily and communication system, round-the-clock, round-the-clock can provide high precision, highly reliable location, navigation, time service service for all types of user in the world, and there is short message communication capacity, possess area navigation, location and time service ability, compared with civilian commonplace GPS in the market, Beidou satellite navigation have that precision is higher, function is abundanter and autonomous property right etc. specific, be the trend of navigation application development.
Android is a kind ofly mainly used in mobile device based on the freedom of Linux and the operating system of open source code, as smart mobile phone and panel computer.Android platform has explorative advantage, and the platform of exploitation allows any mobile terminal manufacturer to join android alliance.
Current Android system is at home and abroad widely used, himself code also in development at full speed to meet various hardware device and business demand, but the satnav chip of nearly all Android device is all GPS (GlobalPositioningSystem, GPS), this is the driving that the android manufacturer in order to cater to main flow provides is that source coordinates.But along with Chinese Beidou satellite navigation system (BeiDouNavigationSatelliteSystem-" BDS ") is more and more tending towards perfect, the raising of coverage rate and precision, increasing terminal manufacturer brings into use triones navigation system now, because primary android system only has carried out comprehensive support to the navigational system of GPS, relatively novel triones navigation system then cannot provide comprehensive support.
Summary of the invention
In view of the above problems, propose the present invention in case provide a kind of overcome the problems referred to above or the Android platform that solves the problem at least in part under support the method for Big Dipper module, support the realization on the mobile terminal device of big-dipper satellite module comprehensively.
According to one aspect of the present invention, the method of Big Dipper module is supported under providing Android platform, described Android platform is made up of LinuxKernel, AndroidRuntime, Libraries, ApplicationFramework, Applications5 part, comprise flush bonding processor and Beidou navigation chip, it is characterized in that, comprise the following steps:
Step (1), by app send location application LocationApplication;
Step (2), a startup positioning service thread LocationManagerService;
Locationprovider in step (3), described thread dispatching application framework AppFramework serves Android_location_LocationManagerProvider_XXX;
Step (4), call in JNI, described JNI obtains GpsInterface, and pass to an interface call back function realize GpscallbacksgpsLocation;
Step (5), call Gps drive GpsDriver.
Further, described step (4) by native method call in JNI.
Further, the GpsInterface obtained in described step (4) is realized by HAL layer.
Further, before use Big Dipper location, the example of LocationManager is obtained.
Further, the method for the example of described acquisition LocationManager is calling by getSystemService method, obtains position supplier's list.
Further, the supplier's list of described position comprises Big Dipper information on services.
Further, described Big Dipper information on services comprises acquisition: the getSystemService of LocationMananger, obtain the Criteria of most suitable provider, the requestLocationUpdates of registration audiomonitor, obtains the Geocoder of the address that longitude and latitude is expressed.
Further, the nmea_reader_parse function in the GPS.c of HAL layer drives increases respectively according to the difference that NMEA takes the lead and judges that statement judgement is the NMEA protocol information of GPS or the Big Dipper.
Further, GPS is the satellite information of taking the lead with GP for NMEA, and the Big Dipper is the NMEA information of taking the lead based on BD.
The problem of big-dipper satellite module cannot be supported in order to solve android system, the present invention proposes a kind of method revising hardware abstraction layer in android system, support the realization on the terminal device of big-dipper satellite module comprehensively, arbitrarily can operate in mobile phone, mobile terminal or the PC etc. of supporting android system.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Figure of description only for illustrating the object of preferred implementation, and does not think limitation of the present invention.Apparently, accompanying drawing described below is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 supports the method general frame figure of Big Dipper module under showing the Android platform according to the embodiment of the present invention one;
Fig. 2 supports the method flow diagram of Big Dipper module under showing the Android platform according to the embodiment of the present invention two;
Fig. 3 supports the signal wiring figure of Big Dipper module under showing the Android platform according to the embodiment of the present invention three.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
It should be noted that, in the middle of instructions and claim, employ some vocabulary to censure specific components.Those skilled in the art should be appreciated that hardware manufacturer may call same assembly with different noun.This specification and claims are not used as with the difference of noun the mode distinguishing assembly, but are used as the criterion of differentiation with assembly difference functionally." comprising " or " comprising " as mentioned in the middle of instructions and claim is in the whole text an open language, therefore should be construed to " comprise but be not limited to ".Instructions subsequent descriptions is for implementing better embodiment of the present invention, and right described description is for the purpose of the rule of instructions, and is not used to limit scope of the present invention.Protection scope of the present invention is when being as the criterion depending on the claims person of defining.
The problem of big-dipper satellite module cannot be supported in order to solve above-mentioned android system, the present invention proposes a kind of method revising hardware abstraction layer in android system, support the realization on the terminal device of big-dipper satellite module comprehensively, arbitrarily can operate in mobile phone, mobile terminal or the PC etc. of supporting android system.The realization of this function is developed the use of Beidou satellite navigation module mainly for some industry.
For ease of the understanding to the embodiment of the present invention, be further explained explanation below in conjunction with accompanying drawing for several specific embodiment, and each accompanying drawing does not form the restriction to the embodiment of the present invention.
The method general frame of Big Dipper module is supported under embodiment one, Android platform.
Below in conjunction with Fig. 1, the method general frame of the present embodiment one is described in detail.
Fig. 1 is the method general frame figure supporting Big Dipper module under the Android platform of the embodiment of the present invention one, as shown in Figure 1, the general frame of the embodiment of the present invention comprises Framework & Applications101, Externallibraries & Runtime102, HAL (libhardware) (HardwareAbstractionLayer, hardware abstraction layer) 103 and LinuxDeviceDriver104.
Concrete, a complete Android system framework is made up of 5 parts, respectively: LinuxKernel, AndroidRuntime, Libraries, ApplicationFramework, Applications.Simply introduce each several part respectively below.
LinuxKernel:Android provides core system service based on Linux2.6, such as: safety, memory management, management of process, network stack, driving model.LinuxKernel is also as the level of abstraction between hardware and software, and its is hidden particular hardware details and provides unified service for upper strata.
AndroidRuntime:Android comprises the set of a core library, provides the function that major part is available in Java programming language core class libraries.Each Android application program is the example in Dalvik virtual machine, operates in themselves process.
Libraries:Android comprises the set in a C/C++ storehouse, for each assembly of android system.These functions are exposed to developer by the application framework (applicationframework) of Android.Some core libraries are as system C storehouse; Media library; Interface management; 3D storehouse etc.
ApplicationFramework: by providing open development platform, Android enable developer work out extremely abundant and novel application program.Developer freely can utilize device hardware advantage, access location information, runs background service, arranges alarm clock, add notice etc. to status bar.The framework APIs that developer can use core application to use completely.The architecture of application program is intended to reusing of simplified assembly, and any application program can issue his function and any other application program can use these functions (needing to obey the safe limit of framework execution).This mechanism allows user to replace assembly.
Applications:Android assembles a core application set, comprises email client, SMS program, calendar, map, browser, contact person and other settings.All application programs are all write with Java programming language.
The present invention is that the code library of the libgps of HAL in amendment Android system realizes.The hardware abstraction layer of institute android, in simple terms, is exactly the encapsulation to linux kernel driver, upwards provides interface, and what shield low layer realizes details.That is, divide into two-layer to the support of hardware, one deck is placed on user's space (UserSpace), and one deck is placed on kernel spacing (KernelSpace).
The method of Big Dipper module is supported under embodiment two, Android platform.
Below in conjunction with Fig. 2, the method for the present embodiment is described in detail.
Fig. 2 is the schematic flow sheet supporting the method for Big Dipper module under the Android platform of the embodiment of the present invention two, as shown in Figure 2, the method of the present embodiment comprises: described Android platform is made up of LinuxKernel, AndroidRuntime, Libraries, ApplicationFramework, Applications5 part, comprise flush bonding processor and Beidou navigation chip, it is characterized in that, comprise the following steps:
Step 201, by app send location application LocationApplication;
Step 202, a startup positioning service thread LocationManagerService;
Locationprovider in step 203, described thread dispatching application framework AppFramework serves Android_location_LocationManagerProvider_XXX;
Step 204, call in JNI, described JNI obtains GpsInterface, and pass to an interface call back function realize GpscallbacksgpsLocation;
Step 205, call Gps drive GpsDriver.
The present embodiment is preferred, and described step 204 passes through native method call in JNI.
The present embodiment is preferred, and the GpsInterface obtained in described step 204 is realized by HAL layer.
The present embodiment is preferred, before use Big Dipper location, obtains the example of LocationManager.
The present embodiment is preferred, and the method for the example of described acquisition LocationManager is calling by getSystemService method, obtains position supplier's list.
The present embodiment is preferred, and the supplier's list of described position comprises Big Dipper information on services.
The present embodiment is preferred, described Big Dipper information on services comprises acquisition: the getSystemService of LocationMananger, obtain the Criteria of most suitable provider, the requestLocationUpdates of registration audiomonitor, obtains the Geocoder of the address that longitude and latitude is expressed.
The present embodiment is preferred, and the nmea_reader_parse function in the GPS.c of HAL layer drives increases respectively according to the difference that NMEA takes the lead and judges that statement judgement is the NMEA protocol information of GPS or the Big Dipper.
The present embodiment is preferred, and GPS is the satellite information of taking the lead with GP for NMEA, and the Big Dipper is the NMEA information of taking the lead based on BD.
Concrete, be realize the code that HAL layer compiling generation one is called the dynamic base of gps.***.so for main work the android Big Dipper drives.Location application is sent by app, now can deactivation positioning service thread, this thread can call the Locationprovider service in AppFramwork (application framework), pass through native method call again to JNI (JavaNativeInterface, JAVA calls this locality) in, JNI obtains GpsInterface and passes to the realization of an interface call back function, and GpsInterface is exactly by the main realization of HAL layer.
Use the Big Dipper to locate, first need the example obtaining LocationManager, in Android, the unique method obtaining LocationManager is calling by getSystemService method.By using LocationManager, the list of a position supplier can be obtained.In a specific handheld device, this list contains the information of some Big Dippeves service.Such as, getSystemService (obtains: LocationMananger); Criteria (obtaining most suitable provider); RequestLocationUpdates (registration audiomonitor); Geocoder (obtaining the address that longitude and latitude is expressed).Also more powerful, more accurately, not with other Additional Services Beidou navigation information can be selected.
Emphasis is exactly the support realized on the framework of existing GPS Beidou navigation module.NMEA is National Marine Electronics association (NationalMarineElectronicsAssociation) is the standard format that sea electronic equipment is formulated, and has already become the RTCM standard agreement that satellite navigation is unified at present.Based on both difference, GPS is the satellite information of taking the lead with GP for NMEA, such as $ GPGGA, $ GPGSA, $ GPGSV, $ GPRMC, $ GPVTG, $ GPGLL etc., and the Big Dipper is the NMEA information of taking the lead based on BD, so our nmea_reader_parse function in the GPS.c of HAL layer drives can increase respectively according to above-mentioned difference judge that statement judgement is the NMEA protocol information of GPS or the Big Dipper.
The present embodiment proposes a kind of method revising hardware abstraction layer in android system, supports the realization on the terminal device of big-dipper satellite module comprehensively, arbitrarily can operate in mobile phone, mobile terminal or the PC etc. of supporting android system.
The signal wiring of the method for Big Dipper module is supported under embodiment three, Android platform.
As shown in Figure 3, TXD, RXD pin of Beidou navigation chip UM220-IIIN module 301 is by UART (UniversalAsynchronousReceiver/Transmitter, UART Universal Asynchronous Receiver Transmitter) communication interface connection flush bonding processor 302, here concrete that select is the imx515 of Freescale, but general flush bonding processor also can realize object of the present invention.
One of ordinary skill in the art will appreciate that: accompanying drawing is the schematic diagram of an embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (9)
- The method of Big Dipper module is supported under 1.android platform, described Android platform is made up of LinuxKernel, AndroidRuntime, Libraries, ApplicationFramework, Applications5 part, comprise flush bonding processor and Beidou navigation chip, it is characterized in that, comprise the following steps:Step (1), by app send location application;Step (2), a startup positioning service thread;Locationprovider service in step (3), described thread dispatching application framework AppFramework;Step (4), call in JNI, described JNI obtains GpsInterface, and passes to the realization of an interface call back function;Step (5), call Gps drive.
- 2. support the method for Big Dipper module under Android platform according to claim 1, it is characterized in that: described step (4) by native method call in JNI.
- 3. support the method for Big Dipper module under Android platform according to claim 1 and 2, it is characterized in that: the GpsInterface obtained in described step (4) is realized by HAL layer.
- 4. according to the method supporting Big Dipper module under the arbitrary described Android platform of claims 1 to 3, it is characterized in that: before use Big Dipper location, obtain the example of LocationManager.
- 5. support the method for Big Dipper module under Android platform according to claim 4, it is characterized in that: the method for the example of described acquisition LocationManager is calling by getSystemService method, obtains position supplier's list.
- 6. support the method for Big Dipper module under Android platform according to claim 5, it is characterized in that: the supplier's list of described position comprises Big Dipper information on services.
- 7. under Android platform according to claim 6, support the method for Big Dipper module, it is characterized in that: described Big Dipper information on services comprises acquisition: the getSystemService of LocationMananger, obtain the Criteria of most suitable provider, the requestLocationUpdates of registration audiomonitor, obtains the Geocoder of the address that longitude and latitude is expressed.
- 8. according to the method supporting Big Dipper module under the arbitrary described Android platform of claim 1 to 7, it is characterized in that: the nmea_reader_parse function in the GPS.c of HAL layer drives increases respectively according to the difference that NMEA takes the lead and judges that statement judgement is the NMEA protocol information of GPS or the Big Dipper.
- 9. support the method for Big Dipper module under Android platform according to claim 8, it is characterized in that: GPS is the satellite information of taking the lead with GP for NMEA, the Big Dipper is the NMEA information of taking the lead based on BD.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410539674.9A CN105572704A (en) | 2014-10-13 | 2014-10-13 | Method for supporting Beidou module under Android platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410539674.9A CN105572704A (en) | 2014-10-13 | 2014-10-13 | Method for supporting Beidou module under Android platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105572704A true CN105572704A (en) | 2016-05-11 |
Family
ID=55883046
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410539674.9A Pending CN105572704A (en) | 2014-10-13 | 2014-10-13 | Method for supporting Beidou module under Android platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105572704A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357889A (en) * | 2016-08-22 | 2017-01-25 | 杭州字节信息技术有限公司 | Intelligence framework of Beidou satellite communication and navigation based on Android system and application |
CN108152839A (en) * | 2017-12-22 | 2018-06-12 | 西安烽火电子科技有限责任公司 | Big Dipper data communication system and method based on Android operation system |
CN110866271A (en) * | 2019-10-22 | 2020-03-06 | 中山大学 | Position privacy protection method and system based on Android platform |
CN111050273A (en) * | 2019-08-02 | 2020-04-21 | 广东星舆科技有限公司 | Method and system for realizing high-precision positioning of intelligent terminal based on android system |
CN116680059A (en) * | 2023-08-01 | 2023-09-01 | 福建福大北斗通信科技有限公司 | Beidou third-generation management system and method based on Android platform |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103017770A (en) * | 2012-11-30 | 2013-04-03 | 深圳市航盛电子股份有限公司 | Combined navigation data adaptation method under Android system based on Big Dipper and gyroscope |
-
2014
- 2014-10-13 CN CN201410539674.9A patent/CN105572704A/en active Pending
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103017770A (en) * | 2012-11-30 | 2013-04-03 | 深圳市航盛电子股份有限公司 | Combined navigation data adaptation method under Android system based on Big Dipper and gyroscope |
Non-Patent Citations (3)
Title |
---|
万琪俊: "基于北斗导航卫星移动定位系统研究与实现", 《中国优秀硕士学位论文全文数据库 基础科学辑》 * |
代敏: "基于Android 平台下手机定位程序的设计及实现", 《计算机与数字工程》 * |
刘胜前等: "基于Android 移动平台和GPS应用服务研究", 《信息技术》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106357889A (en) * | 2016-08-22 | 2017-01-25 | 杭州字节信息技术有限公司 | Intelligence framework of Beidou satellite communication and navigation based on Android system and application |
CN106357889B (en) * | 2016-08-22 | 2019-04-16 | 杭州字节信息技术有限公司 | Beidou satellite communication based on android system and navigation intelligence system and its application |
CN108152839A (en) * | 2017-12-22 | 2018-06-12 | 西安烽火电子科技有限责任公司 | Big Dipper data communication system and method based on Android operation system |
CN108152839B (en) * | 2017-12-22 | 2021-11-19 | 西安烽火电子科技有限责任公司 | Android operating system-based Beidou data communication system and method |
CN111050273A (en) * | 2019-08-02 | 2020-04-21 | 广东星舆科技有限公司 | Method and system for realizing high-precision positioning of intelligent terminal based on android system |
CN111050273B (en) * | 2019-08-02 | 2021-06-04 | 广东星舆科技有限公司 | Method and system for realizing high-precision positioning of intelligent terminal based on android system |
CN110866271A (en) * | 2019-10-22 | 2020-03-06 | 中山大学 | Position privacy protection method and system based on Android platform |
CN116680059A (en) * | 2023-08-01 | 2023-09-01 | 福建福大北斗通信科技有限公司 | Beidou third-generation management system and method based on Android platform |
CN116680059B (en) * | 2023-08-01 | 2023-11-14 | 福建福大北斗通信科技有限公司 | Management method of Beidou third-generation management system based on Android platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9451100B2 (en) | Method for transmitting notification information and electronic device thereof | |
CN105572704A (en) | Method for supporting Beidou module under Android platform | |
KR20180101063A (en) | Electronic apparatus for processing user input and method for processing user input | |
Shu et al. | Research on mobile location service design based on Android | |
KR102082347B1 (en) | Electronic device and method for transmitting notification information | |
EP3403177A1 (en) | Managing delivery of code and dependent data using application containers | |
CN110990105B (en) | Interface display method and device, electronic equipment and storage medium | |
KR102193404B1 (en) | Incrementally compiling software artifacts from an interactive development environment | |
CN104412256A (en) | Generating localized user interfaces | |
CN103534705A (en) | Private and public applications | |
CN111434132A (en) | Method and terminal for opening account of eSIM card | |
KR20130119377A (en) | Apparatus and method for determining a wireless device's location after shutdown | |
CN102981820A (en) | Automatic lifecycle management for pages on a mobile application | |
CN103702297A (en) | Short message enhancement method, device and system | |
CN112783384A (en) | Control method for cloud application operation and electronic equipment | |
WO2018136030A1 (en) | Assistive screenshots | |
Sharma et al. | Advance woman security system based on android | |
CN109923506A (en) | Information processing method and positioning chip, mobile terminal | |
CN108055635B (en) | Position information acquisition method and device, storage medium and terminal | |
CN115150507A (en) | Service scheduling method and system, electronic device and computer readable storage medium | |
CN111076741B (en) | Navigation state acquisition method and device, storage medium and electronic equipment | |
CN108712717A (en) | Control method, device, storage medium based on application shop and mobile terminal | |
CN108540644B (en) | Method and electronic device for setting an alarm | |
CN115002274B (en) | Control method and device, electronic equipment and computer readable storage medium | |
CN106775608A (en) | The implementation method and device of autonomous system process |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160511 |