[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN108512574A - The method and device that mobile terminal is communicated with self-defined 2.4G wireless devices - Google Patents

The method and device that mobile terminal is communicated with self-defined 2.4G wireless devices Download PDF

Info

Publication number
CN108512574A
CN108512574A CN201710112900.9A CN201710112900A CN108512574A CN 108512574 A CN108512574 A CN 108512574A CN 201710112900 A CN201710112900 A CN 201710112900A CN 108512574 A CN108512574 A CN 108512574A
Authority
CN
China
Prior art keywords
data packets
self
ble
wireless devices
mobile terminal
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
CN201710112900.9A
Other languages
Chinese (zh)
Other versions
CN108512574B (en
Inventor
胡商州
尹高伟
刘成
杨清华
孟浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongke Hantianxia Electronics Co Ltd
Original Assignee
Shenzhen Zhongke Hantianxia Electronics 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 Shenzhen Zhongke Hantianxia Electronics Co Ltd filed Critical Shenzhen Zhongke Hantianxia Electronics Co Ltd
Priority to CN201710112900.9A priority Critical patent/CN108512574B/en
Publication of CN108512574A publication Critical patent/CN108512574A/en
Application granted granted Critical
Publication of CN108512574B publication Critical patent/CN108512574B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/72Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for local intradevice communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0072Error control for data other than payload data, e.g. control data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0044Arrangements for allocating sub-channels of the transmission path allocation of payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/003Arrangements for allocating sub-channels of the transmission path
    • H04L5/0053Allocation of signaling, i.e. of overhead other than pilot signals
    • H04L5/0055Physical resource allocation for ACK/NACK
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides a kind of method and device that mobile terminal is communicated with self-defined 2.4G wireless devices.The method includes:Structure carries the first BLE data packets of the first 2.4G data packets in its protocol Data Unit;The first BLE data packets are sent to self-defined 2.4G wireless devices, so that self-defined 2.4G wireless devices can execute corresponding control operation according to the control command entrained by the first 2.4G data packets;Receive the 2nd BLE data packets being carried in the 2nd 2.4G data pack protocol data cells that self-defined 2.4G wireless devices are sent;According to the response command that the 2nd BLE data packets carry, obtains self-defined 2.4G wireless devices and the response of control command is operated;Wherein, the protocol Data Unit of the first 2.4G data packets carries the control command for operating self-defined 2.4G wireless devices, and the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command.The present invention can reduce the power consumption of cost of implementation and self-defined 2.4G wireless devices that self-defined 2.4G wireless devices are controlled by mobile terminal.

Description

The method and device that mobile terminal is communicated with self-defined 2.4G wireless devices
Technical field
The present invention relates to wireless communication technology field more particularly to a kind of mobile terminal and self-defined 2.4G wireless devices are logical The method and device of letter.
Background technology
In recent years, popularizing with mobile terminals such as the rise of the concepts such as smart home and Intelligent hardware and mobile phones, it is various Household appliances and remote-control toy all develop towards intelligent direction, and controlling these household electrical appliances and remote-control toy by mobile phone becomes one kind Fashion.The control method of the products such as air-conditioning, TV, headlamp, remote-control toy mainly passes through remote controller operation, remote controler at present Communication plan mainly have infrared, WIFI, bluetooth and self-defined 2.4G etc., wherein the radio communication system of self-defined 2.4G by Low in chip cost, the features such as scheme is simple, flexible design, occupies important share in household electrical appliances and remote-control toy control field.Specifically Ground needs to configure 2.4G chips in the self-defined 2.4G wireless devices such as household electrical appliance, remote-control toy and remote controler so that remote control Device and self-defined 2.4G wireless devices realize communication by the radio communication system of self-defined 2.4G, to realize remote controler to making by oneself The control of adopted 2.4G wireless devices.
Become a weight of field development using the self-defined 2.4G wireless devices such as mobile phone operation household electrical appliances and remote-control toy Want trend.Currently, being made by oneself to these using the mobile phone with BLE (Bluetooth Low Energy, low-power consumption bluetooth) function The scheme that adopted 2.4G wireless devices are controlled is:Increase a BLE chip in self-defined 2.4G wireless devices, wherein hand Machine has BLE (Bluetooth Low Energy, low-power consumption bluetooth) function.In this way, mobile phone and self-defined 2.4G wireless devices It is communicated by the communication of BLE, to realize control of the mobile phone to self-defined 2.4G wireless devices.
Wherein, BLE packet structures and 2.4G packet structures difference are as shown in Table 1 and Table 2.
As shown in Table 1, the BLE data packets are by the lead code (Preamble) of 1 byte, the synchronizing address (Sync of 4 bytes Address), the cyclic redundancy check code (CRC) of the protocol Data Unit (PDU) of 2-39 bytes and 3 bytes.
1 BLE packet structures of table
As shown in Table 2, the 2.4G data packets are by the lead code (Preamble) of 1 byte, the synchronizing address of 3-5 bytes The protocol data list of self defined area (vendor defined filed) 0-32 bytes of (Sync Address), 0-3 bytes The cyclic redundancy check code (CRC) of first (PDU) and 0-2 bytes.
2 2.4G packet structures of table
Preamble:Time and Frequency Synchronization, channel estimation and AGC (automatic growth control) for recipient adjust;
Sync Address:Sending device is distinguished for recipient, only receives aerial number identical with oneself synchronizing address According to;
PDU:Payload;
vendor defined filed:2.4G chips manufacturer self defined area;
CRC:For doing data check.
In the implementation of the present invention, inventor has found at least to have the following technical problems in the prior art:
In the prior art, the technical solution of the self-defined 2.4G wireless devices such as household electrical appliances and remote-control toy is controlled using mobile phone to be needed Change the existing hardware scheme of self-defined 2.4G wireless devices, i.e., increases a BLE core in self-defined 2.4G wireless devices Piece, and BLE chips itself there are agreements it is complicated, development difficulty is big, of high cost the shortcomings of so that the reality of existing implementation It is existing of high cost, in addition, due to needing to configure two chips of BLE chips and 2.4G chips in self-defined 2.4G wireless devices, Have the shortcomings that equipment power dissipation is big, user is needed often to replace battery.
Invention content
The method and device that mobile terminal provided by the invention is communicated with self-defined 2.4G wireless devices, without changing certainly The existing hardware scheme in 2.4G wireless devices is defined, the realization for controlling self-defined 2.4G wireless devices by mobile phone can be reduced The power consumption of cost and self-defined 2.4G wireless devices.
In a first aspect, the present invention provides a kind of method that mobile terminal is communicated with self-defined 2.4G wireless devices, it is applied to Mobile terminal, including:
Structure carries the first BLE data of the first 2.4G data packets by whitening processing in its protocol Data Unit Packet;
Whitening processing is carried out to the first BLE data packets;
The first BLE data packets by whitening processing are sent to the self-defined 2.4G wireless devices so that it is described from Corresponding control operation can be executed according to the control command entrained by the first 2.4G data packets by defining 2.4G wireless devices;
Receive being carried in the 2nd 2.4G data pack protocol data cells for the self-defined 2.4G wireless devices transmission 2nd BLE data packets;
According to the response command that the 2nd BLE data packets carry, obtain the self-defined 2.4G wireless devices to institute State the response operation of control command;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control for operating self-defined 2.4G wireless devices System order, the protocol Data Unit of the 2nd BLE data packets carry the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
Optionally, the first 2.4G data packets by whitening processing are carried in its protocol Data Unit in the structure Before first BLE data packets, further include:
Scan the synchronizing address of the self-defined 2.4G wireless devices.
Second aspect, the present invention provide a kind of square law device that mobile terminal is communicated with self-defined 2.4G wireless devices, if It is placed in mobile terminal, including:
First structure module, the first 2.4G data by whitening processing are carried for building in its protocol Data Unit First BLE data packets of packet;
First whitening module, for carrying out whitening processing to the first BLE data packets;
First sending module, it is wireless to the self-defined 2.4G by the first BLE data packets of whitening processing for sending Equipment, so that the self-defined 2.4G wireless devices can be held according to the control command entrained by the first 2.4G data packets The corresponding control operation of row;
First receiving module is carried on the 2nd 2.4G data packets for receive that the self-defined 2.4G wireless devices send The 2nd BLE data packets in protocol Data Unit;
First processing module, the response command for being carried according to the 2nd BLE data packets obtain described self-defined The response to the control command of 2.4G wireless devices operates;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control for operating self-defined 2.4G wireless devices System order, the protocol Data Unit of the 2nd BLE data packets carry the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
Optionally, described device further includes:
Scan module, the synchronizing address for scanning the self-defined 2.4G wireless devices.
The third aspect, the present invention provide a kind of method that mobile terminal is communicated with self-defined 2.4G wireless devices, are applied to Self-defined 2.4G wireless devices, including:
Receive the first 2.4G data being carried in the first BLE data packets by whitening processing that the mobile terminal is sent Packet;
According to the control command that the first 2.4G data packets carry, corresponding control operation is executed;
Structure carries the 2nd 2.4G data of the 2nd BLE data packets by whitening processing in its protocol Data Unit Packet;
The 2nd 2.4G data packets are sent to mobile terminal, so that the mobile terminal is according to the 2nd BLE numbers The response command carried according to packet knows the response operation of the self-defined 2.4G wireless devices;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the operation self-defined 2.4G wireless devices Control command, the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
Optionally, the method further includes:
The synchronizing address of fixed time broadcast itself.
Fourth aspect, the present invention provide a kind of device that mobile terminal is communicated with self-defined 2.4G wireless devices, are set to Self-defined 2.4G wireless devices, including:
Second receiving module passes through albefaction for receiving being carried in the first BLE data packets for mobile terminal transmission First 2.4G data packets of processing;
Second processing module, the control command for being carried according to the first 2.4G data packets execute corresponding control Operation;
Second structure module, the 2nd BLE data by whitening processing are carried for building in its protocol Data Unit 2nd 2.4G data packets of packet;
Second sending module, for sending the 2nd 2.4G data packets to mobile terminal, so that the mobile terminal The response command carried according to the 2nd BLE data packets knows the response operation of the self-defined 2.4G wireless devices;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the operation self-defined 2.4G wireless devices Control command, the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
Optionally, described device further includes:
Broadcast module is used for the synchronizing address of fixed time broadcast itself.
The method and device that mobile terminal provided in an embodiment of the present invention is communicated with self-defined 2.4G wireless devices, structure exist Its protocol Data Unit carries the first BLE data packets of the first 2.4G data packets by whitening processing;To the first BLE Data packet carries out whitening processing;The first BLE data packets by whitening processing are sent to the self-defined 2.4G wireless devices, with Control command of the self-defined 2.4G wireless devices entrained by the first 2.4G data packets is executed corresponding Control operation;Receive being carried in the 2nd 2.4G data pack protocol data cells for the self-defined 2.4G wireless devices transmission The 2nd BLE data packets;According to the response command that the 2nd BLE data packets carry, obtains the self-defined 2.4G and wirelessly set The standby response to the control command operates.It can be seen that the present invention is handled by software, i.e., will be used to operate self-defined The control command of 2.4G wireless devices is carried on the BLE data packets transmitted by mobile terminal in the form of 2.4G packet structures In protocol Data Unit, while the response command of the control command being carried in the form of BLE packet structures self-defined In the protocol Data Unit of 2.4G data packets transmitted by 2.4G wireless devices, to realize mobile terminal and self-defined 2.4G without Communication between line equipment.Compared with prior art, the present invention is not necessarily to change the existing hardware in self-defined 2.4G wireless devices Scheme is not necessarily to increase BLE chips in self-defined 2.4G wireless devices, so that the present invention can be reduced through mobile phone control Make the cost of implementation of self-defined 2.4G wireless devices and the power consumption of self-defined 2.4G wireless devices.
Description of the drawings
Fig. 1 is mobile terminal in the method that one embodiment of the invention mobile terminal is communicated with self-defined 2.4G wireless devices Flow chart;
Fig. 2 is the structural schematic diagram of the first BLE data packets of mobile terminal structure described in above-described embodiment;
Fig. 3 is mobile terminal in the device that one embodiment of the invention mobile terminal is communicated with self-defined 2.4G wireless devices Structural schematic diagram;
Fig. 4 is 2.4G equipment in the method that another embodiment of the present invention mobile terminal is communicated with self-defined 2.4G wireless devices The flow chart at end;
Fig. 5 is the structural schematic diagram of the 2nd 2.4G data packets of 2.4G device builds described in above-described embodiment;
Fig. 6 is 2.4G equipment in the device that another embodiment of the present invention mobile terminal is communicated with self-defined 2.4G wireless devices The structural schematic diagram at end.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill The every other embodiment that personnel are obtained without making creative work, shall fall within the protection scope of the present invention.
Here the theoretical foundation that the present invention can realize is illustrated first:As long as recipient and sender between wireless device It is operated in same frequency point, using identical modulation /demodulation pattern and rate, and synchronizing address having the same and air-data packet Structure, both sides can communicate.
Specifically, it is illustrated by taking this mobile terminal of mobile phone as an example here, the BLE chips in mobile phone can the company of being operated in State is connect, connectionless state can be also operated in.When it is operated in connectionless state, mobile phone can pass through three frequency points: 2402Mhz, 2426Mhz, 2480Mhz transceiving data.Self-defined 2.4G wireless devices can be in the frequency of 2400MHz to 2500Mhz Any one frequency point transceiving data in section.The present invention can select three frequency points of the BLE chip operations in connectionless state In working frequency points of any one frequency point as self-defined 2.4G wireless devices and mobile communication.It the BLE chips of mobile phone and makes by oneself The data of adopted 2.4G wireless devices are all to be modulated demodulation by GFSK modes;The communication speed of the BLE chips of mobile phone is 1Mbps, self-defined 2.4G wireless devices generally all support 2Mbps and 1Mbps communication speeds, and the present invention is wireless by self-defined 2.4G The operating rate of equipment is configured to 1Mbps.
The present invention provides a kind of method that mobile terminal is communicated with self-defined 2.4G wireless devices, is applied to mobile terminal, As shown in Figure 1, the method includes:
S11, structure carry the first BLE numbers of the first 2.4G data packets by whitening processing in its protocol Data Unit According to packet.
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control for operating self-defined 2.4G wireless devices System order.The first 2.4G data packets are built by the application program of mobile terminal, specifically, as shown in Fig. 2, mobile The application program of terminal first communicates control command addition in the domains PDU of the first 2.4G data packets, and according to 2.4G Then CRC Polynomial generations cyclic redundancy check code (CRC) addition in agreement will in the domains CRC of the first 2.4G data packets Lead code (Preamble), synchronizing address (Sync Address) and the self-defined part (vendor of manufacturer of 2.4G data packets Defined filed) it is placed in corresponding domain, finally, the application program of mobile terminal is to the first 2.4G data packets according to BLE Albefaction formula carries out whitening processing, submits to BLE chips, BLE chips can be using the first 2.4G data packets after albefaction as agreement The data configuration of data cell (PDU) goes out the first BLE data packets.
It in specific implementation process, needs to be modified data packet length according to actual conditions, for example, described first The maximum length of the protocol Data Unit of BLE data packets is 39 bytes, and removes protocol data in the first 2.4G data packets It is minimum outside cell mesh to need 6 bytes (i.e. 1 byte of 1 byte of lead code, 4 byte of synchronizing address and cyclic redundancy check code), institute With the length of the protocol Data Unit of the first BLE data packets is 6-39 bytes, the agreement number of the first 2.4G data packets Length according to unit is 0-28 bytes.
S12, whitening processing is carried out to the first BLE data packets.
S13, the first BLE data packets by whitening processing are sent to the self-defined 2.4G wireless devices, so that institute Corresponding control can be executed according to the control command entrained by the first 2.4G data packets by stating self-defined 2.4G wireless devices Operation.
What S14, the reception self-defined 2.4G wireless devices were sent is carried on the 2nd 2.4G data pack protocol data cells In the 2nd BLE data packets.
Wherein, the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command.
S15, the response command carried according to the 2nd BLE data packets, obtain the self-defined 2.4G wireless devices Response operation to the control command.
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
The method and device that mobile terminal provided in an embodiment of the present invention is communicated with self-defined 2.4G wireless devices, by soft Part processing, i.e., be carried on shifting by the control command for operating self-defined 2.4G wireless devices in the form of 2.4G packet structures In the protocol Data Unit of BLE data packets transmitted by dynamic terminal, while by the response command of the control command with BLE data The form of pack arrangement is carried in the protocol Data Unit of the 2.4G data packets transmitted by self-defined 2.4G wireless devices, to real Existing communication between mobile terminal and self-defined 2.4G wireless devices.Compared with prior art, the present invention is self-defined without changing Existing hardware scheme in 2.4G wireless devices is not necessarily to increase BLE chips in self-defined 2.4G wireless devices, so that The present invention can be reduced controls the cost of implementation of self-defined 2.4G wireless devices and self-defined 2.4G wireless devices by mobile phone Power consumption.
In the present embodiment, the executive agent of above-mentioned each step can be the BLE chips or BLE cores of mobile terminal Multiple function modules in piece are executed corresponding step by each function module.Here it is carried out using BLE chips as executive agent It elaborates.Specifically, first, the first 2.4G data packets after BLE chips whitening are according to the CRC multinomials in BLE agreements Cyclic redundancy check code (CRC) is generated, and whitening processing is carried out to PDU and CRC and is placed in corresponding domain, then by BLE lead codes It is placed in the domains Preamble and Sync Address with BLE broadcast synchronizations address, to build the first BLE data packets;So Afterwards, BLE chips carry out whitening processing according to the albefaction formula in BLE agreements to the first BLE data packets, and by whitening processing The first BLE data packets afterwards are sent in the air.Since what is carried in the protocol Data Unit (PDU) in the first BLE data packets is First 2.4G data packets, after albefaction twice, aerial signal complies fully with the condition of acceptance of self-defined 2.4G equipment, so Self-defined 2.4G equipment can be according to Preamble the and Sync Address in the first BLE data pack protocols data cell (PDU) Receive data, and other parts as white noise sonication.
Further, before the step S11, further include:
Scan the synchronizing address of the self-defined 2.4G wireless devices.
The embodiment of the present invention provides a kind of device that mobile terminal is communicated with self-defined 2.4G wireless devices, is set to movement Terminal, as shown in figure 3, described device includes:
First structure module 11, the first 2.4G numbers by whitening processing are carried for building in its protocol Data Unit According to the first BLE data packets of packet;
First whitening module 12, for carrying out whitening processing to the first BLE data packets;
First sending module 13, for sends pass through whitening processing the first BLE data packets to the self-defined 2.4G without Line equipment, so that the self-defined 2.4G wireless devices can be according to the control command entrained by the first 2.4G data packets Execute corresponding control operation;
First receiving module 14 is carried on the 2nd 2.4G data for receive that the self-defined 2.4G wireless devices send The 2nd BLE data packets in packet protocol data cell;
First processing module 15, the response command for being carried according to the 2nd BLE data packets obtain described self-defined The response to the control command of 2.4G wireless devices operates;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control for operating self-defined 2.4G wireless devices System order, the protocol Data Unit of the 2nd BLE data packets carry the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
The device that mobile terminal provided in an embodiment of the present invention is communicated with self-defined 2.4G wireless devices, at software Reason will be carried on movement eventually for operating the control command of self-defined 2.4G wireless devices in the form of 2.4G packet structures In the protocol Data Unit of the transmitted BLE data packets in end, while by the response command of the control command with BLE data inclusions The form of structure is carried in the protocol Data Unit of the 2.4G data packets transmitted by self-defined 2.4G wireless devices, is moved to realize Dynamic communication between terminal and self-defined 2.4G wireless devices.Compared with prior art, the present invention is without changing self-defined 2.4G Existing hardware scheme in wireless device is not necessarily to increase BLE chips in self-defined 2.4G wireless devices, so that this hair The bright work(that can reduce cost of implementation and self-defined 2.4G wireless devices that self-defined 2.4G wireless devices are controlled by mobile phone Consumption.
In the present embodiment, the executive agent of above-mentioned each step can be that multiple function moulds are arranged in BLE baseband chips Block is executed corresponding step by each function module, alternatively, can be the BLE chips of mobile terminal.
Further, described device further includes:
Scan module, the synchronizing address for scanning the self-defined 2.4G wireless devices.
The present invention provides a kind of method that mobile terminal is communicated with self-defined 2.4G wireless devices, is applied to self-defined 2.4G Wireless device, as shown in figure 4, the method includes:
S21, the first 2.4G being carried in the first BLE data packets by whitening processing that the mobile terminal is sent is received Data packet.
Wherein, the protocol Data Unit of the first 2.4G data packets carries the operation self-defined 2.4G wireless devices Control command.
S22, the control command carried according to the first 2.4G data packets execute corresponding control operation.
S23, structure carry the 2nd 2.4G numbers of the 2nd BLE data packets by whitening processing in its protocol Data Unit According to packet.
Wherein, the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command.
The structural schematic diagram of the 2nd 2.4G data packets, as shown in figure 5, described in self-defined 2.4G wireless builds Two BLE data packets specifically first, in accordance with the corresponding CRC of CRC Polynomial generation response command sequences in BLE agreements and add Be added in after response command, and whitening processing carried out according to the albefaction formula in BLE agreements, then by the Preamble of BLE and Sync Address are placed in after whitening processing before sequence, have thus constructed the 2nd BLE data packets.
Then, the 2nd 2.4G data packets described in self-defined 2.4G wireless builds, specifically, first by described second BLE data packets are added in protocol Data Unit, and Preamble the and Sync Address of 2.4G are then added in the front, and According to CRC Polynomial generations CRC additions in 2.4G agreements after protocol Data Unit.
As shown in figure 5, since the maximum length of the protocol Data Unit of the 2nd 2.4G data packets is 32 bytes, and institute It states and removes 8 bytes of minimum needs outside Protocol Data Units Section in the 2nd BLE data packets, and the minimum length of protocol Data Unit For 2 bytes, so, the length of the protocol Data Unit of the 2nd 2.4G data packets is 10-32 bytes, the 2nd BLE numbers Length according to the protocol Data Unit of packet is 2-24 bytes.
S24, the 2nd 2.4G data packets are sent to mobile terminal, so that the mobile terminal is according to described second The response command that BLE data packets carry knows the response operation of the self-defined 2.4G wireless devices.
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
The method that mobile terminal provided in an embodiment of the present invention is communicated with self-defined 2.4G wireless devices, at software Reason will be carried on movement eventually for operating the control command of self-defined 2.4G wireless devices in the form of 2.4G packet structures In the protocol Data Unit of the transmitted BLE data packets in end, while by the response command of the control command with BLE data inclusions The form of structure is carried in the protocol Data Unit of the 2.4G data packets transmitted by self-defined 2.4G wireless devices, is moved to realize Dynamic communication between terminal and self-defined 2.4G wireless devices.Compared with prior art, the present invention is without changing self-defined 2.4G Existing hardware scheme in wireless device is not necessarily to increase BLE chips in self-defined 2.4G wireless devices, so that this hair The bright work(that can reduce cost of implementation and self-defined 2.4G wireless devices that self-defined 2.4G wireless devices are controlled by mobile phone Consumption.
In this embodiment, due to the protocol Data Unit of the 2nd 2.4G data packets transmitted by self-defined 2.4G wireless devices Meet the BLE broadcast packets of BLE protocol specifications, so, the BLE chips of mobile terminal can be by its protocol Data Unit Preamble and Sync Address receive data, and other parts as white noise sonication.
Further, the method further includes:
The synchronizing address of fixed time broadcast itself.
The embodiment of the present invention provides a kind of device that mobile terminal is communicated with self-defined 2.4G wireless devices, is set to and makes by oneself Adopted 2.4G wireless devices, as shown in fig. 6, described device includes:
Second receiving module 21 passes through in vain for receiving being carried in the first BLE data packets for mobile terminal transmission Change the first 2.4G data packets of processing;
Second processing module 22, the control command for being carried according to the first 2.4G data packets execute corresponding control System operation;
Second structure module 23, the 2nd BLE numbers by whitening processing are carried for building in its protocol Data Unit According to the 2nd 2.4G data packets of packet;
Second sending module 24, for sending the 2nd 2.4G data packets to mobile terminal, so that described mobile whole The response command carried according to the 2nd BLE data packets is held to know the response operation of the self-defined 2.4G wireless devices;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the operation self-defined 2.4G wireless devices Control command, the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G equipment synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
The device that mobile terminal provided in an embodiment of the present invention is communicated with self-defined 2.4G wireless devices, at software Reason will be carried on movement eventually for operating the control command of self-defined 2.4G wireless devices in the form of 2.4G packet structures In the protocol Data Unit of the transmitted BLE data packets in end, while by the response command of the control command with BLE data inclusions The form of structure is carried in the protocol Data Unit of the 2.4G data packets transmitted by self-defined 2.4G wireless devices, is moved to realize Dynamic communication between terminal and self-defined 2.4G wireless devices.Compared with prior art, the present invention is without changing self-defined 2.4G Existing hardware scheme in wireless device is not necessarily to increase BLE chips in self-defined 2.4G wireless devices, so that this hair The bright work(that can reduce cost of implementation and self-defined 2.4G wireless devices that self-defined 2.4G wireless devices are controlled by mobile phone Consumption.
Further, described device further includes:
Broadcast module is used for the synchronizing address of fixed time broadcast itself.
It needs exist for illustratively, heretofore described mobile terminal can be mobile phone, but be not limited to mobile phone.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is controlled by computer program to complete, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, all answer by the change or replacement that can be readily occurred in It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (8)

1. a kind of method that mobile terminal is communicated with self-defined 2.4G wireless devices is applied to mobile terminal, which is characterized in that packet It includes:
Structure carries the first BLE data packets of the first 2.4G data packets by whitening processing in its protocol Data Unit;
Whitening processing is carried out to the first BLE data packets;
The first BLE data packets by whitening processing are sent to the self-defined 2.4G wireless devices, so that described self-defined 2.4G wireless devices can execute corresponding control operation according to the control command entrained by the first 2.4G data packets;
Receive second be carried in the 2nd 2.4G data pack protocol data cells that the self-defined 2.4G wireless devices are sent BLE data packets;
According to the response command that the 2nd BLE data packets carry, obtain the self-defined 2.4G wireless devices to the control The response operation of system order;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control life for operating self-defined 2.4G wireless devices It enables, the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G wireless devices synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
2. according to the method described in claim 1, it is characterized in that, it is described structure its protocol Data Unit carry by Before first BLE data packets of the first 2.4G data packets of whitening processing, further include:
Scan the synchronizing address of the self-defined 2.4G wireless devices.
3. the device that a kind of mobile terminal is communicated with self-defined 2.4G wireless devices, is set to mobile terminal, which is characterized in that packet It includes:
First structure module, the first 2.4G data packets by whitening processing are carried for building in its protocol Data Unit First BLE data packets;
First whitening module, for carrying out whitening processing to the first BLE data packets;
First sending module, for sending the first BLE data packets for passing through whitening processing to the self-defined 2.4G wireless devices, So that the self-defined 2.4G wireless devices can execute phase according to the control command entrained by the first 2.4G data packets The control operation answered;
First receiving module is carried on the 2nd 2.4G data pack protocols for receive that the self-defined 2.4G wireless devices send The 2nd BLE data packets in data cell;
First processing module, for the response command that is carried according to the 2nd BLE data packets, the acquisition self-defined 2.4G without The response to the control command of line equipment operates;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control life for operating self-defined 2.4G wireless devices It enables, the protocol Data Unit of the 2nd BLE data packets carries the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G wireless devices synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
4. the apparatus according to claim 1, which is characterized in that further include:
Scan module scans the synchronizing address of the self-defined 2.4G wireless devices.
5. a kind of method that mobile terminal is communicated with self-defined 2.4G wireless devices is applied to self-defined 2.4G wireless devices, It is characterized in that, including:
Receive the first 2.4G data packets being carried in the first BLE data packets by whitening processing that the mobile terminal is sent;
According to the control command that the first 2.4G data packets carry, corresponding control operation is executed;
Structure carries the 2nd 2.4G data packets of the 2nd BLE data packets by whitening processing in its protocol Data Unit;
The 2nd 2.4G data packets are sent to mobile terminal, so that the mobile terminal is according to the 2nd BLE data packets The response command of carrying knows the response operation of the self-defined 2.4G wireless devices;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control for operating the self-defined 2.4G wireless devices System order, the protocol Data Unit of the 2nd BLE data packets carry the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G wireless devices synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
6. according to the method described in claim 5, it is characterized in that, further including:
The synchronizing address of fixed time broadcast itself.
7. the device that a kind of mobile terminal is communicated with self-defined 2.4G wireless devices is set to self-defined 2.4G wireless devices, It is characterized in that, including:
Second receiving module passes through whitening processing for receiving being carried in the first BLE data packets for mobile terminal transmission The first 2.4G data packets;
Second processing module, the control command for being carried according to the first 2.4G data packets execute corresponding control operation;
Second structure module, the 2nd BLE data packets by whitening processing are carried for building in its protocol Data Unit 2nd 2.4G data packets;
Second sending module, for sending the 2nd 2.4G data packets to mobile terminal so that the mobile terminal according to The response command that the 2nd BLE data packets carry knows the response operation of the self-defined 2.4G wireless devices;
Wherein, the protocol Data Unit of the first 2.4G data packets carries the control for operating the self-defined 2.4G wireless devices System order, the protocol Data Unit of the 2nd BLE data packets carry the response command of the control command;
Wherein, the synchronizing address of the first 2.4G data packets be self-defined 2.4G wireless devices synchronizing address, described second The synchronizing address of BLE data packets is the BLE broadcast synchronizations address defined in BLE protocol specifications.
8. device according to claim 7, which is characterized in that further include:
Broadcast module is used for the synchronizing address of fixed time broadcast itself.
CN201710112900.9A 2017-02-28 2017-02-28 Method and device for communication between mobile terminal and user-defined 2.4G wireless equipment Active CN108512574B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710112900.9A CN108512574B (en) 2017-02-28 2017-02-28 Method and device for communication between mobile terminal and user-defined 2.4G wireless equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710112900.9A CN108512574B (en) 2017-02-28 2017-02-28 Method and device for communication between mobile terminal and user-defined 2.4G wireless equipment

Publications (2)

Publication Number Publication Date
CN108512574A true CN108512574A (en) 2018-09-07
CN108512574B CN108512574B (en) 2021-01-29

Family

ID=63374178

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710112900.9A Active CN108512574B (en) 2017-02-28 2017-02-28 Method and device for communication between mobile terminal and user-defined 2.4G wireless equipment

Country Status (1)

Country Link
CN (1) CN108512574B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924804A (en) * 2018-07-09 2018-11-30 苏州澜普智能技术有限公司 A method of based on inexpensive GFSK chip and mobile communication
CN111144535A (en) * 2019-12-24 2020-05-12 湖州太平微特电机有限公司 Pseudo-bluetooth electronic tags of low cost
CN113242204A (en) * 2021-03-11 2021-08-10 上海兆煊微电子有限公司 Processing device supporting BLE standard protocol or private protocol
CN113613224A (en) * 2021-07-23 2021-11-05 上海磐启微电子有限公司 Bluetooth communication method based on 2.4G chip

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977275A (en) * 2010-08-27 2011-02-16 深圳市汇通世纪移动科技有限公司 Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof
CN103985234A (en) * 2014-04-23 2014-08-13 杭州微纳科技有限公司 Remote control method based on bluetooth broadcast packet
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
US20140273824A1 (en) * 2013-03-15 2014-09-18 Medtronic, Inc. Systems, apparatus and methods facilitating secure pairing of an implantable device with a remote device using near field communication
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
CN104754494A (en) * 2015-02-28 2015-07-01 江苏惠通集团有限责任公司 Communicating method and device
CN105099836A (en) * 2014-05-14 2015-11-25 深圳市民展科技开发有限公司 BLE intelligent node control method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977275A (en) * 2010-08-27 2011-02-16 深圳市汇通世纪移动科技有限公司 Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof
US20140273824A1 (en) * 2013-03-15 2014-09-18 Medtronic, Inc. Systems, apparatus and methods facilitating secure pairing of an implantable device with a remote device using near field communication
CN103985234A (en) * 2014-04-23 2014-08-13 杭州微纳科技有限公司 Remote control method based on bluetooth broadcast packet
CN105099836A (en) * 2014-05-14 2015-11-25 深圳市民展科技开发有限公司 BLE intelligent node control method and system
CN104036628A (en) * 2014-05-22 2014-09-10 杭州微纳科技有限公司 Intelligent remote controller based on Bluetooth and quick pairing method
CN104318741A (en) * 2014-10-20 2015-01-28 小米科技有限责任公司 Bluetooth device control method and device
CN104754494A (en) * 2015-02-28 2015-07-01 江苏惠通集团有限责任公司 Communicating method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924804A (en) * 2018-07-09 2018-11-30 苏州澜普智能技术有限公司 A method of based on inexpensive GFSK chip and mobile communication
CN111144535A (en) * 2019-12-24 2020-05-12 湖州太平微特电机有限公司 Pseudo-bluetooth electronic tags of low cost
CN113242204A (en) * 2021-03-11 2021-08-10 上海兆煊微电子有限公司 Processing device supporting BLE standard protocol or private protocol
CN113613224A (en) * 2021-07-23 2021-11-05 上海磐启微电子有限公司 Bluetooth communication method based on 2.4G chip

Also Published As

Publication number Publication date
CN108512574B (en) 2021-01-29

Similar Documents

Publication Publication Date Title
KR102602135B1 (en) Uplink channel configuration method, transmission method, network-side devices and terminals
CN103236904B (en) To reconfigure method, base station and the WTRU of WTRU in response to active set new information
CN102238652B (en) Method, apparatus and system for fast session transfer for multiple frequency band wireless communication
JP6611934B2 (en) System and method for configuring a modified air interface
JP2018503286A (en) System and method for adaptation of software configurable air interface
CN108512574A (en) The method and device that mobile terminal is communicated with self-defined 2.4G wireless devices
JP6139571B2 (en) Method and user equipment for transmitting data
CN102711196A (en) Transmission mode switching method and switching device in long term evolution (LTE) system
WO2016192183A1 (en) Communication method for wi-fi internet of things equipment and wi-fi internet of things system
KR101529471B1 (en) Wireless personal area network
EP1947891B1 (en) Method and related apparatus for improving MIMO procedure in a wireless communications system
US20080192848A1 (en) Method and related apparatus for stopping multi-input multi-output operation in a wireless communications system
KR20180123391A (en) Method And Apparatus for Controlling Keep Alive Packet Transmission
CN103493545A (en) Transmission mode configuration method, user equipment and base station thereof
JP2023546120A (en) Configuration grant repeated transmission method, device, equipment and readable storage medium
CN116210320A (en) Method and apparatus for enhanced sounding reference signal transmission
CN114208089B (en) Communication method, communication device, electronic device, and computer storage medium
CN115484133A (en) Method and device for indicating demodulation reference signal
CN102378338B (en) The method and system that a kind of semi-continuous scheduling mode power controls
CN108811095B (en) Parameter configuration method and device
WO2024146307A1 (en) Communication method and apparatus for repeater
WO2024120252A1 (en) Parameter configuration method and apparatus, device, and readable storage medium
WO2023173346A1 (en) Methods, devices, and systems for time-frequency resource configuration
WO2024120246A1 (en) Parameter configuration method and apparatus, device, and readable storage medium
JP6085156B2 (en) Wireless communication system, mobile station, wireless base station, and wireless communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518057 room 407-408, west block, Skyworth semiconductor building, Gaoxin South 4th Road, Yuehai street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen Angrui Microelectronics Technology Co.,Ltd.

Address before: 518057 Room 303, block a, Skyworth building, Nanshan District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN ZHONGKEHAN TIANXIA ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant