Background technology
Existing bluetooth BT (Blue Tooth) technology has been widely used in multiple, on mobile communication equipment, becomes one of standard configuration basically, realizes file-sharing and transmission mutually between the mobile device through bluetooth.Simple, convenient owing to having, Bluetooth technology is along with universal the obtaining of mobile communication equipment used fast with widely, and the mobile phone of the nearly all support bluetooth of Chinese market can both carry out the transmission of bluetooth file.
The Bluetooth transmission file speed of mobile phone is merely about 60-100kB/s at present.In the big file of transmission, can't meet the demands.Make a general survey of the wireless files transfer function of mobile phone on the market, still adopt the mode of bluetooth OPP and File Transfer Protocol basically, transmission rate is all very slow, and it is particularly important that high-speed transfer becomes in mobile device.
Along with the device end that has the wifi/wapi function at present is more and more, there is scheme to propose to utilize wifi/wapi to carry out the high-speed transfer of two equipment rooms, implemented two steps, one: set up network, two: seek network, transmitting software.The method of performing step one has two kinds: one, two equipment connect common wireless aps (wireless access node or local area network (LAN)) respectively, make two equipment be in consolidated network.Two, utilize the adhoc technology of wifi/wapi to set up adhoc network (being called multi-hop wireless network again), the procedure of this type of networking bothers very much.The software of performing step two all is flying pigeon and ftp etc. generally, and the operation of transmitting software is more loaded down with trivial details and mixed and disorderly, and needs two equipment to move corresponding software simultaneously.This shows that existing wifi/wapi high speed data transfer implements following problem: one, traditional BT transmits, and speed slow excessively (having only about 60-100Kb/s) can only be transmitted very little file.Two, utilize the wifi/wapi transmission, condition is too harsh, and setting operation is too complicated, adds the transmitting software variation, makes that build bad border of transmission bothers very much, and can not initiatively find other equipment in equipment end.
The utility model content
In view of the above problems, the utility model provides a kind of wireless system for transmitting data based on soft AP technology.
In order to achieve the above object; The utility model has adopted following technical scheme: a kind of wireless system for transmitting data based on soft AP technology; It comprises two or more data communication equipments; Wherein each data communication equipment comprises power supply and the main circuit board, CPU, memory cell and the wireless signal transceiver module that electrically connect each other, and it is characterized in that: said wireless signal transceiver module comprises bluetooth module, wifi/wapi module and soft AP module;
Said two or more data communication equipments are set up signal connection and transmission data through bluetooth module;
Perhaps, two or more data communication equipments are set up signal through bluetooth module and are connected, and utilize soft AP module to set up WLAN, and through this WLAN and wifi/wapi module transmission data.
Preferable; The utility model provides a kind of wireless system for transmitting data based on soft AP technology; Wherein, Said bluetooth module comprises Bluetooth chip and the Bluetooth antenna that mutual circuit connects, and said wifi/wapi module comprises wifi/wapi chip and the wifi/wapi antenna that mutual circuit connects.
Preferable; The utility model provides a kind of wireless system for transmitting data based on soft AP technology; Wherein, Said data communication equipment utilizes soft AP module to start soft AP function and sets up WLAN, and the network title of the WLAN of setting up is transferred to one or more data communication equipment through bluetooth module.
Preferable; The utility model provides a kind of wireless system for transmitting data based on soft AP technology; Wherein, said one or more data communication equipment receives the network title, and connects this WLAN through the 802.11n agreement; After the success signal is sent through bluetooth module in its IP address and be transferred to the data communication equipment that this has soft AP module; This one or more data communication equipment enabling signal receives program simultaneously, and this has the data communication equipment enabling signal router of soft AP module, sends data-signal to said one or more data communication equipment; After transfer of data was accomplished, said data communication equipment returned to initial condition.
Preferable, the utility model provides a kind of wireless system for transmitting data based on soft AP technology, and wherein, said data communication equipment comprises mobile phone, PDA or notebook computer.
Compared to prior art; The utility model adopts bluetooth, wifi/wapi module and soft AP module based on carrying out transfer of data under the 802.11n agreement; Equipment end can after searching, start the soft AP function of soft AP module through the equipment around the bluetooth module search through bluetooth module; Set up WLAN, and carry out high speed data transfer through this WLAN and wifi/wapi module.
The utlity model has following advantage: 1, simple; Mode of operation remains the Bluetooth transmission mode; Utilize wifi/wapi to carry out complicated networking configuration with respect to traditional third party software, use bluetooth and wifi/wapi transmission means are easier, more convenient operation.2, quick, conventional mobile phone generally can only once transmit a file, and the utility model can any a plurality of files of disposable transmission, for example transmit a large amount of pictures, song or phone directory etc. simultaneously.3, supper-fast; Utilize bluetooth, wifi/wapi module and soft AP module based on the transmission method that carries out transfer of data under the 802.11n agreement; The maximum 260Mbps. that can reach is existing more than 5 times of speed, has improved the practicality of mobile phone wireless transfer files greatly.
Embodiment
Please, be the said sketch map of the utility model based on the technological wireless system for transmitting data of soft AP with reference to shown in Figure 1.
As shown in Figure 1; Said wireless system for transmitting data based on soft AP technology; Mainly comprise several data communication equipments such as first data communication equipment 101, second data communication equipment 102, the 3rd data communication equipment 103 and N data communication equipment 104; Said data communication equipment comprises mobile phone, PDA or notebook computer; Wherein each data communication equipment comprises power supply and the main circuit board, CPU, memory cell (not shown) and the wireless signal transceiver module that electrically connect each other; Said wireless signal transceiver module mainly comprises soft AP module 1011, bluetooth module 1012 and wifi/wapi module 1013; This bluetooth module 1012 comprises Bluetooth chip and the Bluetooth antenna that mutual circuit connects, and this wifi/wapi module 1013 comprises wifi/wapi chip and the wifi/wapi antenna that mutual circuit connects.
Said first data communication equipment 101 through bluetooth module 1012 visit second data communication equipment 102 respectively, whether the 3rd data communication equipment 103 supports the wifi/wapi transfer of data until N data communication equipment 104; If supporting the wifi/wapi transfer of data then to set up signal connects; This first data communication equipment 101 utilizes soft AP module 1011 to start soft AP functions and sets up WLAN, and the network title of the WLAN of setting up is transferred to second data communication equipment 102, the 3rd data communication equipment 103 until N data communication equipment 104 through bluetooth module 1012.
Wherein, Said second data communication equipment 102, the 3rd data communication equipment 103 are after N data communication equipment 104 receives the network title; Connect this WLAN through the 802.11n agreement; After the success signal is sent through bluetooth module 1012 in its IP address and be transferred to first data communication equipment 101; This second data communication equipment 102, the 3rd data communication equipment 103 receive program until N data communication equipment 104 enabling signals simultaneously, and these first data communication equipment, 101 enabling signal routers send data-signals to said second data communication equipment 102, the 3rd data communication equipment 103 until N data communication equipment 104; After transfer of data was accomplished, said data communication equipment returned to initial condition.
As shown in Figure 2, the utility model provides a kind of radio data transmission method based on soft AP technology, and it mainly may further comprise the steps:
The said data communication equipment with soft AP module of step a. sends the one or more data communication equipment of message reference through bluetooth module, and whether inquiry supports the wifi/wapi transfer of data;
Step b. is if said one or more data communication equipment is supported the wifi/wapi transfer of data; Then this data communication equipment startup soft AP function with soft AP module is set up WLAN, and the network title of this WLAN is transferred to one or more data communication equipment through bluetooth module;
The said one or more data communication equipment of step c receives the network title; And connect the WLAN that this data communication equipment with soft AP module is set up; After the success signal is sent through bluetooth module in its IP address and be transferred to the data communication equipment that this has soft AP module, simultaneously said one or more data communication equipment enabling signal receives program;
Steps d. this has the data communication equipment enabling signal router of soft AP module, sends data-signal to said one or more data communication equipment;
After step e. transfer of data was accomplished, this data communication equipment and said one or more data communication equipment with soft AP module returned to initial condition.
Wherein, The wifi/wapi chip of one or more data communication equipment described in the step c connects the WLAN that this data communication equipment with soft AP module is set up through the 802.11n agreement; Start server after the successful connection; Its IP address transfer had the data communication equipment of soft AP module to this; This data communication equipment with soft AP module starts router, connects said one or more data communication equipment through this WLAN, and begins to transmit data.
Like Fig. 2 and shown in Figure 3, be respectively the flow chart of client and server end among the utility model one embodiment.
In present embodiment, at first in this machine, select the data that will send, can be single file; Also can be a plurality of files, select again to send to have the equipment of bluetooth module around then beginning to search for bluetooth; Behind selection equipment, whether can judge the file that needs to send greater than 1M, because the wifi/wapi networking needs the regular hour; If the file that needs to send less than 1M, just directly sends with traditional bluetooth; If the file that needs to send greater than 1M, then can attempt using the wifi/wapi transmission.
Judge that whether this machine supports the wifi/wpai transmission, if do not support, then sends file with traditional bluetooth; If support the wifi/wpai transmission, then judge through Custom Attributes value of bluetooth service whether method, apparatus is supported the wifi/wpai transmission, if method, apparatus is not supported the wifi/wpai transmission, then send file with traditional bluetooth; If method, apparatus is supported the wifi/wpai transmission, then launch the wifi/wpai transmission automatically, transmission recovers original network state after accomplishing, and transmission is accomplished.
Do detailed explanation with regard to transmit leg (client) and recipient's's (server end) realization below.
Transmit leg begins to judge through a Custom Attributes value of bluetooth service whether method, apparatus is supported the wifi/wapi transmission after selecting with the wifi/wapi transmission, if support the wifi/wapi transmission; Just begin to set up bluetooth and connect, and begin a newly-built WLAN, and send to the network title of this WLAN to method, apparatus (server end) with the bluetooth connection based on soft AP technology; Wait is to the response of method, apparatus; What method, apparatus was returned is an ip address, and corresponding ports number, receive the other side's facility information after; Begin to set up network connection based on the WLAN of soft AP technology; To the other side's equipment sending data. after sending completion, the reduction self networks is until end.
As shown in Figure 3, when opening bluetooth, create a bluetooth and connect, and give a self-defining property value; Wait for the connection of miscellaneous equipment, judged whether connection, when soft AP server end has received connection, soft AP server end and transmit leg swap data; After receiving that soft AP network name is referred to as, begin to connect network, after the successful connection, self start a network and connect; And begin to monitor a network port, and then transmit IP address and port information again and give method, apparatus, after the network connection listens to the connection of miscellaneous equipment, the beginning transfer of data; After transmission was accomplished, the reduction network was until end.
The utility model Data Transport Protocol implementation part is following:
Transmit leg is realized sending according to the following steps:
1: transmission needs the file number of transmission;
2: the length of sending filename;
3: send filename;
4: send file size;
5: send data;
6: the file number circulation of sending is as required sent;
7: finish.
The recipient realizes receiving according to the following steps:
1: receive the file number;
2: the length that receives file name;
3: receive filename by the length that receives filename;
4: the data that receive file size;
5:, begin to receive data according to the size of file;
6: according to the number of file, circulation receives;
7: finish.