CN105933204A - Method and device for enabling first equipment to transmit synchronization message to second equipment - Google Patents

Method and device for enabling first equipment to transmit synchronization message to second equipment Download PDF

Info

Publication number
CN105933204A
CN105933204A CN201610239114.0A CN201610239114A CN105933204A CN 105933204 A CN105933204 A CN 105933204A CN 201610239114 A CN201610239114 A CN 201610239114A CN 105933204 A CN105933204 A CN 105933204A
Authority
CN
China
Prior art keywords
equipment
data
bluetooth
data packets
telecommunications
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.)
Granted
Application number
CN201610239114.0A
Other languages
Chinese (zh)
Other versions
CN105933204B (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.)
Beijing Qihoo Technology Co Ltd
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qiku Internet Technology Shenzhen 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 Beijing Qihoo Technology Co Ltd, Qiku Internet Technology Shenzhen Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201610239114.0A priority Critical patent/CN105933204B/en
Publication of CN105933204A publication Critical patent/CN105933204A/en
Application granted granted Critical
Publication of CN105933204B publication Critical patent/CN105933204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention provides a method and device for enabling first equipment to transmit a synchronization message to second equipment, and the method comprises the steps: (the first equipment) receiving IM data transmitted by a local IM client; generating a Bluetooth data package according to the IM data; generating a remote communication data package according to the Bluetooth data package; transmitting the remote communication data package to the second equipment through a relay server. The above method improves the convenience of instant communication. The invention also provides portable multifunctional equipment.

Description

