CN109005529B - Method for accurately positioning Bluetooth pairing fault by iOS application and communication device - Google Patents

Method for accurately positioning Bluetooth pairing fault by iOS application and communication device Download PDF

Info

Publication number
CN109005529B
CN109005529B CN201810866405.1A CN201810866405A CN109005529B CN 109005529 B CN109005529 B CN 109005529B CN 201810866405 A CN201810866405 A CN 201810866405A CN 109005529 B CN109005529 B CN 109005529B
Authority
CN
China
Prior art keywords
information
module
ios system
return
returned
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
CN201810866405.1A
Other languages
Chinese (zh)
Other versions
CN109005529A (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.)
Feitian Technologies Co Ltd
Original Assignee
Feitian Technologies Co Ltd
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 Feitian Technologies Co Ltd filed Critical Feitian Technologies Co Ltd
Priority to CN201810866405.1A priority Critical patent/CN109005529B/en
Publication of CN109005529A publication Critical patent/CN109005529A/en
Application granted granted Critical
Publication of CN109005529B publication Critical patent/CN109005529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure

Abstract

The invention relates to the field of communication, in particular to a method and a communication device for accurately positioning Bluetooth pairing faults by iOS application; the method comprises the following steps: when the communication device is called by the upper application, the communication device records that the current time is the first time, calls a first interface of the iOS system, judges whether the pairing is successful according to the returned information of the iOS system, and returns the successful pairing information to the upper application if the pairing is successful; otherwise, the communication device judges the pairing failure type according to the return information of the iOS system, and if the pairing failure type is the user cancelling operation, the communication device returns the user cancelling operation information to the upper layer application; if the pairing failure type is a second failure type error, the communication device records the current time as a second time, judges whether the difference value between the second time and the first time is greater than a preset time length, and returns overtime error information to the upper-layer application if the difference value is greater than the preset time length; otherwise, long key error information is returned to the upper layer application.

Description

