CN105183455B - A kind of method and system integrating JT/T808 programs under Android platform - Google Patents

A kind of method and system integrating JT/T808 programs under Android platform Download PDF

Info

Publication number
CN105183455B
CN105183455B CN201510496322.4A CN201510496322A CN105183455B CN 105183455 B CN105183455 B CN 105183455B CN 201510496322 A CN201510496322 A CN 201510496322A CN 105183455 B CN105183455 B CN 105183455B
Authority
CN
China
Prior art keywords
service
service processes
android
finger daemon
processes
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
Application number
CN201510496322.4A
Other languages
Chinese (zh)
Other versions
CN105183455A (en
Inventor
褚阳波
许宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Guanghetong Wireless Communication Software Co ltd
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN201510496322.4A priority Critical patent/CN105183455B/en
Publication of CN105183455A publication Critical patent/CN105183455A/en
Application granted granted Critical
Publication of CN105183455B publication Critical patent/CN105183455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of method integrating JT/T808 programs under Android platform.The method includes Linux bottoms to run finger daemon, and the finger daemon starts service processes, wherein the service processes include portion's beacon course sequence of JT/T808 agreements;The finger daemon monitors whether the service processes run always in real time, if the service processes are out of service, the finger daemon restarts the service processes;If the service processes are constantly in operating status, the finger daemon is communicated with Android service layers and the service processes simultaneously, and the JT/T808 program datas that the service processes include are passed to the Android service layers;Wherein, graphic user interface of the APK file of Android platform as the service processes, is used to execute interface display and order notifies, and the content of the interface display is obtained from the service processes.The present invention goes back while providing a kind of system integrating JT/T808 programs under Android platform.

Description

A kind of method and system integrating JT/T808 programs under Android platform
Technical field
The present invention relates to the communication technologys, particularly, are related to a kind of side integrating JT/T808 programs under Android platform Method and system.
Background technology
Traffic transport industry standard JT/T808 agreements, full name are《Road transport vehicle satellite positioning system terminal communication association View and data format》, which specify the communication associations between road transport vehicle satellite system onboard terminal and supervision/monitor supervision platform View and data format, including protocol basis, communication connection, Message Processing, protocol classification and explanation and data format are suitable for road Communication between road haulage vehicle satellite system car-mounted terminal and supervision/monitor supervision platform.
With the development of intelligent car networking, for the intercommunication for realizing between car-mounted terminal and supervision/monitor supervision platform, car-mounted terminal It generally requires and supports JT/T808 agreements, therefore need to develop corresponding JT/T808 programs inside the communication module of car-mounted terminal. The JT/T808 programs of traditional car-mounted terminal are developed under Linux environment, and with the universal of android system and are developed, More and more car-mounted terminals use android system.Therefore, the JT/T808 program needs developed under Linux environment originally It is transplanted to Android platform.The prior art is usually to need to develop JT/T808 again with JAVA on the APK of Android platform Program but has what heavy workload and the project cycle were grown, and original program development work can not using this scheme It is multiplexed and is inherited.
The method and systems of JT/T808 programs is integrated in view of this, it is necessary to provide a kind of under android system.
Invention content
It is an object of the invention to for JT/T808 program portables that will be developed under Linux environment to Android platform and Provide a kind of method and system integrating JT/T808 programs under Android platform.
The method provided by the invention that JT/T808 programs are integrated under Android platform, including:The operation of Linux bottoms is kept Shield process, the finger daemon starts service processes, wherein the service processes include portion's beacon course sequence of JT/T808 agreements; The finger daemon monitors whether the service processes run always in real time, described if the service processes are out of service Finger daemon restarts the service processes;If the service processes are constantly in operating status, the finger daemon is same When the JT/T808 program datas that are communicated with Android service layers and the service processes, and include by the service processes Pass to the Android service layers;Wherein, graphical user circle of the APK file of Android platform as the service processes Face, is used to execute interface display and order notifies, and the content of the interface display is obtained from the service processes.
It is described to keep as a kind of improvement of the method provided by the invention for integrating JT/T808 programs under Android platform Shield process carries out communication with Android service layers and the service processes simultaneously:Described in the finger daemon receives The order that Android service layers issue, and to being transmitted to the service processes after command analysis processing;It is described guard into Journey receives the message of the service processes active reporting, and is taken to being transmitted to the Android after the message dissection process Business layer.
It is described to keep as a kind of improvement of the method provided by the invention for integrating JT/T808 programs under Android platform It is communicated using the LocalSocket modes of Android platform between shield process and the Android service layers.
It is described to keep as a kind of improvement of the method provided by the invention for integrating JT/T808 programs under Android platform IPC modes may be used between shield process and the service processes to be communicated.
As a kind of improvement of the method provided by the invention for integrating JT/T808 programs under Android platform, the clothes It is communicated using the hybrid mode of inter-process messages queue and shared drive between business process and the finger daemon, wherein The message queue is used for carrying out service command between the service processes and the finger daemon and transmits, and the shared drive For carrying out the data transfer between the service processes and the finger daemon.
As a kind of improvement of the method provided by the invention for integrating JT/T808 programs under Android platform, the clothes Business process is when needing operation hardware resource but the hardware resource to be controlled by the Android service layers, directly from hard The callback interface that part level of abstraction provides is read and the relevant data of the hardware resource
The system provided by the invention that JT/T808 programs are integrated under Android platform, including including finger daemon, clothes Business process and Android service layers, wherein the service processes include portion's beacon course sequence of JT/T808 agreements;It is described guard into Journey monitors whether the service processes run always for starting the service processes in real time, the service processes always It is communicated simultaneously with the Android service layers and the service processes when in operating status, and by the service processes Including JT/T808 program datas pass to the Android service layers;Wherein, the APK file of Android platform is as institute The graphic user interface for stating service processes, is used to execute interface display and order notifies, and the content of the interface display is It is obtained from the service processes.
It is described to keep as a kind of improvement of the system provided by the invention for integrating JT/T808 programs under Android platform It is communicated using the LocalSocket modes of Android platform between shield process and the Android service layers, and it is described IPC modes may be used between finger daemon and the service processes to be communicated.
As a kind of improvement of the system provided by the invention for integrating JT/T808 programs under Android platform, the clothes It is communicated using the hybrid mode of inter-process messages queue and shared drive between business process and the finger daemon, wherein The message queue is used for carrying out service command between the service processes and the finger daemon and transmits, and the shared drive For carrying out the data transfer between the service processes and the finger daemon.
As a kind of improvement of the system provided by the invention for integrating JT/T808 programs under Android platform, the clothes Business process is additionally operable to when needing operation hardware resource but the hardware resource to be controlled by the Android service layers, directly The callback interface provided from hardware abstraction layer is connect to read and the relevant data of the hardware resource.
Compared to the prior art, the method and system provided by the invention that JT/T808 programs are integrated under Android platform Graphic user interface by the way that the APK file of Android platform to be considered as to the service processes sys_service only carries out interface Display and order notice, and the service processes sys_service itself contains portion's beacon course sequence of JT/T808 agreements, therefore Can not have to the original framework for changing the service processes sys_service substantially, so as to simply and easily realize by The JT/T808 program portables of Linux environment exploitation are to Android platform.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing, wherein:
Fig. 1 is method a kind of stream of embodiment provided by the invention that JT/T808 programs are integrated under Android platform Journey schematic diagram;
Fig. 2 is the schematic diagram of the system provided by the invention that JT/T808 programs are integrated under Android platform.
Specific implementation mode
In order to make the technical problems, technical solutions and beneficial effects solved by the present invention be more clearly understood, below in conjunction with Accompanying drawings and embodiments, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
The method provided by the invention that JT/T808 programs are integrated under Android platform is mainly by Android platform Figure of Android installation kits (Android Package, the APK) file as Linux underlying services processes sys_service User interface (Graphical User Interface, GUI) is only intended to execute interface display and order notifies, and The content being particularly shown is to be obtained from the service processes sys_service, and the service processes sys_service itself is wrapped Portion's beacon course sequence of JT/T808 agreements is contained;Method provided by the invention does not just have to change the service processes sys_ substantially as a result, Original framework of service arrives the JT/T808 program portables that Linux environment is developed so as to simply and easily realize Android platform.
Referring to Fig. 1, it is the method a kind of reality provided by the invention for integrating JT/T808 programs under Android platform Apply the flow diagram of mode.The method that JT/T808 programs are integrated under Android platform includes:
Step S1, Linux bottom runs finger daemon sys_daemon, and the finger daemon sys_daemon starts clothes Business process sys_service;
Whether always step S2, the finger daemon sys_daemon monitor the service processes sys_service in real time Operation;It is described to keep if the finger daemon sys_daemon monitors that the service processes sys_service is out of service Shield process sys_daemo restarts the service processes sys_service, so that it is guaranteed that the service processes sys_ Service is constantly in operating status;If the service processes sys_service is constantly in operating status, turn To step S3.
Step S3, the finger daemon sys_daemon simultaneously with Android service layers and the service processes sys_ Service is communicated, and the service processes sys_service JT/T808 program datas for including is supplied to described Android service layers;
In a particular embodiment, on the one hand the finger daemon sys_daemon can receive the Android service layers The order issued, and to being transmitted to the service processes sys_service after command analysis processing, wherein the order May include calling the order for executing JT/T808 programs.On the other hand, the finger daemon sys_daemon can also receive institute The message of service processes sys_service active reportings is stated, and to being transmitted to the Android after the message dissection process Service layer, wherein the message that the messenger service process sys_service is reported can carry JT/T808 program datas.
In step s3, it may be used between the finger daemon sys_daemon and the Android service layers The LocalSocket modes of Android platform are communicated, and the finger daemon sys_daemon and the service processes May be used between sys_service linux system standard Inter-Process Communication (Inter-Process Communication, IPC) mode is communicated.
Specifically, can include portion's beacon course sequence of JT/T808 agreements inside the service processes sys_service, and In using inter-process messages queue between the service processes sys_service and the finger daemon sys_daemon and sharing The hybrid mode deposited is communicated, wherein the message queue is used for carrying out the service processes sys_service keeping with described Service command is transmitted between shield process sys_daemon, and the shared drive is used for carrying out the service processes sys_ Data transfer between service and the finger daemon sys_daemon includes the transmission of the JT/T808 program datas.
In specific implementation, the Android service layers and the service processes sys_service be simultaneously in order to prevent Hardware resource is operated, the method that JT/T808 programs are integrated under Android platform provided by the invention can also include with Lower step:
When the service processes sys_service needs to operate hardware resource, whether the Android service layers are judged The hardware resource is controlled, if so, the service processes sys_service is from hardware abstraction layer (Hardware Abstraction Layer, HAL) provide callback interface obtain with the relevant data of the hardware resource.
For example, when the service processes sys_service needs to read positioning system (Global Positioning Sytem, GPS) module NMEA data when, can first determine whether the Android service layers have operated the GPS Module, the judgement operation can initiatively be executed by programmer;If so, in view of the exclusivity of hardware resource, to prevent The service processes sys_service and the Android service layers clash, and the service processes sys_service is not The file node of the GPS module can be directly operated, in the present embodiment, since the Android service layers have carried To the read operation of the GPS module, therefore the service processes sys_service only needs to provide from the hardware abstraction layer Callback interface read the NMEA data.
If hardware conflicts, such as institute are not present when the service processes sys_service needs to operate hardware resource When stating service processes sys_service and needing printer operation hardware, since printer is not controlled by Android service layers, The finger daemon sys_daemon can notify the service processes sys_service directly to operate the printer at this time File node.
Compared to the prior art, the method provided by the invention that JT/T808 programs are integrated under Android platform pass through by The APK file of Android platform be considered as the service processes sys_service graphic user interface only carry out interface display and Order notice, and the service processes sys_service itself contains portion's beacon course sequence of JT/T808 agreements, therefore can be with base This does not have to the original framework for changing the service processes sys_service, so as to simply and easily realize Linux environment The JT/T808 program portables of exploitation are to Android platform.
Based on the above-mentioned method for integrating JT/T808 programs under Android platform, the present invention furthermore provides one kind and exists The system that JT/T808 programs are integrated under Android platform, referring to Fig. 2, it is provided by the invention under Android platform A kind of schematic diagram of embodiment of system of integrated JT/T808 programs, it is described that JT/T808 programs are integrated under Android platform System includes finger daemon 210, service processes 220 and Android service layers 230, wherein the service processes 220 include Portion's beacon course sequence of JT/T808 agreements.
Whether the finger daemon 210 monitors the service processes 220 in real time for starting the service processes 220 Run always, and when the service processes 220 are constantly in operating status simultaneously with the Android service layers 230 and The service processes 220 are communicated, and the JT/T808 program datas that the service processes 220 include are passed to described Android service layers 230, and the service processes 220 are restarted when the service processes 220 are out of service to ensure It states service processes 220 and is constantly in operating status.
Specifically, 210 one side of the finger daemon can be used for receiving the life that the Android service layers 230 issue It enables, and to being transmitted to the service processes 220 after command analysis processing;On the other hand, the finger daemon 210 may be used also For receiving the message of 220 active reporting of service processes, the message can carry JT/T808 program datas, and To being transmitted to the Android service layers 230 after the message dissection process.
In the system provided in this embodiment for integrating JT/T808 programs under Android platform, the finger daemon The LocalSocket modes that Android platform may be used between 210 and the Android service layers 230 are communicated, and The IPC modes that Linux platform standard may be used between the finger daemon 210 and the service processes 220 are communicated.Tool The mixed of inter-process messages queues and shared drive may be used in body between the service processes 220 and the finger daemon 210 Conjunction mode is communicated, wherein the message queue is used for carrying out between the service processes 220 and the finger daemon 210 Service command is transmitted, and the shared drive is used for carrying out the data between the service processes 220 and the finger daemon 210 It transmits
On the other hand, in a particular embodiment, the service processes 220 are additionally operable to when needing to operate hardware resource 240, Judge whether the Android service layers 230 have controlled the hardware resource 240, if so, directly being carried from hardware abstraction layer The callback interface of confession reads the related data of the hardware resource 240.
Example the above is only the implementation of the present invention is not intended to limit the scope of the invention, every to utilize this hair Equivalent structure or equivalent flow shift made by bright description is applied directly or indirectly in other relevant technology necks Domain is included within the scope of the present invention.

Claims (8)

1. a kind of method integrating JT/T808 programs under Android platform, which is characterized in that including:
Linux bottoms run finger daemon, and the finger daemon starts service processes, wherein the service processes include JT/ Portion's beacon course sequence of T808 agreements;
The finger daemon monitors whether the service processes run always in real time, if the service processes are out of service, The finger daemon restarts the service processes;
If the service processes are constantly in operating status, the finger daemon simultaneously with Android service layers and the clothes Business process is communicated, and the JT/T808 program datas that the service processes include are passed to the Android service layers; And the service processes need to operate hardware resource but the hardware resource controlled by the Android service layers when, The callback interface directly provided from hardware abstraction layer is read and the relevant data of the hardware resource;
Wherein, it is aobvious to be used to execute interface for graphic user interface of the APK file of Android platform as the service processes Show and order notice, and the content of the interface display is obtained from the service processes.
2. according to the method described in claim 1, it is characterized in that, the finger daemon simultaneously with Android service layers and institute It states service processes and communicate and include:
The finger daemon receives the order that the Android service layers issue, and to being forwarded after command analysis processing To the service processes;
The finger daemon receives the message of the service processes active reporting, and to being transmitted to after the message dissection process The Android service layers.
3. according to the method described in claim 2, it is characterized in that, between the finger daemon and the Android service layers It is communicated using the LocalSocket modes of Android platform.
4. according to the method described in claim 1, it is characterized in that, can be adopted between the finger daemon and the service processes It is communicated with IPC modes.
5. according to the method described in claim 4, it is characterized in that, between the service processes and the finger daemon using into The hybrid mode of message queue and shared drive is communicated between journey, wherein the message queue be used for carry out it is described service into Service command is transmitted between journey and the finger daemon, and the shared drive is used for carrying out the service processes guarding with described Data transfer between process.
6. a kind of system integrating JT/T808 programs under Android platform, which is characterized in that including finger daemon, service into Journey and Android service layers, wherein the service processes include portion's beacon course sequence of JT/T808 agreements;The finger daemon is used It in the startup service processes, and monitors whether the service processes run always in real time, is constantly in the service processes It is communicated simultaneously with the Android service layers and the service processes when operating status, and includes by the service processes JT/T808 program datas pass to the Android service layers;The service processes are additionally operable to needing to operate hardware resource But when the hardware resource is controlled by the Android service layers, the callback interface directly provided from hardware abstraction layer is read It takes and the relevant data of the hardware resource;Wherein, the APK file of Android platform is used as the figure of the service processes Family interface, is used to execute interface display and order notifies, and the content of the interface display is obtained from the service processes 's.
7. system according to claim 6, which is characterized in that between the finger daemon and the Android service layers It is communicated using the LocalSocket modes of Android platform, and can be between the finger daemon and the service processes It is communicated using IPC modes.
8. system according to claim 7, which is characterized in that between the service processes and the finger daemon using into The hybrid mode of message queue and shared drive is communicated between journey, wherein the message queue be used for carry out it is described service into Service command is transmitted between journey and the finger daemon, and the shared drive is used for carrying out the service processes guarding with described Data transfer between process.
CN201510496322.4A 2015-08-13 2015-08-13 A kind of method and system integrating JT/T808 programs under Android platform Active CN105183455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510496322.4A CN105183455B (en) 2015-08-13 2015-08-13 A kind of method and system integrating JT/T808 programs under Android platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510496322.4A CN105183455B (en) 2015-08-13 2015-08-13 A kind of method and system integrating JT/T808 programs under Android platform

Publications (2)

Publication Number Publication Date
CN105183455A CN105183455A (en) 2015-12-23
CN105183455B true CN105183455B (en) 2018-09-21

Family

ID=54905554

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510496322.4A Active CN105183455B (en) 2015-08-13 2015-08-13 A kind of method and system integrating JT/T808 programs under Android platform

Country Status (1)

Country Link
CN (1) CN105183455B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110213289B (en) * 2019-06-14 2021-08-27 吉旗(成都)科技有限公司 Method for rapidly troubleshooting JT/T809 protocol message problem
CN111176935B (en) * 2019-12-17 2022-02-01 宁波市轨道交通集团有限公司建设分公司 Application-oriented service monitoring method of integrated monitoring system
CN111400081A (en) * 2020-03-24 2020-07-10 恒生电子股份有限公司 Process guarding method and device, electronic equipment and computer storage medium
CN112748907B (en) * 2020-12-04 2023-01-13 中国航空工业集团公司成都飞机设计研究所 C/S mode general measurement and control software architecture based on hardware resources and design method
CN113840271B (en) * 2021-09-27 2024-04-19 北京字节跳动网络技术有限公司 NFC data transmission method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123196A (en) * 2010-12-29 2011-07-13 浙大网新科技股份有限公司 Method for realizing WinCE/Android mixed API (Application Programming Interface) on Android cell phone
CN102331927A (en) * 2011-06-24 2012-01-25 浙大网新科技股份有限公司 Method for integrating soft keyboard input of Wine and Android mobile phone
CN102364436A (en) * 2011-06-24 2012-02-29 浙大网新科技股份有限公司 Method and system for realizing debugging of WinCE/Android mixed application program interface (API)
CN103488478A (en) * 2013-09-03 2014-01-01 厦门雅迅网络股份有限公司 Device management framework based on android platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060031571A1 (en) * 2004-04-29 2006-02-09 International Business Machines Corporation Data communications through a split connection proxy

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123196A (en) * 2010-12-29 2011-07-13 浙大网新科技股份有限公司 Method for realizing WinCE/Android mixed API (Application Programming Interface) on Android cell phone
CN102331927A (en) * 2011-06-24 2012-01-25 浙大网新科技股份有限公司 Method for integrating soft keyboard input of Wine and Android mobile phone
CN102364436A (en) * 2011-06-24 2012-02-29 浙大网新科技股份有限公司 Method and system for realizing debugging of WinCE/Android mixed application program interface (API)
CN103488478A (en) * 2013-09-03 2014-01-01 厦门雅迅网络股份有限公司 Device management framework based on android platform

Also Published As

Publication number Publication date
CN105183455A (en) 2015-12-23

Similar Documents

Publication Publication Date Title
CN105183455B (en) A kind of method and system integrating JT/T808 programs under Android platform
KR102234427B1 (en) Code execution on demand in localized device coordinators
CN102841810B (en) Method and system for executing threads in a computing environment
EP3455728B1 (en) Orchestrator for a virtual network platform as a service (vnpaas)
JP2017112607A (en) Dynamically defined virtual private network tunnel in hybrid cloud environments
US20120309440A1 (en) Methods and Systems for a Generic Multi-Radio Access Technology
US20220121470A1 (en) Optimizing deployment and security of microservices
Ghezzi et al. Programming language support to context-aware adaptation: a case-study with Erlang
KR20220130664A (en) Reconfigurable wireless systems including wireless interface engines and wireless virtual machines
US20230133020A1 (en) Accelerator or accelerated functions as a service using networked processing units
Sarrigiannis et al. Fog-enabled scalable C-V2X architecture for distributed 5G and beyond applications
EP3910505B1 (en) Data processing method and device
EP3839734A1 (en) Integration of an orchestration services with a cloud automation services
US10884788B2 (en) On-demand code execution with limited memory footprint
CN113691453A (en) Network management method, device, equipment and storage medium
US20200304422A1 (en) Management of services in an edge computing system
WO2023038994A1 (en) Systems, apparatus, and methods to improve webservers using dynamic load balancers
CN105827467B (en) A kind of registration center's upgrade method, relevant device and system
CN114710454A (en) Message processing method, vehicle-mounted communication device, electronic equipment and storage medium
Gu et al. SWICOM: An SDR-based wireless communication gateway for vehicles
US11151022B1 (en) Testing of executable code for local device coordinator
EP2719249B1 (en) Generic multi-radio access technology
CN113037747A (en) Method and system for realizing open sharing ecology of system capacity of construction area
Benedetti et al. Open-Source Serverless for Edge Computing: A Tutorial
Bellavista et al. Quality-of-service in data center stream processing for smart city applications

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220919

Address after: 518051 Room 1001, Block A, Building 6, Shenzhen International Innovation Valley, Dashi Road, Xili Community, Xili Street, Nanshan District, Shenzhen, Guangdong, China

Patentee after: SHENZHEN GUANGHETONG WIRELESS COMMUNICATION SOFTWARE CO.,LTD.

Address before: 518052 No. 501A, Building A, Phase II, Science and Technology Building, No. 1057, Nanhai Avenue, Nanshan District, Shenzhen, Guangdong, China

Patentee before: FIBOCOM WIRELESS Inc.