The method and apparatus that first equipment sends synchronization message to the second equipment
Technical field
The present invention relates to communication technical field, specifically, the present invention relates to a kind of first equipment and send the method for synchronization message, device and portable multifunction device to the second equipment.
Background technology
Wearable device the most popular so that the instant messaging (IM) on wearable device increasingly comes into one's own, such as, the instant communication software such as QQ, wechat (IM client) can be used to carry out instant messaging on wearable device.In the conventional technology, the instant messaging on wearable device needs pairing and binds corresponding intelligent terminal (such as smart mobile phone) competence exertion instant messaging effect;If wearable device needs to receive or send instant message, need by Near Field Communication mode (such as Bluetooth communication) and intelligent terminal interactive and carry out message synchronization, to obtain instant message from intelligent terminal or to send instant message by intelligent terminal.But, when wearable device departs from the scope of intelligent terminal's Near Field Communication, wearable device cannot realize and intelligent terminal interactive and carry out message synchronization, causes wearable device to be temporarily lost with the function of instant messaging, and convenience is poor.
Summary of the invention
The purpose of the present invention is intended at least can solve the technological deficiency that one of above-mentioned technological deficiency, particularly convenience are poor.
The present invention provides a kind of method that first equipment sends synchronization message to the second equipment, described first equipment and the second equipment can configure respective subscriber identification card and can mutual remote data communication, described method comprises the steps:
First equipment receives the IM data of the machine IM client transmissions;
First equipment is according to described IM data genaration bluetooth data packets;
First equipment generates telecommunications data bag according to described bluetooth data packets;
Described telecommunications data bag is sent to the second equipment by Relay Server by the first equipment.
In the present invention, before first equipment generates telecommunications data bag according to described bluetooth data packets, also judge the bluetooth connection status between the first equipment and the second equipment, when bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, the first equipment generates telecommunications data bag according to described bluetooth data packets.
In the present invention, when the bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, the first equipment performs step by call back function: generate telecommunications data bag according to described bluetooth data packets.
In the present invention, when the bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, the first equipment generates telecommunications data bag according to described bluetooth data packets by BNEP Network Encapsulation Protocol.
In the present invention, when the bluetooth connection status between the first equipment and the second equipment does not meets pre-conditioned, described bluetooth data packets is sent to the second equipment by bluetooth interface channel by the first equipment.
In the present invention, described pre-conditioned it is: the first equipment and the second equipment are not connected with bluetooth.
In the present invention, described pre-conditioned it is: the first equipment and the second equipment Bluetooth signal intensity are less than setting intensity level.
In the present invention, described telecommunications data bag is the network packet based on wap protocol or ICP/IP protocol.
In the present invention, described first equipment and the second equipment first pass through Bluetooth pairing and binding in advance.
In the present invention, described bluetooth data packets includes described IM data and the physical address of the second equipment.
In the present invention, the described subscriber identification card of the first equipment configuration and the subscriber identification card of the second equipment configuration are bound in advance.
In the present invention, described binding procedure includes:
Obtain communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card of the first equipment configuration, and be sent to server;
Communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card of the second equipment configuration associated is obtained with the communicating number of subscriber identification card or the international mobile subscriber identity of communicating number of the first equipment configuration from server.
In the present invention, the step that described first equipment generates telecommunications data bag according to described bluetooth data packets includes:
First equipment resolves described bluetooth data packets and obtains IM data therein;
First equipment is according to described IM data genaration telecommunications data bag.
In the present invention, described telecommunications data bag includes communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card that described IM data and the second equipment configured.
The present invention also provides for a kind of device sending synchronization message to the second equipment, described device and the second equipment can configure respective subscriber identification card and can mutual remote data communication, described device includes:
IM interactive module, for receiving the IM data of the machine IM client transmissions;
First modular converter, for according to described IM data genaration bluetooth data packets;
Second modular converter, for generating telecommunications data bag according to described bluetooth data packets;And
Remote interaction module, for being sent to the second equipment by described telecommunications data bag by Relay Server.
In the present invention, also include bluetooth interactive module and for judging the judge module of the bluetooth connection status between described bluetooth interactive module and the second equipment, when described judge module judges that the bluetooth connection status between described bluetooth interactive module and the second equipment meets pre-conditioned, the second modular converter generates telecommunications data bag according to described bluetooth data packets.
In the present invention, when described judge module judges that the bluetooth connection status between described bluetooth interactive module and the second equipment meets pre-conditioned, the second modular converter performs step by call back function: generate telecommunications data bag according to described bluetooth data packets.
In the present invention, when described judge module judges that the bluetooth connection status between described bluetooth interactive module and the second equipment meets pre-conditioned, the second modular converter generates telecommunications data bag according to described bluetooth data packets by BNEP Network Encapsulation Protocol.
In the present invention, when described judge module judges that the bluetooth connection status between described bluetooth interactive module and the second equipment does not meets pre-conditioned, described bluetooth data packets is sent to the second equipment by bluetooth interface channel by described bluetooth interactive module.
In the present invention, described pre-conditioned it is: described bluetooth interactive module and the second equipment are not connected with bluetooth.
In the present invention, described pre-conditioned it is: described bluetooth interactive module and the second equipment Bluetooth signal intensity are less than setting intensity level.
In the present invention, described telecommunications data bag is the network packet based on wap protocol or ICP/IP protocol.
In the present invention, described device and the second equipment first pass through Bluetooth pairing and binding in advance.
In the present invention, described bluetooth data packets includes described IM data and the physical address of the second equipment.
In the present invention, the subscriber identification card of described device configuration and the subscriber identification card of the second equipment configuration are bound in advance.
In the present invention, described binding procedure includes:
Obtain communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card of described device configuration, and be sent to server;
The communicating number of the subscriber identification card of the second equipment configuration that the communicating number of subscriber identification card configured with described device from server acquisition or the international mobile subscriber identity of communicating number associate or the international mobile subscriber identity of communicating number.
In the present invention, described second modular converter is used for:
Resolve described bluetooth data packets and obtain IM data therein;
According to described IM data genaration telecommunications data bag.
In the present invention, described telecommunications data bag includes communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card that described IM data and the second equipment configured.
The present invention also provides for a kind of portable multifunction device, described portable multifunction device and the second equipment can configure respective subscriber identification card and can mutual remote data communication, comprising:
Touch-sensitive display;
One or more processors;
Memorizer;
One or more application programs, wherein said one or more application programs are stored in described memorizer and are configured to be performed by the one or more processor, and the one or more program is configured to:
Receive the IM data of the machine IM client transmissions;
According to described IM data genaration bluetooth data packets;
Telecommunications data bag is generated according to described bluetooth data packets;
Described telecommunications data bag is sent to the second equipment by Relay Server.
In the present invention, before generating telecommunications data bag according to described bluetooth data packets, also judge the bluetooth connection status between described portable multifunction device and the second equipment, when bluetooth connection status between described portable multifunction device and the second equipment meets pre-conditioned, generate telecommunications data bag according to described bluetooth data packets.
In the present invention, when the bluetooth connection status between described portable multifunction device and the second equipment meets pre-conditioned, described portable multifunction device performs step by call back function: generate telecommunications data bag according to described bluetooth data packets.
In the present invention, when the bluetooth connection status between described portable multifunction device and the second equipment meets pre-conditioned, described portable multifunction device generates telecommunications data bag according to described bluetooth data packets by BNEP Network Encapsulation Protocol.
In the present invention, when the bluetooth connection status between described portable multifunction device and the second equipment does not meets pre-conditioned, described bluetooth data packets is sent to the second equipment by bluetooth interface channel.
In the present invention, described pre-conditioned it is: described portable multifunction device and the second equipment are not connected with bluetooth.
In the present invention, described pre-conditioned it is: described portable multifunction device and the second equipment Bluetooth signal intensity are less than setting intensity level.
In the present invention, described telecommunications data bag is the network packet based on wap protocol or ICP/IP protocol.
In the present invention, described portable multifunction device and the second equipment first pass through Bluetooth pairing and binding in advance.
In the present invention, described bluetooth data packets includes described IM data and the physical address of the second equipment.
In the present invention, the subscriber identification card of described portable multifunction device configuration and the subscriber identification card of the second equipment configuration are bound in advance.
In the present invention, described binding procedure includes:
Obtain communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card of described portable multifunction device configuration, and be sent to server;
The communicating number of the subscriber identification card of the second equipment configuration that the communicating number of subscriber identification card configured with described portable multifunction device from server acquisition or the international mobile subscriber identity of communicating number associate or the international mobile subscriber identity of communicating number.
In the present invention, the described step according to described bluetooth data packets generation telecommunications data bag includes:
Resolve described bluetooth data packets and obtain IM data therein;
According to described IM data genaration telecommunications data bag.
In the present invention, described telecommunications data bag includes communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card that described IM data and the second equipment configured.
In traditional instant messaging, when intelligent terminal and wearable device carry out message synchronization, IM data need to interact between the two through short-range communication, therefore there is the problem that convenience is poor.In the case of the IM data of IM client transmission cannot be changed, it may be considered that be modified in IM data carry out the process (sending and receive the process of synchronization message) of tradition short-range communication.
Based on the process sending synchronization message, above-mentioned first equipment sends the method for synchronization message, device and portable multifunction device to the second equipment, (the first equipment) receives the IM data of the machine IM client transmissions, according to described IM data genaration bluetooth data packets, generate telecommunications data bag according to described bluetooth data packets, described telecommunications data bag is sent to the second equipment by Relay Server;In above-mentioned processing procedure, after IM data genaration bluetooth data packets, IM data parsing in bluetooth data packets out and is encapsulated as telecommunications data bag by the first equipment again, and it is sent to the second equipment by Relay Server, thus realize the first equipment and the message synchronization of the second equipment, avoid wearable device (the i.e. first equipment) departing from the scope with intelligent terminal's (the i.e. second equipment) short-range communication just cannot the problem of instant messaging, enhance the convenience of instant messaging.It should be noted that the first equipment and the second equipment can configure respective subscriber identification card and can mutual telecommunication, it is achieved thereby that the first equipment and second equipment telecommunication by Relay Server.
Aspect and advantage that the present invention adds will part be given in the following description, and these will become apparent from the description below, or is recognized by the practice of the present invention.
Accompanying drawing explanation
Aspect that the present invention is above-mentioned and/or additional and advantage from below in conjunction withAccompanying drawingTo the description of embodiment will be apparent from easy to understand, wherein:
Figure 1It it is first equipment method flow to the second equipment transmission synchronization message of an embodimentFigure
Figure 2It it is first equipment method flow from the second equipment reception synchronization message of an embodimentFigure
Figure 3It it is the module signal of the first equipment of an embodimentFigure
Figure 4It it is the portable multifunction device module signal of an embodimentFigure
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment existsIn accompanying drawingIllustrating, the most same or similar label represents same or similar element or has the element of same or like function.Below with reference toAccompanying drawingThe embodiment described is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " may also comprise plural form.Should be further understood that, the wording used in the description of the present invention " includes " referring to there is described feature, integer, step, operation, element and/or assembly, but it is not excluded that existence or adds other features one or more, integer, step, operation, element, assembly and/or their group.It should be understood that when we claim element to be " connected " or during " coupled " to another element, and it can be directly connected or coupled to other elements, or can also there is intermediary element.Additionally, " connection " used herein or " coupling " can include wireless connections or wireless couple.Wording "and/or" used herein includes that one or more list the whole of item or any cell being associated combines with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (include technical term and scientific terminology), have with the those of ordinary skill in art of the present invention be commonly understood by identical meaning.It should also be understood that, those terms defined in such as general dictionary, should be understood that there is the meaning consistent with the meaning in the context of prior art, and unless by specific definitions as here, otherwise will not explain by idealization or the most formal implication.
Those skilled in the art of the present technique are appreciated that, " terminal " used herein above, " terminal unit " had both included the equipment of wireless signal receiver, it only possesses the equipment of wireless signal receiver of non-emissive ability, include again the equipment receiving and launching hardware, it has the reception that on bidirectional communication link, can perform two-way communication and the equipment launching hardware.This equipment may include that honeycomb or other communication equipments, and it has single line display or multi-line display or the honeycomb not having multi-line display or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), it can process with combine voice, data, fax and/or its communication ability;PDA (Personal Digital Assistant, personal digital assistant), it can include the access of radio frequency receiver, pager, the Internet/intranet, web browser, notepad, calendar and/or GPS (Global Positioning System, global positioning system) receptor;Conventional laptop and/or palmtop computer or other equipment, it has and/or includes the conventional laptop of radio frequency receiver and/or palmtop computer or other equipment." terminal " used herein above, " terminal unit " can be portable, can transport, be arranged in the vehicles (aviation, sea-freight and/or land), or it is suitable for and/or is configured at local runtime, and/or with distribution form, any other position operating in the earth and/or space is run." terminal " used herein above, " terminal unit " can also is that communication terminal, access terminals, music/video playback terminal, can be such as PDA, MID (Mobile Internet Device, mobile internet device) and/or there is the mobile phone of music/video playing function, it is also possible to it is the equipment such as intelligent television, Set Top Box.
Those skilled in the art of the present technique are appreciated that remote network devices used herein above, and it includes but not limited to the cloud that computer, network host, single network server, multiple webserver collection or multiple server are constituted.Here, cloud is made up of a large amount of computers based on cloud computing (Cloud Computing) or the webserver, wherein, cloud computing is the one of Distributed Calculation, the super virtual machine being made up of a group loosely-coupled computer collection.In embodiments of the invention, can realize communicating by any communication mode between remote network devices, terminal unit with WNS server, include but not limited to, mobile communication based on 3GPP, LTE, WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, the low coverage wireless transmission method of infrared transmission standard.
In traditional instant messaging, when intelligent terminal and wearable device carry out message synchronization, IM data need to interact between the two through short-range communication, therefore there is the problem that convenience is poor.In the case of the IM data of IM client transmission cannot be changed, it may be considered that be modified in IM data carry out the process (sending and receive the process of synchronization message) of tradition short-range communication.
The present invention provides the method and apparatus that a kind of first equipment sends synchronization message to the second equipment, and the method and apparatus that a kind of first equipment receives synchronization message from the second equipment, the first equipment and the second equipment can configure respective subscriber identification card can mutual remote data communication.Subscriber identification card can be used to distinguish and identify communication user, it can be SIM (Subscriber Identity Module) card, can also be USIM (Universal Subscriber Identity Module) card, but be not limited to above-mentioned.In the following description, in order to describe simplicity, as a example by SIM.
First equipment can be intelligent terminal, such as smart mobile phone;Second equipment can be wearable device, such as intelligent watch.Or can exchange, the i.e. second equipment can be intelligent terminal, such as smart mobile phone;First equipment can be wearable device, such as intelligent watch.In the following description, the first equipment is intelligent terminal, and the second equipment is wearable device.
First equipment and the second equipment should be the equipment that can configure SIM, so that can carry out remote data communication between the first equipment and the second equipment.In this case, the SIM of the first equipment and the SIM of the second equipment can apply in the card business more than No. that common carrier is released, the SIM of the first equipment configuration and the SIM of the second equipment configuration are bound in advance, and the communicating number corresponding to SIM of the i.e. first equipment and the communicating number corresponding to SIM of the second equipment are in the association status of binding.This binding procedure includes: first obtains communicating number or the international mobile subscriber identity (IMSI) of communicating number of the subscriber identification card of the first equipment configuration, and is sent to server;Then communicating number or the international mobile subscriber identity of communicating number of the subscriber identification card of the second equipment configuration associated is obtained with the communicating number of subscriber identification card or the international mobile subscriber identity of communicating number of the first equipment configuration from server.After completing binding, the first equipment and the second equipment that are each configured with SIM can be interrelated under remote data communication network.First equipment and the second equipment should also be as pre-first passing through Bluetooth pairing and binding.In binding procedure, the first equipment and the respective unique mark of the second equipment can be utilized to be associated and bind, unique mark can be such as physical address (MAC) or the Unique Device title of the first equipment and the second equipment, and this binding procedure is referred to be provided with the Bluetooth pairing between android system and the equipment being provided with Android Wear system and binding procedure.After pairing and binding, the IM client being installed on the first equipment can transfer data to the second equipment and install the IM client of the second equipment.This process is referred to wechat cell-phone customer terminal and transfers data to intelligent watch and install the process of wechat wrist-watch client at intelligent watch.
In order to convenient, it may be considered that synchronize to carry out by above-mentioned SIM binding procedure and bluetooth binding procedure.Can be using the international mobile subscriber identity (IMSI) of the communicating number of the SIM of the first equipment configuration or communicating number as the first binding information, using unique mark (such as MAC) of the first equipment as the second binding information, then the first binding information and the second binding information it is collectively forming binding information and is sent to the second equipment, further to be matched and to bind.After each storing the binding information of counterpart device, just achieve and the associating of counterpart device.
Figure 1It it is first equipment method flow to the second equipment transmission synchronization message of an embodimentFigure.The method that first equipment sends synchronization message to the second equipment comprises the steps S110~S160.
Step S110: the first equipment receives the IM data of the machine IM client transmissions.
The instant message received or send, when receiving or send instant message, is packaged into IM data by the machine IM client.IM data can be understood as message synchronization data, for making the IM client of the second equipment according to its synchronization message.Therefore, IM data can also include the configuration data of the first equipment I M client, for making the IM client of the second equipment synchronize configuration data according to it.The operation system of the first equipment obtains IM data from the machine IM client.
Step S120: the first equipment is according to IM data genaration bluetooth data packets.
The operation system of the first equipment is after the machine IM client obtains IM data, and according to acquired IM data, encapsulation generates bluetooth data packets.In bluetooth data packets, it should also including the destination address of transmission, therefore bluetooth data packets can include IM data and the physical address of the second equipment.
Step S130: judge the bluetooth connection status between the first equipment and the second equipment.
When bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, perform step S140.When bluetooth connection status between the first equipment and the second equipment does not meets pre-conditioned, perform step S150.Step S150: bluetooth data packets is sent to the second equipment by bluetooth interface channel by the first equipment.When bluetooth connection status between first equipment and the second equipment does not meets pre-conditioned, show that the bluetooth between the first equipment and the second equipment connects good, directly the bluetooth data packets including IM data can be sent to the second equipment by bluetooth interface channel.
Bluetooth connection status is for distinguishing the fine or not degree that bluetooth connects, and signal is crossed overly soft pulse to no connection and shown that the first equipment and the second equipment are too far apart, and is not suitable for transmitting message synchronization data by bluetooth interface channel.Therefore, pre-conditioned can be: the first equipment and the second equipment are not connected with bluetooth;Or pre-conditioned can be: the first equipment and the second equipment Bluetooth signal intensity are less than setting intensity level.Bluetooth signal intensity can judge according to the size of RSSI value, and therefore setting intensity level can be the RSSI value set.It is appreciated that step S120 and step S130 can exchange order.When bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, perform step S140.
Step S140: the first equipment generates telecommunications data bag according to bluetooth data packets.
When bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, show that between the first equipment and the second equipment, bluetooth connection status is the best, need to send message synchronization data by telecommunication passage.Therefore, the first equipment resolves bluetooth data packets and obtains IM data therein, and according to IM data genaration telecommunications data bag.
The above-mentioned step generating telecommunications data bag according to bluetooth data packets can be performed to be called by function pointer by arranging call back function in bluetooth procedures.The generation process of telecommunications data bag may is that the first equipment generates telecommunications data bag according to bluetooth data packets by BNEP Network Encapsulation Protocol.The BNEP (Network Encapsulation Protocol) that bluetooth special interest group (SIG) formulates can provide the interface being similar to Ethernet to upper strata IP agreement, and the procotol supporting IEEE802.3/Ethernet encapsulation is all supported.BNEP is used on blue tooth radio network transmit ether bag, and the BNEP packet header of BNEP bag replaces the packet header of ether bag, and the text wrapped is constant, is then transmitted by bluetooth L2CAP protocol layer.Therefore, telecommunications data bag can be network packet based on ICP/IP protocol.Additionally, telecommunications data bag can also be network packet based on wap protocol, this is because the first equipment and the second equipment can connect WAP network by the SIM configured, and realize the first equipment and the telecommunication of the second equipment, thus realize the transmission of message synchronization data.Telecommunications data bag needs to be sent to the second equipment, thus unique mark of the second equipment SIM, the communicating number of the SIM that the such as second equipment is configured or the international mobile subscriber identity (IMSI) of communicating number should be included in telecommunications data bag.Therefore, telecommunications data can include communicating number or the international mobile subscriber identity of communicating number of SIM that IM data and the second equipment configured.Certainly, unique network address corresponding to communicating number identifying the SIM that second equipment that can also is that is configured of the second equipment SIM.
Step S160: telecommunications data bag is sent to the second equipment by Relay Server by the first equipment.Relay Server can be the server of common carrier (including virtual operator, lower same), for processing the network service between each communicating number.Therefore, telecommunications data bag includes unique mark of the SIM of the second equipment, and IM data entrained in telecommunications data bag just can be sent to the IM client that the second equipment is corresponding.After the IM client that second equipment is corresponding receives telecommunications data bag, i.e. telecommunications data bag can be resolved and obtains IM data, thus synchronization message.
The method that a kind of first equipment presented below receives synchronization message from the second equipment, equally, first equipment and the second equipment can configure respective SIM and mutually remote data communication, the first equipment and the second equipment should can first pass through Bluetooth pairing and binding in advance, does not repeats them here.
Figure 2It it is first equipment method flow from the second equipment reception synchronization message of an embodimentFigure.A kind of method that first equipment receives synchronization message from the second equipment, comprises the steps S210~S240.
Step S210: the first equipment receives, by Relay Server, the telecommunications data bag that the second equipment sends.First equipment can receive the telecommunications data from the second equipment by its SIM.
Telecommunications data bag can be network packet based on wap protocol, this is because the first equipment and the second equipment can connect WAP network by the SIM configured, and realize the first equipment and the telecommunication of the second equipment, thus realize the transmission of message synchronization data.Telecommunications data bag needs to be sent to the first equipment, thus unique mark of the first equipment SIM, the communicating number of the SIM that the such as first equipment is configured or the international mobile subscriber identity (IMSI) of communicating number should be included in telecommunications data bag.Therefore, telecommunications data can include communicating number or the international mobile subscriber identity of communicating number of SIM that IM data and the first equipment configured.Certainly, unique network address corresponding to communicating number identifying the SIM that first equipment that can also is that is configured of the first equipment SIM.
After first equipment gets telecommunications data bag, perform step S220.
Step S220: the first equipment generates bluetooth data packets according to telecommunications data bag.
Restriction due to IM client, the IM client of the first equipment needs to obtain, from IM interactive module, the IM data that the IM client of the second equipment is sent, it is thus desirable to the IM data of acquisition are generated bluetooth data packets in IM interactive module again, in order to the IM client of the first equipment resolves this bluetooth data packets in IM interactive module and obtains IM data therein.
In bluetooth data packets, in addition to the IM data of the second equipment, it should including the destination address of transmission, therefore bluetooth data packets can include IM data and the physical address of the first equipment.
With the first equipment as the second equipment sends the method for synchronization message, IM data can be understood as the message synchronization data that the second equipment sends to the first equipment, for making the IM client of the first equipment according to its synchronization message.Therefore, IM data can also include the configuration data of the second equipment I M client, for making the IM client of the first equipment synchronize configuration data according to it.
First equipment generates bluetooth data packets according to telecommunications data bag and is specifically as follows: the first equipment resolves telecommunications data bag and obtains IM data therein, and the first equipment is according to IM data genaration bluetooth data packets.After telecommunications data bag being resolved and obtain IM data therein based on wap protocol, based on Bluetooth protocol, IM data are packaged, generate bluetooth data packets.It is mutual that Bluetooth protocol herein can include that IP agreement that bluetooth network encapsulation protocol BNEP, BNEP agreement combine in Bluetooth protocol, TCP/UDP agreement can realize with telecommunication network in bluetooth applications.
First equipment can perform the above-mentioned step generating bluetooth data packets according to telecommunications data bag by arranging call back function in bluetooth procedures to be called by function pointer.The generation process of bluetooth data packets may is that the first equipment generates bluetooth data packets according to telecommunications data bag by BNEP Network Encapsulation Protocol.The BNEP (Network Encapsulation Protocol) that bluetooth special interest group (SIG) formulates can provide the interface being similar to Ethernet to upper strata IP agreement, and the procotol supporting IEEE802.3/Ethernet encapsulation is all supported.BNEP is used on blue tooth radio network transmit ether bag, and the BNEP packet header of BNEP bag replaces the packet header of ether bag, and the text wrapped is constant, is then transmitted by bluetooth L2CAP protocol layer.Therefore, telecommunications data bag can also is that network packet based on ICP/IP protocol.
Step S230: the first equipment resolves bluetooth data packets and obtains IM data therein.
The IM client of the first equipment needs to obtain IM data from IM interactive module, it is therefore desirable to resolve bluetooth data packets, to parse IM data therein.
Step S240: the first device transmission IM data are to the machine IM client (the IM client of the first equipment).After parsing IM data, IM data are transferred to the first equipment I M client and carry out message synchronization.
Above-mentioned first equipment receives, from the second equipment, the method that the method for synchronization message broadly falls into message synchronization to method and first equipment of the second equipment transmission synchronization message.The method receiving synchronization message to method and first equipment of the second equipment transmission synchronization message from the second equipment by above-mentioned first equipment, the message synchronization between the first equipment and the second equipment can be realized, avoid wearable device (the i.e. first equipment) departing from the scope with intelligent terminal's (the i.e. second equipment) short-range communication just cannot the problem of instant messaging, enhance the convenience of instant messaging.
The method sending synchronization message to the second equipment based on above-mentioned first equipment, the present invention also provides for a kind of device (the i.e. first equipment) sending synchronization message to the second equipment, this device and the second equipment can configure respective SIM can mutual telecommunication, this device (the hereinafter referred to as first equipment) including: IM interactive module the 100, first modular converter the 200, second modular converter 300, bluetooth interactive module 400, it is judged that module 500 and remote interaction module 600.Figure 3It it is the module signal of the first equipment of an embodimentFigure
IM interactive module 100 is for receiving the IM data of the machine IM client transmissions, first modular converter 200 is for according to IM data genaration bluetooth data packets, second modular converter 300 is for generating telecommunications data bag according to bluetooth data packets, bluetooth interactive module 400 is connected and mutual with the bluetooth between the second equipment for realization, judge module 500 is for judging the bluetooth connection status between bluetooth interactive module 400 and the second equipment, and remote interaction module 600 is for being sent to the second equipment by telecommunications data bag by Relay Server.
IM interactive module 100 receives the IM data of the machine IM client transmissions.The instant message received or send, when receiving or send instant message, is packaged into IM data by the machine IM client.IM data can be understood as message synchronization data, for making the IM client of the second equipment according to its synchronization message.Therefore, IM data can also include the configuration data of the first equipment I M client, for making the IM client of the second equipment synchronize configuration data according to it.The operation system of the first equipment obtains IM data from the machine IM client.
First modular converter 200 is according to IM data genaration bluetooth data packets.The operation system of the first equipment is after the machine IM client obtains IM data, and according to acquired IM data, encapsulation generates bluetooth data packets.In bluetooth data packets, it should also including the destination address of transmission, therefore bluetooth data packets can include IM data and the physical address of the second equipment.
Judge module 500 judges the bluetooth connection status between bluetooth interactive module 400 and the second equipment.When bluetooth connection status between bluetooth interactive module 400 and the second equipment meets pre-conditioned, the second modular converter 300 generates telecommunications data bag according to bluetooth data packets.When bluetooth connection status between bluetooth interactive module 400 and the second equipment does not meets pre-conditioned, bluetooth data packets is sent to the second equipment by bluetooth interface channel by bluetooth interactive module 400.When bluetooth connection status between bluetooth interactive module 400 and the second equipment does not meets pre-conditioned, show that the bluetooth between bluetooth interactive module 400 with the second equipment is connected well, directly the bluetooth data packets including IM data can be sent to the second equipment by bluetooth interface channel.
Bluetooth connection status is for distinguishing the fine or not degree that bluetooth connects, and signal is crossed overly soft pulse to no connection and shown that the first equipment and the second equipment are too far apart, and is not suitable for transmitting message synchronization data by bluetooth interface channel.Therefore, pre-conditioned can be: bluetooth interactive module 400 and the second equipment are not connected with bluetooth;Or pre-conditioned can be: bluetooth interactive module 400 and the second equipment Bluetooth signal intensity are less than setting intensity level.Bluetooth signal intensity can judge according to the size of RSSI value, and therefore setting intensity level can be the RSSI value set.It is appreciated that the order of the step that judge module 500 judges that the step of bluetooth connection status and the first modular converter 200 generate bluetooth data packets can be exchanged.
When bluetooth connection status between bluetooth interactive module 400 and the second equipment meets pre-conditioned, the second modular converter 300 generates telecommunications data bag according to bluetooth data packets.
When bluetooth connection status between bluetooth interactive module 400 and the second equipment meets pre-conditioned, show that between bluetooth interactive module 400 and the second equipment, bluetooth connection status is the best, need to send message synchronization data by telecommunication passage.Therefore, the second modular converter 300 resolves bluetooth data packets and obtains IM data therein, and according to IM data genaration telecommunications data bag.
The above-mentioned step generating telecommunications data bag according to bluetooth data packets can be performed to be called by function pointer by arranging call back function in bluetooth procedures.The generation process of telecommunications data bag may is that the second modular converter 300 generates telecommunications data bag according to bluetooth data packets by BNEP Network Encapsulation Protocol.The BNEP (Network Encapsulation Protocol) that bluetooth special interest group (SIG) formulates can provide the interface being similar to Ethernet to upper strata IP agreement, and the procotol supporting IEEE802.3/Ethernet encapsulation is all supported.BNEP is used on blue tooth radio network transmit ether bag, and the BNEP packet header of BNEP bag replaces the packet header of ether bag, and the text wrapped is constant, is then transmitted by bluetooth L2CAP protocol layer.Therefore, telecommunications data bag can be network packet based on ICP/IP protocol.
Additionally, telecommunications data bag can also be network packet based on wap protocol, this is because remote interaction module 600 and the second equipment can connect WAP network by the SIM configured, and realize the first equipment and the telecommunication of the second equipment, thus realize the transmission of message synchronization data.Telecommunications data bag needs to be sent to the second equipment, thus unique mark of the second equipment SIM, the communicating number of the SIM that the such as second equipment is configured or the international mobile subscriber identity (IMSI) of communicating number should be included in telecommunications data bag.Therefore, telecommunications data can include communicating number or the international mobile subscriber identity of communicating number of SIM that IM data and the second equipment configured.Certainly, unique network address corresponding to communicating number identifying the SIM that second equipment that can also is that is configured of the second equipment SIM.
Telecommunications data bag is sent to the second equipment by Relay Server by remote interaction module 600.Relay Server can be the server of common carrier, for processing the network service between each communicating number.Therefore, telecommunications data bag includes unique mark of the SIM of the second equipment, and IM data entrained in telecommunications data bag just can be sent to the IM client that the second equipment is corresponding.After the IM client that second equipment is corresponding receives telecommunications data bag, i.e. telecommunications data bag can be resolved and obtains IM data, thus synchronization message.
The method receiving synchronization message from the second equipment based on above-mentioned first equipment, the present invention also provides for a kind of device (the i.e. first equipment) receiving synchronization message from the second equipment.This device (the hereinafter referred to as first equipment) and the second equipment can configure respective SIM can mutual remote data communication.
Figure 3It it is the module signal of the first equipment of an embodimentFigure.Similar with the above-mentioned device to the second equipment transmission synchronization message, the first equipment includes: remote interaction module the 600, second modular converter the 300, first modular converter 200, IM interactive module 100.Remote interaction module 600 is for receiving, by Relay Server, the telecommunications data bag that the second equipment sends, second modular converter 300 is for generating bluetooth data packets according to telecommunications data bag, first modular converter 200 is used for resolving bluetooth data packets and obtaining IM data therein, and IM interactive module 100 is used for transmitting IM data to the machine IM client.
Remote interaction module 600 receives, by Relay Server, the telecommunications data bag that the second equipment sends.First equipment can receive the telecommunications data from the second equipment by its SIM.
Telecommunications data bag can be network packet based on wap protocol, this is because remote interaction module 600 and the second equipment can connect WAP network by the SIM configured, and realize the first equipment and the telecommunication of the second equipment, thus realize the transmission of message synchronization data.Telecommunications data bag needs to be sent to remote interaction module 600, thus unique mark of the first equipment SIM, the communicating number of the SIM that the such as first equipment is configured or the international mobile subscriber identity (IMSI) of communicating number should be included in telecommunications data bag.Therefore, telecommunications data can include communicating number or the international mobile subscriber identity of communicating number of SIM that IM data and the first equipment configured.Certainly, unique network address corresponding to communicating number identifying the SIM that first equipment that can also is that is configured of the first equipment SIM.
After remote interaction module 600 gets telecommunications data bag, the second modular converter 300 generates bluetooth data packets according to telecommunications data bag.
Restriction due to IM client, the IM client of the first equipment needs to obtain, from IM interactive module 100, the IM data that the IM client of the second equipment is sent, it is thus desirable to the IM data of acquisition are generated bluetooth data packets in IM interactive module 100 again, in order to the IM client of the first equipment resolves this bluetooth data packets in IM interactive module 100 and obtains IM data therein.
In bluetooth data packets, in addition to the IM data of the second equipment, it should including the destination address of transmission, therefore bluetooth data packets can include IM data and the physical address of the first equipment.
With the first equipment as the second equipment sends the device of synchronization message, IM data can be understood as the message synchronization data that the second equipment sends to the first equipment, for making the IM client of the first equipment according to its synchronization message.Therefore, IM data can also include the configuration data of the second equipment I M client, for making the IM client of the first equipment synchronize configuration data according to it.
Second modular converter 300 generates bluetooth data packets according to telecommunications data bag and is specifically as follows: resolves telecommunications data bag and obtains IM data therein, according to IM data genaration bluetooth data packets.After telecommunications data bag being resolved and obtain IM data therein based on wap protocol, based on Bluetooth protocol, IM data are packaged, generate bluetooth data packets.It is mutual that Bluetooth protocol herein can include that IP agreement that bluetooth network encapsulation protocol BNEP, BNEP agreement combine in Bluetooth protocol, TCP/UDP agreement can realize with telecommunication network in bluetooth applications.
The above-mentioned step generating bluetooth data packets according to telecommunications data bag can be performed to be called by function pointer by arranging call back function in bluetooth procedures.The generation process of bluetooth data packets may is that the second modular converter 300 generates bluetooth data packets according to telecommunications data bag by BNEP Network Encapsulation Protocol.The BNEP (Network Encapsulation Protocol) that bluetooth special interest group (SIG) formulates can provide the interface being similar to Ethernet to upper strata IP agreement, and the procotol supporting IEEE802.3/Ethernet encapsulation is all supported.BNEP is used on blue tooth radio network transmit ether bag, and the BNEP packet header of BNEP bag replaces the packet header of ether bag, and the text wrapped is constant, is then transmitted by bluetooth L2CAP protocol layer.Therefore, telecommunications data bag can also is that network packet based on TCP/IP agreement.
First modular converter 200 resolves bluetooth data packets and obtains IM data therein.The IM client of the first equipment needs to obtain IM data from IM interactive module 100, it is therefore desirable to resolve bluetooth data packets, to parse IM data therein.
IM interactive module 100 transmits IM data to the machine IM client (the IM client of the first equipment).After parsing IM data, IM data are transferred to the first equipment I M client and carry out message synchronization.
Above-mentioned first equipment broadly falls into the device of message synchronization to device and first equipment of the second equipment transmission synchronization message from the device of the second equipment reception synchronization message.Above-mentioned first equipment receives the device of synchronization message to device and first equipment of the second equipment transmission synchronization message from the second equipment, the message synchronization between the first equipment and the second equipment can be realized, avoid wearable device (the i.e. first equipment) departing from the scope with intelligent terminal's (the i.e. second equipment) short-range communication just cannot the problem of instant messaging, enhance the convenience of instant messaging.
The present invention also provides for a kind of portable multifunction device,Such as figure 4Shown in, for convenience of description, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, refer to embodiment of the present invention sideMethod portionPoint.This terminal can be to include mobile phone, panel computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), the arbitrarily terminal unit such as vehicle-mounted computer, as a example by terminal is as mobile phone:
Figure 4It is illustrated that the frame of the part-structure of the mobile phone relevant to the terminal that the embodiment of the present invention providesFigure.ReferenceFigure 4Mobile phone includes: the parts such as RF circuit 510, memorizer 520, input block 530, display unit 540, sensor 550, voicefrequency circuit 560, Wireless Fidelity (wireless fidelity, WiFi) module 570, processor 580 and power supply 590.It will be understood by those skilled in the art thatFigure 4Shown in handset structure be not intended that the restriction to mobile phone, can include ratioDiagramMore or less of parts, or combine some parts, or different parts are arranged.
Below in conjunction withFigure 4Each component parts of mobile phone is carried out concrete introduction:
RF circuit 510 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, processes to processor 580;It addition, be sent to base station by designing up data.Generally, RF circuit 510 includes but not limited to antenna, at least one amplifier, transceiver, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuit 510 can also be communicated with network and other equipment by radio communication.nullAbove-mentioned radio communication can use arbitrary communication standard or agreement,Include but not limited to global system for mobile communications (Global System of Mobile communication,GSM)、General packet radio service (General Packet Radio Service,GPRS)、CDMA (Code Division Multiple Access,CDMA)、WCDMA (Wideband Code Division Multiple Access,WCDMA)、Long Term Evolution (Long Term Evolution,LTE)、Email、Short Message Service (Short Messaging Service,SMS) etc..
Memorizer 520 can be used for storing software program and module, and processor 580 is stored in software program and the module of memorizer 520 by operation, thus performs the application of various functions and the data process of mobile phone.Memorizer 520 can mainly include storing program area and storage data field, and wherein, storage program area can store the application program (such as sound-playing function, image player function etc.) etc. needed for operating system, at least one function;Storage data field can store the data (such as voice data, phone directory etc.) etc. that the use according to mobile phone is created.Additionally, memorizer 520 can include high-speed random access memory, it is also possible to include nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 530 can be used for receiving numeral or the character information of input, and produces the key signals input relevant with the user setup of mobile phone and function control.Specifically, input block 530 can include contact panel 531 and other input equipments 532.Contact panel 531, also referred to as touch screen, can collect user thereon or neighbouring touch operation (such as user use any applicable object such as finger, stylus orAdnexaOperation on contact panel 531 or near contact panel 531), and drive corresponding attachment means according to formula set in advance.Optionally, contact panel 531 can include touch detecting apparatus and two parts of touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect the signal that touch operation brings, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 580, and can receive order that processor 580 sends and be performed.Furthermore, it is possible to use the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize contact panel 531.Except contact panel 531, input block 530 can also include other input equipments 532.Specifically, one or more during other input equipments 532 can include but not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 540 can be used for showing the information inputted by user or the information being supplied to user and the various menus of mobile phone.Display unit 540 can include display floater 541, optionally, the form such as liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) can be used to configure display floater 541.Further, contact panel 531 can cover display floater 541, when contact panel 531 detects thereon or after neighbouring touch operation, send processor 580 to determine the type of touch event, on display floater 541, provide corresponding visual output with preprocessor 580 according to the type of touch event.AlthoughFigure 4In, contact panel 531 and display floater 541 are as twoIndependentParts realize input and the input function of mobile phone, but in some embodiments it is possible to by integrated to contact panel 531 and display floater 541 and realize input and the output function of mobile phone.
Mobile phone may also include at least one sensor 550, such as optical sensor, motion sensor and other sensors.Specifically, optical sensor can include ambient light sensor and proximity transducer, and wherein, ambient light sensor can regulate the brightness of display floater 541 according to the light and shade of ambient light, proximity transducer can cut out display floater 541 and/or backlight when mobile phone moves in one's ear.One as motion sensor, accelerometer sensor can detect the size of (generally three axles) acceleration in all directions, can detect that size and the direction of gravity time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as pedometer, percussion) etc.;Other sensors such as the gyroscope that can also configure as mobile phone, barometer, drimeter, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 560, speaker 561, microphone 562 can provide the audio interface between user and mobile phone.The signal of telecommunication after the voice data conversion that voicefrequency circuit 560 can will receive, is transferred to speaker 561, speaker 561 is converted to acoustical signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 562, voice data is converted to after being received by voicefrequency circuit 560, after again voice data output processor 580 being processed, through RF circuit 510 to be sent to such as another mobile phone, or voice data is exported to memorizer 520 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 570, browse webpage and access streaming video etc., and it has provided the user wireless broadband internet and has accessed.AlthoughFigure 4Show WiFi module 570, but it is understood that, it is also not belonging to must be configured into of mobile phone, can omit in not changing the scope of essence of invention as required completely.
Processor 580 is the control centre of mobile phone, utilize various interface and the various piece of the whole mobile phone of connection, it is stored in the software program in memorizer 520 and/or module by running or performing, and call the data being stored in memorizer 520, perform the various functions of mobile phone and process data, thus mobile phone is carried out integral monitoring.Optionally, processor 580 can include one or more processing unit;Preferably, processor 580 can integrated application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.It is understood that above-mentioned modem processor can not also be integrated in processor 580.
Mobile phone also includes the power supply 590 (such as battery) powered to all parts, preferably, power supply can be logically contiguous with processor 580 by power-supply management system, thus realized the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone can also include photographic head, bluetooth module etc., does not repeats them here.
In embodiments of the present invention, the processor 580 included by this terminal has execution following steps S110~the function of S160, incorporated by reference toFigure 1
Step S110: the first equipment receives the IM data of the machine IM client transmissions.
The instant message received or send, when receiving or send instant message, is packaged into IM data by the machine IM client.IM data can be understood as message synchronization data, for making the IM client of the second equipment according to its synchronization message.Therefore, IM data can also include the configuration data of the first equipment I M client, for making the IM client of the second equipment synchronize configuration data according to it.The operation system of the first equipment obtains IM data from the machine IM client.
Step S120: the first equipment is according to IM data genaration bluetooth data packets.
The operation system of the first equipment is after the machine IM client obtains IM data, and according to acquired IM data, encapsulation generates bluetooth data packets.In bluetooth data packets, it should also including the destination address of transmission, therefore bluetooth data packets can include IM data and the physical address of the second equipment.
Step S130: judge the bluetooth connection status between the first equipment and the second equipment.
When bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, perform step S140.When bluetooth connection status between the first equipment and the second equipment does not meets pre-conditioned, perform step S150.Step S150: bluetooth data packets is sent to the second equipment by bluetooth interface channel by the first equipment.When bluetooth connection status between first equipment and the second equipment does not meets pre-conditioned, show that the bluetooth between the first equipment and the second equipment connects good, directly the bluetooth data packets including IM data can be sent to the second equipment by bluetooth interface channel.
Bluetooth connection status is for distinguishing the fine or not degree that bluetooth connects, and signal is crossed overly soft pulse to no connection and shown that the first equipment and the second equipment are too far apart, and is not suitable for transmitting message synchronization data by bluetooth interface channel.Therefore, pre-conditioned can be: the first equipment and the second equipment are not connected with bluetooth;Or pre-conditioned can be: the first equipment and the second equipment Bluetooth signal intensity are less than setting intensity level.Bluetooth signal intensity can judge according to the size of RSSI value, and therefore setting intensity level can be the RSSI value set.It is appreciated that step S120 and step S130 can exchange order.When bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, perform step S140.
Step S140: the first equipment generates telecommunications data bag according to bluetooth data packets.
When bluetooth connection status between the first equipment and the second equipment meets pre-conditioned, show that between the first equipment and the second equipment, bluetooth connection status is the best, need to send message synchronization data by telecommunication passage.Therefore, the first equipment resolves bluetooth data packets and obtains IM data therein, and according to IM data genaration telecommunications data bag.
The above-mentioned step generating telecommunications data bag according to bluetooth data packets can be performed to be called by function pointer by arranging call back function in bluetooth procedures.The generation process of telecommunications data bag may is that the first equipment generates telecommunications data bag according to bluetooth data packets by BNEP Network Encapsulation Protocol.The BNEP (Network Encapsulation Protocol) that bluetooth special interest group (SIG) formulates can provide the interface being similar to Ethernet to upper strata IP agreement, and the procotol supporting IEEE802.3/Ethernet encapsulation is all supported.BNEP is used on blue tooth radio network transmit ether bag, and the BNEP packet header of BNEP bag replaces the packet header of ether bag, and the text wrapped is constant, is then transmitted by bluetooth L2CAP protocol layer.Therefore, telecommunications data bag can be network packet based on ICP/IP protocol.
Additionally, telecommunications data bag can also be network packet based on wap protocol, this is because the first equipment and the second equipment can connect WAP network by the SIM configured, and realize the first equipment and the telecommunication of the second equipment, thus realize the transmission of message synchronization data.Telecommunications data bag needs to be sent to the second equipment, thus unique mark of the second equipment SIM, the communicating number of the SIM that the such as second equipment is configured or the international mobile subscriber identity (IMSI) of communicating number should be included in telecommunications data bag.Therefore, telecommunications data can include communicating number or the international mobile subscriber identity of communicating number of SIM that IM data and the second equipment configured.Certainly, unique network address corresponding to communicating number identifying the SIM that second equipment that can also is that is configured of the second equipment SIM.
Step S160: telecommunications data bag is sent to the second equipment by Relay Server by the first equipment.Relay Server can be the server of common carrier, for processing the network service between each communicating number.Therefore, telecommunications data bag includes unique mark of the SIM of the second equipment, and IM data entrained in telecommunications data bag just can be sent to the IM client that the second equipment is corresponding.After the IM client that second equipment is corresponding receives telecommunications data bag, i.e. telecommunications data bag can be resolved and obtains IM data, thus synchronization message.
In embodiments of the present invention, processor 580 included by this terminal or there is execution following steps S210~the function of S240, incorporated by reference toFigure 2
Step S210: the first equipment receives, by Relay Server, the telecommunications data bag that the second equipment sends.First equipment can receive the telecommunications data from the second equipment by its SIM.
Telecommunications data bag can be network packet based on wap protocol, this is because the first equipment and the second equipment can connect WAP network by the SIM configured, and realize the first equipment and the telecommunication of the second equipment, thus realize the transmission of message synchronization data.Telecommunications data bag needs to be sent to the first equipment, thus unique mark of the first equipment SIM, the communicating number of the SIM that the such as first equipment is configured or the international mobile subscriber identity (IMSI) of communicating number should be included in telecommunications data bag.Therefore, telecommunications data can include communicating number or the international mobile subscriber identity of communicating number of SIM that IM data and the first equipment configured.Certainly, unique network address corresponding to communicating number identifying the SIM that first equipment that can also is that is configured of the first equipment SIM.
After first equipment gets telecommunications data bag, perform step S220.
Step S220: the first equipment generates bluetooth data packets according to telecommunications data bag.
Restriction due to IM client, the IM client of the first equipment needs to obtain, from IM interactive module, the IM data that the IM client of the second equipment is sent, it is thus desirable to the IM data of acquisition are generated bluetooth data packets in IM interactive module again, in order to the IM client of the first equipment resolves this bluetooth data packets in IM interactive module and obtains IM data therein.
In bluetooth data packets, in addition to the IM data of the second equipment, it should including the destination address of transmission, therefore bluetooth data packets can include IM data and the physical address of the first equipment.
With the first equipment as the second equipment sends the method for synchronization message, IM data can be understood as the message synchronization data that the second equipment sends to the first equipment, for making the IM client of the first equipment according to its synchronization message.Therefore, IM data can also include the configuration data of the second equipment I M client, for making the IM client of the first equipment synchronize configuration data according to it.
First equipment generates bluetooth data packets according to telecommunications data bag and is specifically as follows: the first equipment resolves telecommunications data bag and obtains IM data therein, and the first equipment is according to IM data genaration bluetooth data packets.After telecommunications data bag being resolved and obtain IM data therein based on wap protocol, based on Bluetooth protocol, IM data are packaged, generate bluetooth data packets.It is mutual that Bluetooth protocol herein can include that IP agreement that bluetooth network encapsulation protocol BNEP, BNEP agreement combine in Bluetooth protocol, TCP/UDP agreement can realize with telecommunication network in bluetooth applications.
First equipment can perform the above-mentioned step generating bluetooth data packets according to telecommunications data bag by arranging call back function in bluetooth procedures to be called by function pointer.The generation process of bluetooth data packets may is that the first equipment generates bluetooth data packets according to telecommunications data bag by BNEP Network Encapsulation Protocol.The BNEP (Network Encapsulation Protocol) that bluetooth special interest group (SIG) formulates can provide the interface being similar to Ethernet to upper strata IP agreement, and the procotol supporting IEEE802.3/Ethernet encapsulation is all supported.BNEP is used on blue tooth radio network transmit ether bag, and the BNEP packet header of BNEP bag replaces the packet header of ether bag, and the text wrapped is constant, is then transmitted by bluetooth L2CAP protocol layer.Therefore, telecommunications data bag can also is that network packet based on ICP/IP protocol.
Step S230: the first equipment resolves bluetooth data packets and obtains IM data therein.
The IM client of the first equipment needs to obtain IM data from IM interactive module, it is therefore desirable to resolve bluetooth data packets, to parse IM data therein.
Step S240: the first device transmission IM data are to the machine IM client (the IM client of the first equipment).After parsing IM data, IM data are transferred to the first equipment I M client and carry out message synchronization.
In traditional instant messaging, when intelligent terminal and wearable device carry out message synchronization, IM data need to interact between the two through short-range communication, therefore there is the problem that convenience is poor.In the case of the IM data of IM client transmission cannot be changed, it may be considered that be modified in IM data carry out the process (sending and receive the process of synchronization message) of tradition short-range communication.
Based on the process sending synchronization message, above-mentioned first equipment sends the method for synchronization message, device and portable multifunction device to the second equipment, (the first equipment) receives the IM data of the machine IM client transmissions, according to IM data genaration bluetooth data packets, generate telecommunications data bag according to bluetooth data packets, telecommunications data bag is sent to the second equipment by Relay Server;In above-mentioned processing procedure, after IM data genaration bluetooth data packets, IM data parsing in bluetooth data packets out and is encapsulated as telecommunications data bag by the first equipment again, and it is sent to the second equipment by Relay Server, thus realize the first equipment and the message synchronization of the second equipment, avoid wearable device (the i.e. first equipment) departing from the scope with intelligent terminal's (the i.e. second equipment) short-range communication just cannot the problem of instant messaging, enhance the convenience of instant messaging.It should be noted that the first equipment and the second equipment can configure respective SIM and can mutual telecommunication, it is achieved thereby that the first equipment and second equipment telecommunication by Relay Server.
In like manner, based on the process receiving synchronization message, the method that above-mentioned first equipment receives synchronization message from the second equipment, device, first equipment receives, from Relay Server, the telecommunications data bag that the second equipment sends, bluetooth data packets is generated according to telecommunications data bag, resolve bluetooth data packets again and obtain IM data therein, then transmission IM data are to the machine IM client, thus realize the first equipment and the message synchronization of the second equipment, avoiding wearable device (the i.e. first equipment) just cannot the problem of instant messaging departing from the scope with intelligent terminal's (the i.e. second equipment) short-range communication, enhance the convenience of instant messaging.
Although it should be understood thatFigure 1 2Flow processIn figureEach step show successively according to the instruction of arrow, but these steps are not inevitable to perform successively according to the order of arrow instruction.Unless expressly stated otherwise herein, the strictest order that performs of these steps limits, and it can perform in the other order.And,Figure 1 2In at least some of step can include many sub-steps or multiple stage, these sub-steps or stage are not necessarily to have performed at synchronization, but can perform in the different moment, its execution sequence is also not necessarily and carries out successively, but can perform in turn or alternately with other steps or the sub-step of other steps or at least some of of stage.
Below it is only the some embodiments of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (10)

