CN107122250A - Based on the multi-platform notification message acquisition methods of ANCS protocol-compliants - Google Patents
Based on the multi-platform notification message acquisition methods of ANCS protocol-compliants Download PDFInfo
- Publication number
- CN107122250A CN107122250A CN201710176572.9A CN201710176572A CN107122250A CN 107122250 A CN107122250 A CN 107122250A CN 201710176572 A CN201710176572 A CN 201710176572A CN 107122250 A CN107122250 A CN 107122250A
- Authority
- CN
- China
- Prior art keywords
- android
- notification message
- ancillary equipment
- ancs
- ios
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/541—Interprogram communication via adapters, e.g. between incompatible applications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Abstract
The invention discloses a kind of notification message acquisition methods multi-platform based on ANCS protocol-compliants, including:Android ancillary equipment is broadcasted;Android ancillary equipment is set up with iOS device and is connected to read the notification message of iOS device, and it includes:IOS device is actively connected after Android ancillary equipment, and Android ancillary equipment Opposite direction connection iOS devices are to read the notification message of the ANCS forms of iOS device;Android ancillary equipment is set up with Android device and is connected to read the notification message of Android device, and it includes:Android device is actively connected after Android ancillary equipment, the notification message of Android device is converted into ANCS forms, then the notification message of ANCS forms is sent to Android ancillary equipment.Using the present invention, the notification message of iOS device and Android device can be obtained by ANCS agreements, flexibility, adaptability are stronger.
Description
Technical field
Obtained the present invention relates to communication technical field, more particularly to a kind of notification message multi-platform based on ANCS protocol-compliants
Take method.
Background technology
IOS is the Mobile operating system developed by Apple Inc., and the notification message of iOS device can only pass through Apple
Notification Center Service (ANCS)Obtain.
Android is half open source operating system based on Linux, and the notification message of Android device is then only
It can be obtained by NotificationListenerService.
Therefore, the notification message of iOS device and Android device can not share a set of acquisition methods so that can not pass through
ANCS agreements obtain the notification message of Android equipment, and iOS device can not scan most Bluetooth
Low Energy(BLE, low-power consumption bluetooth technology)Ancillary equipment.
The content of the invention
The technical problems to be solved by the invention are that there is provided a kind of notification message multi-platform based on ANCS protocol-compliants
Acquisition methods, can make the notification message of iOS device and Android device share a set of acquisition methods, flexibility, adaptability are more
By force.
In order to solve the above-mentioned technical problem, the invention provides a kind of notification message multi-platform based on ANCS protocol-compliants
Acquisition methods, including:
Android ancillary equipment is broadcasted;
The Android ancillary equipment is set up with iOS device and is connected to read the notification message of iOS device, wherein, it is described
Android ancillary equipment is set up to be connected with iOS device to be included in the method for the notification message for reading iOS device:IOS device is actively
Connect after Android ancillary equipment, Android ancillary equipment Opposite direction connection iOS devices are to read the ANCS forms of iOS device
Notification message;
The Android ancillary equipment is set up with Android device and is connected to read the notification message of Android device, wherein,
The Android ancillary equipment sets up the method bag for being connected the notification message to read Android device with Android device
Include:Android device is actively connected after Android ancillary equipment, and the notification message of Android device is converted into ANCS lattice
Formula, then the notification message of ANCS forms is sent to Android ancillary equipment.
As the improvement of such scheme, the Android ancillary equipment is set up with iOS device and is connected to read iOS device
The method of notification message include:The iOS device actively connects Android ancillary equipment;The Android ancillary equipment is anti-
To connection iOS device;The Android ancillary equipment waits iOS equipment to receive new notification message;The Android peripheries
Equipment reads the notification message of the ANCS forms of iOS device.
As the improvement of such scheme, the Android ancillary equipment is set up with Android device and is connected to read
The method of the notification message of Android device includes:The Android device actively connects Android ancillary equipment;It is described
Android device waits new notification message;The Android device is read by NotificationListenerService
New notification message is taken to obtain the notification message of the primary Notification forms of Android;The Android device
The notification message of Notification forms primary Android is converted to the notification message of ANCS forms;The Android
Equipment sends the notification message of ANCS forms to Android ancillary equipment.
As the improvement of such scheme, the notification message conversion of the Notification forms that Android is primary
Method for the notification message of ANCS forms includes:The Android device is by Notification forms primary Android
Notification message be converted to binary data;Binary data is encapsulated as ANCS by the Android device according to ANCS agreements
The notification message of form.
As the improvement of such scheme, the Android ancillary equipment is the Android peripheries with BLE broadcast capabilitys
Equipment.
Implement the present invention, have the advantages that:
By the present invention based on the multi-platform notification message acquisition methods of ANCS protocol-compliants, when connecting different equipment,
The notification message of corresponding device can be obtained by ANCS agreements.Wherein, Android peripheries can have both been made by connection reversal
Equipment effectively reads the notification message of iOS device by ANCS agreements, can also set by format conversion techniques Android peripheries
It is standby that the notification message of Android device is effectively read by ANCS agreements, so that effectively overcome " can not lead in the prior art
Cross ANCS agreements obtain Android equipment notification message " defect, flexibility, adaptability are stronger.
Brief description of the drawings
Fig. 1 is the first embodiment flow of the invention based on the multi-platform notification message acquisition methods of ANCS protocol-compliants
Figure;
Fig. 2 is the second embodiment flow chart of the invention based on the multi-platform notification message acquisition methods of ANCS protocol-compliants.
Embodiment
To make the object, technical solutions and advantages of the present invention clearer, the present invention is made into one below in conjunction with accompanying drawing
It is described in detail on step ground.Only this is stated, the side such as the up, down, left, right, before and after of the invention that occurs in the text or will appear from, inside and outside
Position word, only on the basis of the accompanying drawing of the present invention, it is not the specific restriction to the present invention.
In the prior art, the notification message of iOS device can only pass through Apple Notification Center Service
(ANCS)Obtain.The notification message of Android device can only then be obtained by NotificationListenerService.Cause
This, the notification message of iOS device and Android device can not share a set of acquisition methods(It can not be obtained by ANCS agreements
The notification message of Android equipment, iOS device can not scan most BLE peripheral).
The present invention is based on above mentioned problem, it is proposed that a kind of notification message acquisition side multi-platform based on ANCS protocol-compliants
Method, when the different equipment of connection(IOS device or Android device)When, the logical of corresponding device can be obtained by ANCS agreements
Know message(Such as, when connecting Android device, the notification message of Android device can be obtained by ANCS agreements), specifically
Ground:
When obtaining notification message, Android ancillary equipment is broadcasted, wherein, the Android ancillary equipment is with BLE
The Android ancillary equipment of broadcast capability, in addition, the iOS device occurred in text can set for the iOS without broadcast capability
Standby, Android device can be the Android device without broadcast capability.
If Android ancillary equipment needs to obtain the notification message of iOS device, the Android ancillary equipment and iOS
Equipment sets up connection to read the notification message of iOS device.Wherein, the Android ancillary equipment is set up with iOS device and is connected
Include in the method for the notification message for reading iOS device:IOS device is actively connected after Android ancillary equipment, outside Android
Peripheral equipment can obtain the parameter information of iOS device, parameter information Opposite direction connection iOS of the Android ancillary equipment further according to acquisition
Equipment is to read the notification message of the ANCS forms of iOS device.
If Android ancillary equipment needs to obtain the notification message of Android device, the Android ancillary equipment
Set up and be connected to read the notification message of Android device with Android device.Wherein, the Android ancillary equipment with
Android device sets up connection to be included in the method for the notification message for reading Android device:Android device is actively connected
After Android ancillary equipment, the notification message of Android device is converted into ANCS forms, then the notice of ANCS forms is disappeared
Breath is sent to Android ancillary equipment.
Referring to Fig. 1, Fig. 1 shows first of the present invention based on the multi-platform notification message acquisition methods of ANCS protocol-compliants
Embodiment.
The Android ancillary equipment sets up the method bag for being connected the notification message to read iOS device with iOS device
Include:
S101, Android ancillary equipment are broadcasted;
S102, iOS device actively connects Android ancillary equipment;
After iOS device connection Android ancillary equipment successes, into step S103.
S103, Android ancillary equipment Opposite direction connection iOS device;
After the success of Android ancillary equipment Opposite direction connections iOS device, into step S104.
Explanation is needed, iOS device is actively connected after Android ancillary equipment, and Android ancillary equipment can be obtained effectively
The parameter information of iOS device, so that Android ancillary equipment can connect iOS device according to the parameter information of iOS device,
Realize the Opposite direction connection between Android ancillary equipment and iOS device.
S104, Android ancillary equipment wait iOS device to receive new notification message;
S105, Android ancillary equipment read the notification message of the ANCS forms of iOS device.
Therefore, by way of above-mentioned Opposite direction connection, Android ancillary equipment can be made effectively to be read by ANCS agreements
The notification message of iOS device, overcome " can not be disappeared by the notice of ANCS agreements acquisition Android equipment in the prior art
The defect of breath ".
Referring to Fig. 2, Fig. 2 shows second of the present invention based on the multi-platform notification message acquisition methods of ANCS protocol-compliants
Embodiment.
The Android ancillary equipment and Android device, which are set up, to be connected to read the notification message of Android device
Method includes:
S201, Android ancillary equipment are broadcasted;
S202, Android device actively connects Android ancillary equipment;
After Android device actively connects the success of Android ancillary equipment, into step S203.
S203, Android device waits new notification message;
S204, Android device reads new notification message to obtain by NotificationListenerService
The notification message of Notification forms primary Android;
The notification message of Notification forms primary Android is converted to ANCS forms by S205, Android device
Notification message;
Specifically, the notification message of the Notification forms that Android is primary is converted to the notice of ANCS forms
The method of message includes:
The notification message of Notification forms primary Android is converted to binary data by the Android device;
Binary data is encapsulated as the notification message of ANCS forms according to ANCS agreements by the Android device.
S206, Android device sends the notification message of ANCS forms to Android ancillary equipment.
Therefore, by the above-mentioned means, the notification message of Notification forms primary Android can be converted to
The notification message of ANCS forms, so that Android ancillary equipment effectively reads the notice of Android device by ANCS agreements
Message, overcomes the defect of " notification message that Android equipment can not be obtained by ANCS agreements " in the prior art.
From the foregoing, it will be observed that by the present invention based on the multi-platform notification message acquisition methods of ANCS protocol-compliants, when connection not
With equipment when, both Android ancillary equipment can be made effectively to read iOS device by ANCS agreements by connection reversal
Notification message, also can make Android ancillary equipment effectively read Android device by ANCS agreements by format conversion techniques
Notification message so that effectively overcome in the prior art " can not by ANCS agreements obtain Android equipment notice
The defect of message ".
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (5)
1. a kind of notification message acquisition methods multi-platform based on ANCS protocol-compliants, it is characterised in that including:
Android ancillary equipment is broadcasted;
The Android ancillary equipment is set up with iOS device and is connected to read the notification message of iOS device, wherein, it is described
Android ancillary equipment is set up to be connected with iOS device to be included in the method for the notification message for reading iOS device:IOS device is actively
Connect after Android ancillary equipment, Android ancillary equipment Opposite direction connection iOS devices are to read the ANCS forms of iOS device
Notification message;
The Android ancillary equipment is set up with Android device and is connected to read the notification message of Android device, wherein,
The Android ancillary equipment sets up the method bag for being connected the notification message to read Android device with Android device
Include:Android device is actively connected after Android ancillary equipment, and the notification message of Android device is converted into ANCS lattice
Formula, then the notification message of ANCS forms is sent to Android ancillary equipment.
2. as claimed in claim 1 based on the multi-platform notification message acquisition methods of ANCS protocol-compliants, it is characterised in that institute
Stating Android ancillary equipment and setting up to be connected with iOS device includes in the method for the notification message for reading iOS device:
The iOS device actively connects Android ancillary equipment;
The Android ancillary equipment Opposite direction connection iOS device;
The Android ancillary equipment waits iOS equipment to receive new notification message;
The Android ancillary equipment reads the notification message of the ANCS forms of iOS device.
3. as claimed in claim 1 based on the multi-platform notification message acquisition methods of ANCS protocol-compliants, it is characterised in that institute
Stating Android ancillary equipment and setting up to be connected with Android device includes in the method for the notification message for reading Android device:
The Android device actively connects Android ancillary equipment;
The Android device waits new notification message;
The Android device reads new notification message to obtain by NotificationListenerService
The notification message of Notification forms primary Android;
The notification message of Notification forms primary Android is converted to ANCS lattice by the Android device
The notification message of formula;
The Android device sends the notification message of ANCS forms to Android ancillary equipment.
4. as claimed in claim 3 based on the multi-platform notification message acquisition methods of ANCS protocol-compliants, it is characterised in that institute
The method for stating the notification message that the notification message of Notification forms primary Android is converted to ANCS forms
Including:
The notification message of Notification forms primary Android is converted to binary system by the Android device
Data;
Binary data is encapsulated as the notification message of ANCS forms according to ANCS agreements by the Android device.
5. the notification message acquisition methods multi-platform based on ANCS protocol-compliants as described in any one of claim 1 ~ 4, it is special
Levy and be, the Android ancillary equipment is the Android ancillary equipment with BLE broadcast capabilitys.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710176572.9A CN107122250A (en) | 2017-03-23 | 2017-03-23 | Based on the multi-platform notification message acquisition methods of ANCS protocol-compliants |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710176572.9A CN107122250A (en) | 2017-03-23 | 2017-03-23 | Based on the multi-platform notification message acquisition methods of ANCS protocol-compliants |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107122250A true CN107122250A (en) | 2017-09-01 |
Family
ID=59718096
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710176572.9A Pending CN107122250A (en) | 2017-03-23 | 2017-03-23 | Based on the multi-platform notification message acquisition methods of ANCS protocol-compliants |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107122250A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166637A (en) * | 2014-08-18 | 2014-11-26 | 北京君正集成电路股份有限公司 | Information receiving and sending method, terminal and system |
CN104794083A (en) * | 2015-01-04 | 2015-07-22 | 北京君正集成电路股份有限公司 | Method and system for transmitting data between Android equipment and acquiring messages of smart watches |
CN105530277A (en) * | 2014-09-30 | 2016-04-27 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for cooperative work of devices |
-
2017
- 2017-03-23 CN CN201710176572.9A patent/CN107122250A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104166637A (en) * | 2014-08-18 | 2014-11-26 | 北京君正集成电路股份有限公司 | Information receiving and sending method, terminal and system |
CN105530277A (en) * | 2014-09-30 | 2016-04-27 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for cooperative work of devices |
CN104794083A (en) * | 2015-01-04 | 2015-07-22 | 北京君正集成电路股份有限公司 | Method and system for transmitting data between Android equipment and acquiring messages of smart watches |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11165632B2 (en) | Method for performing re-establishing RRC connection procedure and device supporting the same | |
JP6587001B2 (en) | Wireless terminal and method thereof | |
US20210105451A1 (en) | Scene construction using object-based immersive media | |
CN110073685A (en) | System information is provided and obtained for remote wireless terminal | |
US20190394823A1 (en) | Method for managing wireless backhaul link by relay node in wirless communication system and apparatus therefor | |
CN109923897B (en) | Method and apparatus for providing quality of service in next generation radio | |
EP2941043A1 (en) | Method, device, and system for multi-standard network convergence | |
WO2018053692A1 (en) | Data transmission method, device and system | |
US20210377930A1 (en) | Data transmission method and apparatus | |
CN103907394A (en) | Small data techniques and configurations in a wireless communication network | |
US20130343185A1 (en) | Wireless device and method of short mac frame indication | |
CN110636544B (en) | Data transmission method and device | |
EP3783927A1 (en) | Paging message transmission method and device | |
US9813958B2 (en) | Method and apparatus for packet tunneling | |
US20220201647A1 (en) | Method and apparatus for combining mo edt procedure with mt edt procedure in a wireless communication system | |
KR20100127838A (en) | Method and device for tunnelling of unicast and broadcast messages | |
EP4057766A1 (en) | Method and device for controlling configuration related to sidelink communication in wireless communication system | |
US20230413232A1 (en) | Method and apparatus for group paging in a wireless communication system | |
CN107122250A (en) | Based on the multi-platform notification message acquisition methods of ANCS protocol-compliants | |
CN108617000B (en) | Information transmission method and device | |
US20190350034A1 (en) | Method for performing early data transmission (edt) procedure and device supporting the same | |
ES2925023T3 (en) | Communication apparatus and communication procedure | |
WO2017113390A1 (en) | Data transmission method and device | |
CN108141484A (en) | Device and method | |
KR101855317B1 (en) | IoT GATEWAY DEVICE AND CONTROL METHOD THEREOF |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for 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: 20170901 |