Method for accurately positioning Bluetooth pairing fault by iOS application and communication device
Technical Field
The invention relates to the field of communication, in particular to a method and a communication device for accurately positioning Bluetooth pairing faults by iOS application.
Background
Bluetooth is a wireless technical standard, and can realize short-distance data exchange among fixed equipment, mobile equipment and a building personal area network; in order to ensure the security and convenience of bluetooth communication, the bluetooth standard specifies that the first communication authentication between a bluetooth device and a device to be connected, i.e. a bluetooth pairing process, can be completed in a pairing manner. In the bluetooth pairing process, the bluetooth pairing generally means that the bluetooth device initiates a pairing request to the device to be connected, waits for a user to input a pin code and judges whether the pin code input by the user is correct or whether the user confirms the pairing request on the device to be connected to complete the pairing process, and then performs subsequent normal communication.
However, in the development of the communication apparatus of the iOS system, since the iOS system is not open source, the development of bluetooth 4.0 can use only the bluetooth framework provided by the iOS system. When a bluetooth framework is used for interacting with a device to be connected (such as a bluetooth mouse, a bluetooth intelligent key device and the like), pairing operations of all bluetooth devices are realized by the bottom layer encapsulation of the iOS system, and the upper layer application cannot know the pairing state of the iOS system and the bluetooth device, so that blindly sending data can conflict with a pairing frame popped up by the iOS system, and the device to be connected cannot be used; even if the bluetooth device has been disconnected from the iOS system, it is not known whether or not the connection has been disconnected and the reason for the disconnection cannot be distinguished.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a communication device for accurately positioning a Bluetooth pairing fault by using an iOS (internet operating system).
The invention provides a method for accurately positioning Bluetooth pairing faults by iOS application, which comprises the following steps:
step S0: the communication apparatus waits for being called by an upper application, and when the communication apparatus is called by the upper application, performs step S1;
step S1: the communication device records the current time as a first time; calling a first interface of the iOS system, judging whether the pairing is successful according to the returned information of the iOS system, and if so, returning pairing success information to the upper layer application; otherwise, executing step S2;
step S2: the communication device judges a pairing failure type according to the return information of the iOS system, and if the pairing failure type is a user cancelling operation, returns user cancelling operation information to the upper layer application; if the pairing failure type is a second failure type error, executing step S3;
step S3: the communication device records the current time as a second time, judges whether the difference value between the second time and the first time is greater than a preset time length, and returns an overtime error message to the upper layer application if the difference value is greater than the preset time length; otherwise, returning the long key error information to the upper layer application.
The invention also provides a communication device, which comprises a first recording module, a second calling module, a first judging module, a second recording module, a third judging module, a first returning module, a second returning module, a third returning module and a fourth returning module;
the first recording module is used for recording the current time as a first time when the communication device is called by the upper layer application;
the second calling module is used for calling the first interface of the iOS system when the communication device is called by the upper application;
the first judging module is used for judging whether the pairing is successful according to the returned information of the iOS system after the second calling module calls the first interface of the iOS system;
the first returning module is used for returning pairing success information to the upper layer application when the first judging module judges that the pairing success information is positive;
the second judging module is used for judging the pairing failure type according to the returned information of the iOS system when the first judging module judges that the pairing failure type is not the first judging module;
the second returning module is configured to return user cancelling operation information to the upper layer application when the second determining module determines that the pairing failure type is a user cancelling operation;
the error reporting module is used for reporting an error when the second judging module judges that the second judging module is negative, and ending;
the second recording module is configured to record the current time as a second time when the second determining module determines that the pairing failure type is a second failure type error;
the third judging module is configured to judge whether a difference between the second time recorded by the second recording module and the first time recorded by the first recording module is greater than a preset duration;
the third returning module is configured to return an overtime error message to the upper application when the third determining module determines that the;
and the fourth returning module is configured to return long key error information to the upper layer application when the third determining module determines that the second determination module does not determine the second determination module.
Compared with the prior art, the invention has the following advantages: the method and the communication device for accurately positioning the Bluetooth pairing fault by the iOS solve the problem that the upper layer application cannot acquire the Bluetooth pairing state from the iOS system, accurately determine whether the Bluetooth pairing fault is caused by user cancel operation, overtime or long key error, and return the determination result to the upper layer application so that the upper layer application can perform correct subsequent processing.
Drawings
Fig. 1 is a flowchart of a method for an iOS application to accurately locate a bluetooth pairing fault according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for accurately locating a bluetooth pairing fault by an iOS application according to a second embodiment of the present invention;
fig. 3 is a flowchart of a method for accurately locating a bluetooth pairing fault by an iOS application according to a third embodiment of the present invention;
fig. 4 is a block diagram of a communication device according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
An embodiment of the present invention provides a method for accurately positioning a bluetooth pairing fault by an iOS application, as shown in fig. 1, including the following steps:
step 100: the communication device waits to be called by the upper layer application, and when the communication device is called by the upper layer application, step 101 is executed;
step 101: the communication device records the current time as a first time; calling a first interface of the iOS system, judging whether the pairing is successful according to the returned information of the iOS system, and if so, returning pairing success information to the upper layer application; otherwise, executing step 102;
optionally, in this embodiment, step 101 specifically includes: the communication device records the current time as a first time; calling the iOS system to read the Bluetooth characteristic data interface, judging whether the returned information of the iOS system is first preset data, and if so, returning pairing success information to the upper layer application; otherwise, returning disconnection information to the upper layer application, and executing the step 102;
further, in this embodiment, step 101 specifically includes: the communication device records the current time as a first time; calling the iOS system to read the Bluetooth characteristic data interface, judging whether the pairing is successful according to the type of the function called by the returned information of the iOS system, and if the iOS system calls the returned information of the received data callback function, returning the successful pairing information to the upper layer application; if the iOS system calls the disconnection callback function to return disconnection information, the disconnection information is returned to the upper layer application, and step 102 is executed.
Optionally, in this embodiment, step 101 specifically includes: the communication device records the current time as a first time; acquiring a preset instruction from an upper application; calling an iOS system to send a preset instruction interface; opening a monitoring channel, monitoring the return information of the iOS system, judging whether the return information is disconnection information or not, otherwise, judging whether the return information contains second preset data or not, intercepting the second data contained in the return information when the return information contains the second preset data, returning pairing success information to the upper layer application, waiting for receiving a preset instruction response returned by the iOS system, and returning the preset instruction response to the upper layer application when receiving the preset instruction response returned by the iOS system; when the returned information does not contain second preset data, returning pairing failure information to the upper-layer application; if yes, the disconnection information is returned to the upper layer application, and step 102 is executed.
Furthermore, in this embodiment, the determining whether the return information includes the second preset data specifically includes: and the communication device judges whether second data contained in the return information is the same as second preset data or not, if so, intercepts the second data contained in the return information, and otherwise, returns pairing failure information to the upper-layer application.
Further, in this embodiment, step 101 specifically includes: the communication device records the current time as a first time; acquiring a preset instruction from an upper application; calling an iOS system to send a preset instruction interface; opening a monitoring channel, monitoring return information of the iOS system, judging the type of a function of the calling iOS system, if the calling iOS system receives the return information received by the data callback function, judging whether the return information contains second preset data, intercepting the second preset data contained in the return information when the return information contains the second preset data, returning pairing success information to the upper layer application, waiting for receiving a preset instruction response returned by the iOS system, and returning a preset instruction response to the upper layer application when receiving the preset instruction response returned by the iOS system; when the returned information does not contain second preset data, returning pairing failure information to the upper-layer application; if the returned information returned by the iOS system call disconnection callback function is received as disconnection information, step 102 is executed.
Further, in this embodiment, in step 101, the monitoring channel is opened, specifically: and the communication device calls the iOS system to open the received data monitoring interface and receives the monitoring channel opening success information returned by the iOS system opening received data monitoring callback function.
Further, in this embodiment, in step 101, waiting for receiving a preset instruction response returned by the iOS system specifically includes: and the communication device receives a preset instruction response returned by the data callback function received by the iOS system.
Step 102: the communication device judges the pairing failure type according to the return information of the iOS system, and if the pairing failure type is a user cancelling operation, the communication device returns user cancelling operation information to the upper layer application; if the pairing failure type is the second failure type error, executing step 103; otherwise, error is reported, and the process is finished;
optionally, in this embodiment, step 102 specifically includes: the communication device judges the type of the error code in the returned information of the iOS system, and if the error code is a first preset value, the communication device returns user cancel operation information to the upper layer application; if the error code is the second preset value, go to step 103;
further, in this embodiment, step 102 specifically includes: the communication device judges the type of the error code returned by the iOS disconnection callback function, and if the error code is a first preset value, returns user cancel operation information to the upper layer application; if the error code is the second predetermined value, step 103 is executed.
Step 103: the communication device records the current time as a second time, judges whether the difference value between the second time and the first time is greater than a preset time length, and returns an overtime error message to the upper layer application if the difference value is greater than the preset time length; otherwise, long key error information is returned to the upper layer application.
The embodiment provides a method for accurately positioning a Bluetooth pairing fault by iOS application; the problem that the upper layer application cannot acquire the Bluetooth pairing state from the iOS system is solved, whether the Bluetooth pairing fault is caused by user cancel operation, overtime or long key error or not is accurately determined, and the determination result is returned to the upper layer application so that the upper layer application can perform correct subsequent processing.
Example two
An embodiment of the present invention provides a method for accurately positioning a bluetooth pairing fault by an iOS application, as shown in fig. 2, including the following steps:
step 200: the communication device waits to be called by the upper layer application, and when the communication device is called by the upper layer application, step 201 is executed;
step 201: the communication device calls an iOS system Bluetooth connection interface;
optionally, in this embodiment, after step 201, the method further includes: when the iOS system Bluetooth connection interface is called by the communication device, the iOS system sends a connection request to the Bluetooth equipment;
for example, in this embodiment, the iOS system bluetooth connection interface is- (void) connected private (cbprivate) private (nullablendscription < NSString, id >) private.
Step 202: when the communication device receives successful connection information returned by the iOS system, the communication device calls an iOS system scanning Bluetooth service interface to wait for receiving Bluetooth service returned by an iOS system scanning service callback function;
optionally, in this embodiment, in step 202, the communication device receives successful connection information returned by the iOS system, specifically: the communication device receives successful connection information returned by the iOS system connection callback function;
for example, in this embodiment, the iOS system connection callback function is: - (void) Central manager (CBCentral manager) Central storage connected personal (CBpersonal) apersonal.
Optionally, in this embodiment, after the step 202, the method further includes: when the iOS system scan bluetooth services interface is called, the iOS system scans for bluetooth services.
For example, in this embodiment, the iOS system scans the bluetooth service interface as- (void) discover services (nullabelsarry < CBUUID >) serviceUUIDs.
For example, in this embodiment, the iOS system scan service callback function is- (void) peripheral (CBPeripheral) a peripheral two servers (NSError) error.
Step 203: the communication device calls an iOS system scanning Bluetooth feature interface and receives Bluetooth features returned by the iOS system scanning Bluetooth feature callback function;
optionally, in this embodiment, after the communication device calls the iOS system to scan the bluetooth feature interface, the method further includes: the iOS system scans for bluetooth features.
For example, in this embodiment, the scan bluetooth feature interface is: - (void) discover characteristics (nullabelsarray < CBUUID >) characterstic uuids for service (CBService).
For example, in this embodiment, the bluetooth feature callback function scanned by the iOS system is specifically: - (void) perimental (CBPermental) aPeripleraldDiscoverectricstanccs ForService (CBService) servicerror (NSError) error.
Optionally, in this embodiment, after step 203, the method further includes: the communication device retrieves the bluetooth feature including the read attribute from the received bluetooth features;
specifically, the communication device retrieves the bluetooth feature including the read attribute from the received bluetooth features, specifically: the communication device retrieves the bluetooth feature including the read attribute based on the attribute of the cbcharateristic properties type in the cbcharateristic object in the CBService object.
For example, in the present embodiment, when the attribute of the cbcharateristic properties type in the bluetooth feature is cbcharateristic properties read, the bluetooth feature is a bluetooth feature including a read attribute.
Optionally, in this embodiment, there may be 1 or more bluetooth features containing the read attribute; if there are more bluetooth features containing the read attribute, then step 204 is preceded by: the communication device selects the retrieved first Bluetooth feature containing the reading attribute by default to execute the subsequent operation; or the communication device randomly selects a Bluetooth feature containing the reading attribute to execute the subsequent operation;
step 204: the communication device records the current time as a first time; calling the iOS system to read the Bluetooth characteristic data interface, waiting for receiving the return information of the iOS system, and executing step 205 if the return information is first preset data; if the returned information is the disconnection information, executing step 206;
optionally, in this embodiment, the communication device calls the iOS system to read the bluetooth feature data interface, waits for receiving the return information of the iOS system, and if the return information is the first preset data, executes step 205; if the returned information is disconnection information, then step 206 is executed, specifically:
the communication device calls the iOS system to read the bluetooth feature data interface, waits for receiving the return information of the iOS system, and if the return information is the first preset data returned by the iOS system calling the received data callback function, executes step 205; if the returned information is the disconnection information returned by the iOS system calling disconnection callback function, step 206 is executed.
Optionally, in this embodiment, the first preset data may be any data; for example, in this embodiment, the first preset data is: A00A;
for example, in this embodiment, the iOS system reads that the bluetooth feature data interface is- (void) readValueForCharacteriodic (CBCharacteriodic) character;
for example, in this embodiment, the received data callback function is- (void) private (cbprivate) private add value for charateristic (cbcharateristic) charateristic (nullaborenserror) erro;
for example, in this embodiment, the call disconnection callback function is- (void) centralManager (CBCentralManager) centraldeddisconnectpersonalperipheral (cbperpheral) error.
Optionally, in this embodiment, recording the current time as the first time specifically includes: a timer is newly built in the communication device; correspondingly, in step 208, the communication device records that the current time is the second time, and determines whether a difference between the second time and the first time is greater than a preset time duration, specifically: the communication device records the current time as a second time and judges whether the second time is greater than a first preset value; the communication device starts counting after the timer is newly built, and the initial time is 0.
Optionally, in this embodiment, recording the current time as the first time specifically includes: the communication device starts an original timer to record the current time as a first time; correspondingly, in step 208, the communication device records that the current time is the second time specifically as follows: and the communication device opens the original timer to record the current time as the second time.
Step 205: the communication device returns pairing success information to the upper layer application;
for example, in this embodiment, the pairing success information is: 0x 00000000;
step 206: the communication device judges the reason of disconnection, if the reason is that the user cancels the operation, step 207 is executed, and if the reason is that the second failure type is wrong, step 208 is executed;
optionally, in this embodiment, step 206 specifically includes: the communication device determines the type of the error code, and performs step 207 when the error code is a first preset value, and performs step 208 when the error code is a second preset value;
for example, in this embodiment, the first preset value is: 0;
the second preset value is: 6;
specifically, in this embodiment, after the iOS system and the bluetooth device are successfully paired, a long secret key is generated and stored in the iOS system and the bluetooth device, and the long secret key is used for encrypting a link;
step 207: the communication device returns the user cancel operation information to the upper layer application;
for example, in this embodiment, the user cancel operation information is: 0x 00000001;
optionally, in this embodiment, the returning, by the communication device, the user cancel operation information to the upper layer application specifically includes: the communication device calls the first callback function of the upper application to return the user cancelling operation information to the upper application;
for example, in this embodiment, the communication device returns the user cancel operation information to the upper layer application, specifically: the communication device calls a first callback function- (void) ResultCallBack (NSInteger) errorCode of the upper layer application to return the user cancel operation information to the upper layer application.
Step 208: the communication device records that the current time is a second time, judges whether the difference value between the second time and the first time is greater than a preset time length, if so, the second failure type error is an overtime error, and returns overtime error information to the upper layer application, otherwise, the second failure type error is a long key error, and returns long key error information to the upper layer application;
for example, in this embodiment, the long key error information is: 0x 00000002;
the timeout error information is: 0x 00000003;
the preset time is 10 seconds;
optionally, in this embodiment, the returning of the long key error information to the upper layer application specifically includes: the communication device calls a second callback function of the upper layer application to return the long-key error information to the upper layer application;
for example, in this embodiment, the communication device calls a second callback function- (void) resultcall back (nseteger) errorCode to return long-key error information to the upper layer application;
optionally, in this embodiment, the returning of the timeout error information to the upper layer application specifically includes: the communication device calls a third callback function of the upper layer application to return overtime error information to the upper layer application;
for example, in this embodiment, the returning of the timeout error information to the upper layer application specifically includes: the communication device calls a third callback function- (void) resultcall back (nsigger) errorCode of the upper layer application to return a timeout error message to the upper layer application.
In this embodiment, the iOS system refers to a mobile operation iOS system developed by apple inc;
the embodiment provides a method for accurately positioning a Bluetooth pairing fault by iOS application; the problem that the upper layer application cannot acquire the Bluetooth pairing state from the iOS system is solved, whether the Bluetooth pairing fault is caused by user cancel operation, overtime or long key error or not is accurately determined, and the determination result is returned to the upper layer application so that the upper layer application can perform correct subsequent processing.
EXAMPLE III
An embodiment of the present invention provides a method for accurately positioning a bluetooth pairing fault by an iOS application, as shown in fig. 3, including the following steps:
step 300: the communication device waits to be called by the upper layer application, and when the communication device is called by the upper layer application, step 301 is executed;
step 301: the communication device calls an iOS system Bluetooth connection interface;
optionally, in this embodiment, after step 301, the method further includes: when the iOS system Bluetooth connection interface is called by the communication device, the iOS system sends a connection request to the Bluetooth equipment;
for example, in this embodiment, the iOS system bluetooth connection interface is- (void) connected private (cbprivate) private (nullablendscription < NSString, id >) private.
Step 302: when the communication device receives successful connection information returned by the iOS system, the communication device calls an iOS system scanning Bluetooth service interface to wait for receiving Bluetooth service returned by an iOS system scanning service callback function;
optionally, in this embodiment, in step 302, the step of receiving, by the communication device, the successful connection information returned by the iOS system includes: the communication device receives the successful connection information returned by the iOS system connection callback function.
For example, in this embodiment, the iOS system connection callback function is: - (void) Central manager (CBCentral manager) Central storage connected personal (CBpersonal) apersonal.
Optionally, in this embodiment, after the step 302, the method further includes: when the iOS system scan bluetooth services interface is called, the iOS system scans for bluetooth services.
For example, in this embodiment, the iOS system scans the bluetooth service interface as- (void) discover services (nullabelsarry < CBUUID >) serviceUUIDs.
For example, in this embodiment, the iOS system scan service callback function is- (void) peripheral (CBPeripheral) a peripheral two servers (NSError) error.
Step 303: the communication device calls an iOS system scanning Bluetooth feature interface and receives Bluetooth features returned by the iOS system scanning Bluetooth feature callback function;
optionally, in this embodiment, after the communication device calls the iOS system to scan the bluetooth feature interface, the method further includes: the iOS system scans for bluetooth features.
For example, in this embodiment, the scan bluetooth feature interface is: - (void) discover characteristics (nullabelsarray < CBUUID >) characterstic uuids for service (CBService).
For example, in this embodiment, the bluetooth feature callback function scanned by the iOS system is specifically: - (void) perimental (CBPermental) aPeripleraldDiscoverectricstanccs ForService (CBService) servicerror (NSError) error.
Optionally, in this embodiment, after step 303, the method further includes: the communication device retrieves the Bluetooth features including the read attribute from the received Bluetooth features;
specifically, retrieving the bluetooth feature including the read attribute from the bluetooth features received by the communication device specifically includes: the communication device retrieves the bluetooth feature including the read attribute based on the attribute of the cbcharateristic properties type in the cbcharateristic object in the CBService object.
For example, in the present embodiment, when the attribute of the cbcharateristic properties type in the bluetooth feature is cbcharateristic properties read, the bluetooth feature is a bluetooth feature including a read attribute.
Optionally, in this embodiment, there may be 1 or more bluetooth features containing the read attribute; if there are more bluetooth features containing the read attribute, then step 304 is preceded by: the communication device selects the retrieved first Bluetooth feature containing the reading attribute by default to execute the subsequent operation; or the communication device randomly selects a Bluetooth feature containing the reading attribute to execute the subsequent operation;
step 304: the communication device records the current time as a first time; acquiring a preset instruction from an upper application, calling the iOS system to send a preset instruction interface, opening a monitoring channel, and monitoring return information of the iOS system, and if the return information is second data, executing step 305; if the returned information is the disconnection information, executing step 306;
optionally, in this embodiment, the communication device opens the listening channel, specifically: and the communication device calls the iOS system to open the received data monitoring interface and receives the monitoring channel opening success information returned by the iOS system opening received data monitoring callback function.
For example, in this embodiment, the opening of the receive data listening interface by the iOS system is: - (void) setNotifyValue (BOOL) enabledformCharacteritic (CBCharacteritic) () characteritic;
the opening of the receive data snoop callback function by the iOS system is as follows: - (void) peripheral (CBPeripheral) peripheral di UpdateNotification StateForCharacteriostic (CBCharacteriogicic) characterstic (nullabRenSerror) error.
Optionally, in this embodiment, after the invoking of the iOS system instruction sending interface, the method further includes: the iOS system sends a preset instruction to the Bluetooth device;
for example, the iOS system send command interface is: - (void) writeValue (NSData) dataformCharacteritic (CBCharacteristic) characterimetric;
optionally, in this embodiment, recording the current time as the first time specifically includes: a timer is newly built in the communication device; correspondingly, in step 308, the communication device records the current time as the second time, and determines whether the difference between the second time and the first time is greater than a preset time duration, specifically: the communication device records the current time as a second time and judges whether the second time is greater than a first preset value; the communication device starts counting after the timer is newly built, and the initial time is 0.
Optionally, in this embodiment, recording the current time as the first time specifically includes: the communication device starts an original timer to record the current time as a first time; correspondingly, in step 308, the communication device records that the current time is the second time specifically as follows: and the communication device opens the original timer to record the current time as the second time.
Step 305: the communication device judges whether the received second data is the same as second preset data, if so, the pairing is successful, the second data is intercepted, pairing success information is returned to the upper layer application, and a preset instruction response returned by the iOS system is waited to be received, if the preset instruction response returned by the iOS system is received, the preset instruction response is returned to the upper layer application, otherwise, the step 303 is returned;
optionally, in this embodiment, the waiting for receiving the instruction response returned by the iOS system specifically includes: the communication device calls the iOS system to receive the data callback function and receives an instruction response returned by the iOS system receiving the data callback function;
for example, in this embodiment, the iOS system receives the data callback function as- (void) peripheral (CBPeripheral) peripheral, private updatedditepalevalueforcharacteristic (CBCharacteristic) charateristicror (nulalenserror) error;
for example, in this embodiment, the pairing success information is: 0x 00000000;
the second data is: A00A;
the second preset data is: A00A;
optionally, before the present embodiment, after negotiating the second preset data, the communication apparatus presets the second preset data with the bluetooth device;
step 306: the communication device determines the reason for the disconnection, if the reason is that the user cancels the operation, step 307 is executed, and if the reason is that the second failure type is wrong, step 308 is executed;
optionally, in this embodiment, step 306 specifically includes: the communication device judges the type of the error code returned by the iOS disconnection callback function, if the error code is a first preset value, the step 307 is executed, and if the error code is a second preset value, the step 308 is executed;
optionally, in this embodiment, the iOS system disconnection callback function is- (void) centralManager (CBCentralManager) centrallddisconnected peripheral (CBPeripheral) peripheral (nullabenzerr) error;
for example, in this embodiment, the first preset value is: 0;
the second preset value is: 6;
specifically, in this embodiment, after the iOS system and the bluetooth device are successfully paired, a long secret key is generated and stored in the iOS system and the bluetooth device, and the long secret key is used for encrypting a link;
step 307: the communication device returns the user cancel operation information to the upper layer application;
for example, in this embodiment, the user cancel operation information is: 0x 00000001;
optionally, in this embodiment, the returning, by the communication device, the user cancel operation information to the upper layer application specifically includes: the communication device calls the first callback function of the upper application to return the user cancelling operation information to the upper application;
for example, in this embodiment, the communication device returns the user cancel operation information to the upper layer application, specifically: the communication device calls a first callback function- (void) ResultCallBack (NSInteger) errorCode of the upper layer application to return the user cancel operation information to the upper layer application.
Step 308: the communication device records that the current time is a second time, judges whether the difference value between the second time and the first time is greater than a preset time length, if so, the second failure type error is an overtime error, and returns overtime error information to the upper layer application, otherwise, the second failure type error is a long key error, and returns long key error information to the upper layer application;
for example, in this embodiment, the long key error information is: 0x 00000002;
the timeout error information is: 0x 00000003;
the preset time is 10 seconds;
optionally, in this embodiment, the returning of the long key error information to the upper layer application specifically includes: the communication device calls a second callback function of the upper layer application to return the long-key error information to the upper layer application;
for example, in this embodiment, the communication device calls a second callback function- (void) resultcall back (nseteger) errorCode to return long-key error information to the upper layer application;
optionally, in this embodiment, the returning of the timeout error information to the upper layer application specifically includes: the communication device calls a third callback function of the upper layer application to return overtime error information to the upper layer application;
for example, in this embodiment, the returning of the timeout error information to the upper layer application specifically includes: the communication device calls a third callback function- (void) resultcall back (nsigger) errorCode of the upper layer application to return a timeout error message to the upper layer application.
In this embodiment, the iOS system refers to a mobile operation iOS system developed by apple inc;
the embodiment provides a method for accurately positioning a Bluetooth pairing fault by iOS application; the problem that the upper layer application cannot acquire the Bluetooth pairing state from the iOS system is solved, whether the Bluetooth pairing fault is caused by user cancel operation, overtime or long key error or not is accurately determined, and the determination result is returned to the upper layer application so that the upper layer application can perform correct subsequent processing.
Example four
A fourth embodiment of the present invention provides a communication apparatus, as shown in fig. 4, including a first recording module 401, a first calling module 402, a first determining module 403, a first returning module 404, a second determining module 405, a second returning module 406, a second recording module 407, a third determining module 408, a third returning module 409, a fourth returning module 410, and an error reporting module 411;
a first recording module 401, configured to record a current time as a first time when the communication apparatus is called by an upper layer application;
a first calling module 402, configured to call the iOS system first interface when the communication apparatus is called by the upper layer application;
a first determining module 403, configured to determine whether pairing is successful according to return information of the iOS system after the first calling module 402 calls the first interface of the iOS system;
optionally, in this embodiment, the first invoking module 402 is specifically configured to invoke the iOS system to read the bluetooth feature data interface when the communication apparatus is invoked by the upper layer application;
the first determining module 403 is specifically configured to determine whether return information of the iOS system is first preset data after the first calling module 402 calls the iOS system to read the bluetooth feature data interface;
further, in this embodiment, a fifth returning module is further included;
a first determining module 403, configured to determine whether pairing is successful according to a type of a function called by return information of the iOS system;
a first returning module 404, configured to return pairing success information to the upper-layer application when the first determining module 403 determines that the iOS system calls the received data callback function to return information;
a fifth returning module, configured to return the disconnection information to the upper-layer application when the first determining module 403 determines that the iOS system calls the disconnection callback function to return the disconnection information.
Optionally, in this embodiment, the system further includes an obtaining module, a monitoring module, an intercepting module, a sixth returning module, a seventh returning module, and an eighth returning module; the first judging module 403 includes a first judging unit and a second judging unit;
the communication device comprises an acquisition module, a processing module and a control module, wherein the acquisition module is used for acquiring a preset instruction from an upper application when the communication device is called by the upper application;
a first calling module 402, specifically configured to call the iOS system to send a preset instruction interface when the obtaining module obtains a preset instruction from an upper application;
the monitoring module is used for opening a monitoring channel and monitoring the return information of the iOS system;
the first judging unit is used for judging whether the returned information monitored by the monitoring module is disconnection information or not;
a sixth returning module, configured to return disconnection information to the upper layer application when the first determining unit determines that the connection is established;
the second judging unit is used for judging whether the return information contains second preset data or not when the first judging unit judges that the return information does not contain the second preset data;
the interception module is used for intercepting second data contained in the return information when the second judgment unit judges that the second data is positive;
a seventh returning module, configured to, when the second determining unit determines that the pairing request is positive, return pairing success information to the upper layer application, wait for receiving a preset instruction response returned by the iOS system, and return the preset instruction response to the upper layer application when receiving the preset instruction response returned by the iOS system;
an eighth returning module, configured to return pairing failure information to the upper-layer application when the second determining unit determines that the pairing failure information is negative;
further, in this embodiment, the second determining unit is specifically configured to determine whether the second data included in the return information is the same as the second preset data;
further, in this embodiment, the first determining unit is specifically configured to determine a type of calling the iOS system function;
the second judging unit is specifically used for judging that the return information received by the data callback function is contained in the return information when the first judging unit judges that the iOS system is called to receive the return information;
the interception module is specifically used for intercepting second preset data contained in the return information when the second judgment unit judges that the return information contains the second preset data;
a seventh returning module, configured to, when the second determining unit determines that the return information includes second preset data, return pairing success information to the upper layer application, wait for receiving a preset instruction response returned by the iOS system, and return a preset instruction response to the upper layer application when receiving the preset instruction response returned by the iOS system;
an eighth returning module, configured to return pairing failure information to the upper-layer application when the second determining unit determines that the returned information does not include the second preset data;
a sixth returning module, configured to return disconnection information to the upper-layer application when the first determining unit determines that the return information returned by the iOS system calling the disconnection callback function is disconnection information;
further, in this embodiment, the monitoring module is specifically configured to invoke the iOS system to open the received data monitoring interface, and receive the monitoring channel opening success information returned by the iOS system opening the received data monitoring callback function;
further, in this embodiment, the seventh returning module is specifically configured to receive a preset instruction response returned by the iOS system receiving the data callback function;
a first returning module 404, configured to, when the first determining module 403 determines that the pairing is yes, return pairing success information to the upper layer application;
a second judging module 405, configured to, when the first judging module 403 judges that the pairing has failed, judge a pairing failure type according to return information of the iOS system;
a second returning module 406, configured to, when the second determining module 405 determines that the pairing failure type is a user cancelling operation, return user cancelling operation information to the upper layer application;
an error reporting module 411, configured to report an error and end when the second determining module 405 determines that the result is negative;
a second recording module 407, configured to record the current time as a second time when the second determining module 405 determines that the pairing failure type is a second failure type error;
a third determining module 408, configured to determine whether a difference between the second time recorded by the second recording module 407 and the first time recorded by the first recording module 401 is greater than a preset time duration;
a third returning module 409, configured to return an error message of timeout to the upper-layer application when the third determining module 408 determines that the result is yes;
a fourth returning module 410, configured to, when the third determining module 408 determines that the result is negative, return long-key error information to the upper-layer application.
Optionally, in this embodiment, the second determining module 405 is specifically configured to determine the type of the error code in the return information of the iOS system;
a second returning module 406, configured to, when the second determining module 405 determines that the type of the error code in the returned information of the iOS system is the first preset value, return the user cancel operation information to the upper layer application;
the second recording module 407 is specifically configured to record the current time as a second time when the second determining module 405 determines that the type of the error code in the return information of the iOS system is a second preset value;
further, in this embodiment, the second determining module 405 is specifically configured to determine the type of the error code returned by the iOS system disconnection callback function;
a second returning module 406, configured to, when the second determining module 405 determines that the type of the error code returned by the iOS disconnection callback function is the first preset value, return user cancel operation information to the upper layer application;
the second recording module 407 is specifically configured to record the current time as a second time when the second determining module 405 determines that the type of the error code returned by the iOS system disconnection callback function is a second preset value.
The present embodiment provides a communication apparatus; the problem that the upper layer application cannot acquire the Bluetooth pairing state from the iOS system is solved, whether the Bluetooth pairing fault is caused by user cancel operation, overtime or long key error or not is accurately determined, and the determination result is returned to the upper layer application so that the upper layer application can perform correct subsequent processing.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (20)