1. the method that an equipment sends synchronization message to the second equipment, it is characterised in that institute State the first equipment and the second equipment can configure respective subscriber identification card can be the most long-range Data communication, described method comprises the steps:
First equipment receives the IM data of the machine IM client transmissions;
First equipment is according to described IM data genaration bluetooth data packets;
First equipment generates telecommunications data bag according to described bluetooth data packets;
Described telecommunications data bag is sent to the second equipment by Relay Server by the first equipment.
The method that first equipment the most according to claim 1 sends synchronization message to the second equipment, It is characterized in that, before the first equipment generates telecommunications data bag according to described bluetooth data packets, also Judge the bluetooth connection status between the first equipment and the second equipment, when the first equipment and the second equipment it Between bluetooth connection status when meeting pre-conditioned, the first equipment generates remote according to described bluetooth data packets Journey communication data packet.
The method that first equipment the most according to claim 2 sends synchronization message to the second equipment, It is characterized in that, the bluetooth connection status between the first equipment and the second equipment meets pre-conditioned Time, the first equipment performs step by call back function: generate telecommunication according to described bluetooth data packets Packet.
The method that first equipment the most according to claim 2 sends synchronization message to the second equipment, It is characterized in that, the bluetooth connection status between the first equipment and the second equipment meets pre-conditioned Time, the first equipment generates telecommunication according to described bluetooth data packets by BNEP Network Encapsulation Protocol Packet.
The method that first equipment the most according to claim 2 sends synchronization message to the second equipment, It is characterized in that, the bluetooth connection status between the first equipment and the second equipment does not meets pre-conditioned Time, described bluetooth data packets is sent to the second equipment by bluetooth interface channel by the first equipment.
6. send synchronization message according to the first equipment described in claim 2 or 5 to the second equipment Method, it is characterised in that described pre-conditioned be: the first equipment and the second equipment are not connected with bluetooth.
7. send synchronization message according to the first equipment described in claim 2 or 5 to the second equipment Method, it is characterised in that described pre-conditioned be: the first equipment and the second equipment Bluetooth signal intensity Less than setting intensity level.
The method that first equipment the most according to claim 1 sends synchronization message to the second equipment, It is characterized in that, described telecommunications data bag is the network based on wap protocol or ICP/IP protocol Packet.
9. one kind to second equipment send synchronization message device, it is characterised in that described device and Second equipment can configure respective subscriber identification card and can mutual remote data communication, described Device includes:
IM interactive module, for receiving the IM data of the machine IM client transmissions;
First modular converter, for according to described IM data genaration bluetooth data packets;
Second modular converter, for generating telecommunications data bag according to described bluetooth data packets;And
Remote interaction module, for being sent to the by described telecommunications data bag by Relay Server Two equipment.
10. a portable multifunction device, it is characterised in that described portable multifunction device and Second equipment can configure respective subscriber identification card and can mutual remote data communication, its bag Include:
Touch-sensitive display;
One or more processors;
Memorizer;
One or more application programs, wherein said one or more application programs be stored in described in deposit In reservoir and be configured to be performed by the one or more processor, the one or more program is joined Put for:
Receive the IM data of the machine IM client transmissions;
According to described IM data genaration bluetooth data packets;
Telecommunications data bag is generated according to described bluetooth data packets;
Described telecommunications data bag is sent to the second equipment by Relay Server.
CN201610239114.0A 2016-04-18 2016-04-18 The method and apparatus that first equipment sends synchronization message to the second equipment Active CN105933204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610239114.0A CN105933204B (en) 2016-04-18 2016-04-18 The method and apparatus that first equipment sends synchronization message to the second equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610239114.0A CN105933204B (en) 2016-04-18 2016-04-18 The method and apparatus that first equipment sends synchronization message to the second equipment

Publications (2)

Publication Number Publication Date
CN105933204A true CN105933204A (en) 2016-09-07
CN105933204B CN105933204B (en) 2019-06-04

Family

ID=56838360

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610239114.0A Active CN105933204B (en) 2016-04-18 2016-04-18 The method and apparatus that first equipment sends synchronization message to the second equipment

Country Status (1)

Country Link
CN (1) CN105933204B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792437A (en) * 2016-11-23 2017-05-31 奇酷互联网络科技(深圳)有限公司 A kind of method and mobile communication equipment for carrying out client identification module card switching
CN108363592A (en) * 2018-02-05 2018-08-03 深圳壹账通智能科技有限公司 Operation method, device, equipment and the computer readable storage medium of application software
CN109040020A (en) * 2018-06-27 2018-12-18 努比亚技术有限公司 Game data communication means, communication processing equipment, terminal and readable storage medium storing program for executing
CN109067703A (en) * 2018-06-27 2018-12-21 努比亚技术有限公司 Communication means, communication processing equipment, terminal and computer readable storage medium
CN109428851A (en) * 2017-07-06 2019-03-05 高德信息技术有限公司 A kind of data transfer components and method
CN109995938A (en) * 2019-03-15 2019-07-09 努比亚技术有限公司 A kind of notice display methods, mobile phone, wearable device and calculate readable storage medium storing program for executing
CN110049544A (en) * 2018-01-15 2019-07-23 中国移动通信有限公司研究院 A kind of information synchronization method, equipment and computer storage medium
CN114124868A (en) * 2021-11-23 2022-03-01 北京百度网讯科技有限公司 Instant communication method, device, system, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7715873B1 (en) * 2006-06-23 2010-05-11 Sprint Communications Company L.P. Wearable accessories providing visual indicia of incoming events for wireless telecommunications device
CN104363557A (en) * 2014-11-12 2015-02-18 北京国承万通信息科技有限公司 First equipment, communication method of first equipment and second equipment and communication system
CN104780502A (en) * 2014-08-25 2015-07-15 李杨 Portable equipment and anti-lost and positioning method and system thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7715873B1 (en) * 2006-06-23 2010-05-11 Sprint Communications Company L.P. Wearable accessories providing visual indicia of incoming events for wireless telecommunications device
CN104780502A (en) * 2014-08-25 2015-07-15 李杨 Portable equipment and anti-lost and positioning method and system thereof
CN104363557A (en) * 2014-11-12 2015-02-18 北京国承万通信息科技有限公司 First equipment, communication method of first equipment and second equipment and communication system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106792437A (en) * 2016-11-23 2017-05-31 奇酷互联网络科技(深圳)有限公司 A kind of method and mobile communication equipment for carrying out client identification module card switching
CN109428851A (en) * 2017-07-06 2019-03-05 高德信息技术有限公司 A kind of data transfer components and method
CN109428851B (en) * 2017-07-06 2021-08-10 阿里巴巴(中国)有限公司 Data transmission assembly and method
CN110049544A (en) * 2018-01-15 2019-07-23 中国移动通信有限公司研究院 A kind of information synchronization method, equipment and computer storage medium
CN110049544B (en) * 2018-01-15 2022-04-01 中国移动通信有限公司研究院 Information synchronization method, equipment and computer storage medium
CN108363592A (en) * 2018-02-05 2018-08-03 深圳壹账通智能科技有限公司 Operation method, device, equipment and the computer readable storage medium of application software
CN108363592B (en) * 2018-02-05 2021-12-07 深圳壹账通智能科技有限公司 Application software running method, device, equipment and computer readable storage medium
CN109040020A (en) * 2018-06-27 2018-12-18 努比亚技术有限公司 Game data communication means, communication processing equipment, terminal and readable storage medium storing program for executing
CN109067703A (en) * 2018-06-27 2018-12-21 努比亚技术有限公司 Communication means, communication processing equipment, terminal and computer readable storage medium
CN109995938A (en) * 2019-03-15 2019-07-09 努比亚技术有限公司 A kind of notice display methods, mobile phone, wearable device and calculate readable storage medium storing program for executing
CN114124868A (en) * 2021-11-23 2022-03-01 北京百度网讯科技有限公司 Instant communication method, device, system, equipment and storage medium