1. A method for accurately positioning Bluetooth pairing faults by an iOS application is characterized by comprising the following steps:
step S0: the communication apparatus waits for being called by an upper application, and when the communication apparatus is called by the upper application, performs step S1;
step S1: the communication device records the current time as a first time; calling a first interface of the iOS system, judging whether the pairing is successful according to the returned information of the iOS system, and if so, returning pairing success information to the upper layer application; otherwise, executing step S2;
step S2: the communication device judges a pairing failure type according to the return information of the iOS system, and if the pairing failure type is a user cancelling operation, returns user cancelling operation information to the upper layer application; if the pairing failure type is a second failure type error, executing step S3; otherwise, error is reported, and the process is finished;
step S3: the communication device records the current time as a second time, judges whether the difference value between the second time and the first time is greater than a preset time length, and returns an overtime error message to the upper layer application if the difference value is greater than the preset time length; otherwise, returning the long key error information to the upper layer application.
2. The method according to claim 1, wherein the step S1 is specifically:
the communication device records the current time as a first time; calling the iOS system to read the Bluetooth characteristic data interface, judging whether the returned information of the iOS system is first preset data, and if so, returning pairing success information to the upper layer application; otherwise, the disconnection information is returned to the upper layer application, and step S2 is executed.
3. The method according to claim 2, wherein the step S1 is specifically:
the communication device records the current time as a first time; calling the iOS system to read the Bluetooth characteristic data interface, judging whether the pairing is successful according to the type of the function called by the returned information of the iOS system, and if the iOS system calls the returned information of the received data callback function, returning the successful pairing information to the upper layer application; if the iOS system calls the disconnection callback function to return disconnection information, the disconnection information is returned to the upper layer application, and step S2 is executed.
4. The method according to claim 1, wherein the step S1 is specifically:
the communication device records the current time as a first time; acquiring a preset instruction from an upper application; calling an iOS system to send a preset instruction interface; opening a monitoring channel, monitoring return information of the iOS system, judging whether the return information is disconnection information or not, otherwise, judging whether the return information contains second preset data or not, intercepting the second data contained in the return information when the return information contains the second preset data, returning pairing success information to the upper-layer application, waiting for receiving a preset instruction response returned by the iOS system, and returning the preset instruction response to the upper-layer application when receiving the preset instruction response returned by the iOS system; when the return information does not contain second preset data, returning pairing failure information to the upper layer application; if yes, the disconnection information is returned to the upper layer application, and step S2 is executed.
5. The method according to claim 4, wherein the determining whether the return message includes second preset data specifically includes:
and the communication device judges whether second data contained in the return information is the same as second preset data, if so, the communication device intercepts the second data contained in the return information, and otherwise, pairing failure information is returned to an upper layer application.
6. The method according to claim 4, wherein the step S1 is specifically:
the communication device records the current time as a first time; acquiring a preset instruction from an upper application; calling an iOS system to send a preset instruction interface; opening a monitoring channel, monitoring return information of an iOS system, judging the type of a function of the calling iOS system, if the calling iOS system receives the return information received by a data callback function, judging whether the return information contains second preset data, if the return information contains the second preset data, intercepting the second preset data contained in the return information, returning pairing success information to an upper layer application, waiting for receiving a preset instruction response returned by the iOS system, and returning the preset instruction response to the upper layer application when receiving the preset instruction response returned by the iOS system; when the returned information does not contain second preset data, returning pairing failure information to the upper-layer application; if the return information returned by the iOS system call disconnection callback function is received as disconnection information, step S2 is executed.
7. The method according to claim 4, wherein in the step S1, the opening of the listening channel specifically includes:
and the communication device calls the iOS system to open the data receiving monitoring interface and receives the monitoring channel opening success information returned by the iOS system opening and receiving data monitoring callback function.
8. The method according to claim 4, wherein in the step S1, the waiting for receiving the preset instruction response returned by the iOS system includes:
and the communication device receives a preset instruction response returned by the iOS system receiving the data callback function.
9. The method according to claim 1, wherein the step S2 is specifically:
the communication device judges the type of the error code in the returned information of the iOS system, and if the error code is a first preset value, the communication device returns user operation cancelling information to the upper application; if the error code is the second predetermined value, go to step S3; otherwise, error is reported and the process is finished.
10. The method according to claim 9, wherein the step S2 is specifically:
the communication device judges the type of the error code returned by the iOS disconnection callback function, and returns user operation cancelling information to the upper application if the error code is a first preset value; if the error code is the second predetermined value, step S3 is executed, otherwise, an error is reported, and the process is ended.
11. A communication device is characterized by comprising a first recording module, a second calling module, a first judging module, a second recording module, a third judging module, a first returning module, a second returning module, a third returning module, a fourth returning module and an error reporting module;
the first recording module is used for recording the current time as a first time when the communication device is called by an upper application;
the second calling module is used for calling the first interface of the iOS system when the communication device is called by the upper application;
the first judging module is used for judging whether the pairing is successful according to the returned information of the iOS system after the second calling module calls the first interface of the iOS system;
the first returning module is used for returning pairing success information to the upper layer application when the first judging module judges that the pairing success information is positive;
the second judging module is used for judging the pairing failure type according to the returned information of the iOS system when the first judging module judges that the pairing failure type is not the first judging module;
the second returning module is configured to return user cancelling operation information to the upper layer application when the second determining module determines that the pairing failure type is a user cancelling operation;
the error reporting module is used for reporting an error when the second judging module judges that the second judging module is negative, and ending;
the second recording module is configured to record the current time as a second time when the second determining module determines that the pairing failure type is a second failure type error;
the third judging module is configured to judge whether a difference between the second time recorded by the second recording module and the first time recorded by the first recording module is greater than a preset duration;
the third returning module is configured to return an overtime error message to the upper application when the third determining module determines that the;
and the fourth returning module is configured to return long key error information to the upper layer application when the third determining module determines that the second determination module does not determine the second determination module.
12. The communication apparatus according to claim 11, wherein the second invoking module is specifically configured to invoke an iOS system to read a bluetooth feature data interface when the communication apparatus is invoked by the upper layer application;
the first judging module is specifically configured to judge whether return information of the iOS system is first preset data after the second calling module calls the iOS system to read the bluetooth feature data interface.
13. The communications apparatus of claim 12, further comprising a fifth return module;
the first judgment module is specifically used for judging whether the pairing is successful according to the type of the function called by the returned information of the iOS system;
the first returning module is specifically configured to return pairing success information to the upper layer application when the first determining module determines that the iOS system calls the received data callback function to return information;
and the fifth returning module is used for returning the disconnection information to the upper-layer application when the first judging module judges that the iOS system calls the disconnection callback function to return the disconnection information.
14. The communications apparatus of claim 11, further comprising an acquisition module, a listening module, an interception module, a sixth return module, a seventh return module, and an eighth return module; the first judging module comprises a first judging unit and a second judging unit;
the obtaining module is used for obtaining a preset instruction from an upper application when the communication device is called by the upper application;
the second calling module is specifically configured to call the iOS system to send a preset instruction interface when the obtaining module obtains a preset instruction from an upper application;
the monitoring module is used for opening a monitoring channel and monitoring the return information of the iOS system;
the first judging unit is configured to judge whether the return information monitored by the monitoring module is disconnection information;
the sixth returning module is configured to return disconnection information to the upper layer application when the first determining unit determines that the connection is established;
the second judging unit is configured to judge whether the return information includes second preset data when the first judging unit judges that the return information does not include the second preset data;
the interception module is configured to intercept second data included in the return information when the second determination unit determines that the return information is not included in the return information;
the seventh returning module is configured to, when the second determining unit determines that the pairing request is a pairing request, return pairing success information to the upper layer application, wait for receiving a preset instruction response returned by the iOS system, and return the preset instruction response to the upper layer application when receiving the preset instruction response returned by the iOS system;
the eighth returning module is configured to, when the second determining unit determines that the pairing is not successful, return pairing failure information to the upper layer application.
15. The communication apparatus according to claim 14, wherein the second determining unit is specifically configured to determine whether the second data included in the return information is the same as second preset data.
16. The communication apparatus according to claim 14, wherein the first determining unit is specifically configured to determine a type of calling the iOS system function;
the second judging unit is specifically configured to judge, by the first judging unit, that the return information received by the data callback function is received by calling the iOS system, and judge that the return information includes second preset data;
the intercepting module is specifically configured to intercept second preset data included in the return information when the second determining unit determines that the return information includes the second preset data;
the seventh returning module is specifically configured to, when the second determining unit determines that the return information includes second preset data, return pairing success information to the upper application, wait for receiving a preset instruction response returned by the iOS system, and return the preset instruction response to the upper application when receiving the preset instruction response returned by the iOS system;
the eighth returning module is configured to, when the second determining unit determines that the returned information does not include the second preset data, return pairing failure information to the upper layer application;
the sixth returning module is specifically configured to, when the first determining unit determines that the return information returned by the iOS system calling the disconnection callback function is disconnection information, return the disconnection information to the upper application.
17. The communications apparatus as claimed in claim 14, wherein the snooping module is specifically configured to invoke the iOS system to open the receive data snoop interface, and receive the snoop channel opening success information returned by the receive data snoop callback function opened by the iOS system.
18. The communications apparatus as claimed in claim 14, wherein the seventh returning module is specifically configured to receive a preset instruction response returned by the iOS system receiving the data callback function.
19. The communication apparatus according to claim 11, wherein the second determining module is specifically configured to determine a type of an error code in the returned information of the iOS system;
the second returning module is specifically configured to return user cancel operation information to the upper layer application when the second determining module determines that the type of the error code in the return information of the iOS system is a first preset value;
the second recording module is specifically configured to record the current time as the second time when the second determining module determines that the type of the error code in the return information of the iOS system is the second preset value.
20. The communications apparatus according to claim 19, wherein the second determining module is specifically configured to determine a type of error code returned by the iOS system disconnection callback function;
the second returning module is specifically configured to return user cancel operation information to the upper application when the second determining module determines that the type of the error code returned by the iOS system disconnection callback function is the first preset value;
the second recording module is specifically configured to record the current time as a second time when the second determining module determines that the type of the error code returned by the iOS system disconnection callback function is a second preset value.
CN201810866405.1A 2018-08-01 2018-08-01 Method for accurately positioning Bluetooth pairing fault by iOS application and communication device Active CN109005529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810866405.1A CN109005529B (en) 2018-08-01 2018-08-01 Method for accurately positioning Bluetooth pairing fault by iOS application and communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810866405.1A CN109005529B (en) 2018-08-01 2018-08-01 Method for accurately positioning Bluetooth pairing fault by iOS application and communication device

Publications (2)

Publication Number Publication Date
CN109005529A CN109005529A (en) 2018-12-14
CN109005529B true CN109005529B (en) 2020-11-24

Family

ID=64594342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810866405.1A Active CN109005529B (en) 2018-08-01 2018-08-01 Method for accurately positioning Bluetooth pairing fault by iOS application and communication device

Country Status (1)

Country Link
CN (1) CN109005529B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469453A (en) * 2010-11-12 2012-05-23 国民技术股份有限公司 Security certificate method and system
CN102915458A (en) * 2012-09-18 2013-02-06 陕西海创中盈信息技术有限公司 Induction-type WiFi (wireless fidelity) electronic tag interactive with intelligent terminal, and reading method thereof
CN104507037A (en) * 2014-12-12 2015-04-08 飞天诚信科技股份有限公司 Method for realizing Bluetooth binding of intelligent encrypting device and mobile equipment
CN106535090A (en) * 2016-10-11 2017-03-22 歌尔科技有限公司 Pairing method for Bluetooth device and intelligent device and Bluetooth device
CN107071709A (en) * 2017-04-06 2017-08-18 飞天诚信科技股份有限公司 A kind of matching method and device with bluetooth equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120323786A1 (en) * 2011-06-16 2012-12-20 OneID Inc. Method and system for delayed authorization of online transactions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102469453A (en) * 2010-11-12 2012-05-23 国民技术股份有限公司 Security certificate method and system
CN102915458A (en) * 2012-09-18 2013-02-06 陕西海创中盈信息技术有限公司 Induction-type WiFi (wireless fidelity) electronic tag interactive with intelligent terminal, and reading method thereof
CN104507037A (en) * 2014-12-12 2015-04-08 飞天诚信科技股份有限公司 Method for realizing Bluetooth binding of intelligent encrypting device and mobile equipment
CN106535090A (en) * 2016-10-11 2017-03-22 歌尔科技有限公司 Pairing method for Bluetooth device and intelligent device and Bluetooth device
CN107071709A (en) * 2017-04-06 2017-08-18 飞天诚信科技股份有限公司 A kind of matching method and device with bluetooth equipment

Also Published As

Publication number Publication date
CN109005529A (en) 2018-12-14

Similar Documents

Publication Publication Date Title
EP3013086B1 (en) Method, apparatus and electronic device for connection management
JP4728387B2 (en) Apparatus and method for determining connection quality of wireless devices on a wireless communication network
US10153957B2 (en) Fault diagnosis method, device, and fault diagnosis system
RU2543095C2 (en) Diagnosing and resolving wireless network malfunctions
CN111565137A (en) System and method for binding WiFi distribution network and equipment
JP2009112044A (en) Monitoring local area network
WO2006113168A2 (en) Method and apparatus for performing wireless diagnostics and troubleshooting
WO2012159474A1 (en) Malicious behavior detection method and system based on smartphone radio interface layer
EP2611226A1 (en) Processing method and system for over-the-air bootstrap
WO2011107022A1 (en) Data card and method for dial-up networking
US10278063B2 (en) Apparatus and method of local profile assistant eUICC logging
CN108184225B (en) Method for canceling Bluetooth connection in real time in Bluetooth connection process and intelligent terminal
CN113055225B (en) Network fault analysis data acquisition method, terminal and server
WO2024067054A1 (en) Cellular communication capability handover method and apparatus
EP2094036A2 (en) Storage system of mobile terminal and access control method
CN109005529B (en) Method for accurately positioning Bluetooth pairing fault by iOS application and communication device
CN103442377B (en) A kind of method that WIFI module and multiple AP carry out WPS session negotiation simultaneously
CN108307417B (en) Processing method for network communication function abnormity, modem and mobile terminal
CN105376786B (en) Processing method, application processor and the mobile terminal of network communicating function exception
CN107994928B (en) Method and communication device for realizing synchronous receiving and transmitting of Bluetooth data
CN110891053A (en) Method for establishing communication connection between android APP and operating system based on local area network
US7116784B2 (en) Method and apparatus for authenticated reporting in a mobile communication device
JP5200785B2 (en) Call control apparatus and method
JP2012253556A (en) Mobile terminal, communication error cause notification method, and program
CN116847027A (en) Calling method, device and storage medium

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
GR01 Patent grant
GR01 Patent grant