Also Published As

Publication number Publication date
CN105933204B (en) 2019-06-04

Similar Documents

Publication Publication Date Title
CN105933204A (en) Method and device for enabling first equipment to transmit synchronization message to second equipment
CN109117361B (en) Remote debugging method, related equipment and system for small program
CN104135501B (en) Page sharing method, Apparatus and system
CN104168175B (en) Message group sending method and terminal in instant messaging
CN104426919B (en) Page sharing method, apparatus and system
CN106464363B (en) A kind of wireless communications method, dual-mode terminal and access device
CN105871425A (en) Method for first equipment to receive synchronous message from second equipment and device
CN106686626A (en) Setting method for Wi-Fi roaming and terminal equipment
WO2015035947A1 (en) Method for realizing cellphone without card, cellphone and server
CN109217995A (en) A kind of data processing method, terminal and base station
CN106658623A (en) Hotspot network switching method and terminal equipment
CN109639829A (en) Communication means, communication unit, service support unit and system based on service
CN108307529A (en) A kind of hotspot connection method and its mobile terminal
CN106408995A (en) Information processing method and related device
CN106454975A (en) Hotspot network switching method and terminal equipment
CN104702678B (en) Document transmission method and device
CN108880762A (en) Control method, base station and the device of mixed automatic retransfer feedback
CN105847408A (en) Data synchronization method and device and equipment
CN106332058A (en) Data transmission method and terminal equipment
CN108476441A (en) Cell switching method and terminal device
CN106413032A (en) Hotspot establishing method and terminal equipment
CN109102153A (en) A kind of identity management method and device
CN105897567B (en) A kind of method and device of information sharing
CN106358318A (en) Hotspot building method and terminal equipment
CN104378339B (en) A kind of communication means and device using agency agreement

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant