Automatically the system and method for registering
Technical field
The present invention relates to field of wireless communication, more specifically, is that wireless telecommunications system is carried out location positioning and the system and method for registering automatically of registering and serving is provided.
Background technology
Along with the rise of blog, microblogging, also occur one after another based on the website of registering automatically of SNS, this has satisfied people to a great extent and has wanted to express, wanted the demand shared.The user can realize that the place registers through the installation software of registering; The principle that realizes is after mobile phone is installed client software; Carry the GPS function through mobile phone the user is carried out location positioning, client software is listed user neighbouring businessman or location information then, and the user can register to this place after clicking certain information; Data such as user, place, the information of registering can be resolved through the server that the mobile phone end GPRS network uploads to the website of registering, and are presented on the client software in real time.
The application of registering based on the place has a lot, for example: make the good friend know the current present position of user immediately, and can carry out interaction with the user; Attack strategy is commented on, write in the place be shared with other users; Obtain businessman's integration and medal; When exceeding some like the number of times of registering in certain place, landlord etc. also has an opportunity to become.These application are interesting, practicality and closeness to life, but the real user who uses is few, and main cause is to use the software of registering to carry out place following 2 restrictions of having registered:
1, the client software of registering is installed and is needed higher smart mobile phone, like the smart mobile phone of systems such as iphone, android, but this type of mobile phone is comparatively expensive, so user's ratio is very low.
2, regular handset can be realized the function of registering equally, goes to realize registering function but need online to land the website, and network speed is slow to be the main cause that big multi-user hangs back with needing flow.
On the other hand; Bluetooth (Bluetooth) is that a kind of equipment with bluetooth module that on the short distance local area network (LAN), makes carries out the technology of wireless data transmission; Bluetooth technology has advantage of low power consumption; Present mobile phone has generally been installed the Bluetooth wireless communication hardware module, can let mobile phone carry out simple wireless data transmission through bluetooth.As shown in Figure 1, be rough schematic view with mobile phone 10 of Bluetooth function, it comprises mobile phone control end member 12 and first bluetooth module 14 that under the control of mobile phone control unit, carries out data communication with outside bluetooth equipment.Present bluetooth equipment mainly provides simple function, such as bluetooth module, bluetooth earphone, bluetooth GPS navigation system etc., but does not possess to bluetooth discovery or based on the service of registering of cell phone software.
Therefore, need a kind of new system and method for registering, the Bluetooth function that it can combine existing mobile device provides the service of registering automatically.
Summary of the invention
The object of the invention is to combine the Bluetooth function in the mobile phone, and a kind of system and method that can register easily is provided.
Automatically the system of registering of the present invention is used to the mobile phone with Bluetooth function the service of registering is provided; Wherein said mobile phone comprises mobile phone end control unit and first bluetooth module that is connected with this mobile phone end control unit; This automatically the system of registering comprise embedded base station, the outer network server that communicates with this embedded base station and the database that is connected with this outer network server, wherein said embedded base station comprises:
Second bluetooth module, it is used for carrying out data communication with said first bluetooth module;
The base station end control unit; It is connected with said second bluetooth module; Be used to handle the solicited message that said second bluetooth module receives from said first bluetooth module, and response message that will network server receives outside said sends to said first bluetooth module through said second bluetooth module;
NIU, it is connected with said base station end control unit, and said base station end control unit carries out data communication through this NIU and said outer network server.
Preferably, said base station end control unit comprises:
Microprocessor, it is connected with said second bluetooth module through a serial ports module;
Memory, it is connected with said microprocessor;
Ethernet controller, it is connected with said microprocessor and said NIU respectively.
Preferably, said base station end control unit also is included as the power interface of this base station end control unit power supply.
Preferably, be provided with in the said outer network server and be used to appear the website of registering of registering.
Preferably, be provided with the server monitoring unit in the said outer network server.
Preferably, said NIU is RJ45 Ethernet interface, GPRS network interface or WIFI network interface.
Preferably, said power interface is a USB interface.
Preferably, said memory is a flash memory.
Preferably, said ethernet controller is CP220x.
The present invention also provides a kind of and has utilized the system of registering automatically of the present invention that the method for registering automatically is provided, and this method comprises the steps:
A, said second bluetooth module sends search signal;
B after said first bluetooth module receives said search signal, is sent to said second bluetooth module with described request information;
C, said base station control unit is through NIU, and the identification field information of described request information and said embedded base station is sent to said outer network server;
D after the information that said outer network server butt joint is received is confirmed, sends response message to said second bluetooth module;
E, affiliated second bluetooth module is sent to said first bluetooth module with said response message;
F, said mobile phone end control unit reads said response message.
Utilize the system and method for registering automatically of the present invention, can make that the mobile phone with Bluetooth function is convenient promptly realizes registering to the website of registering.
Description of drawings
Fig. 1 is existing schematic diagram with mobile phone of bluetooth communication function;
Fig. 2 is the theory diagram of the system of registering automatically of the present invention;
Fig. 3 is the composition frame chart of base station end control unit among Fig. 2;
Fig. 4 is the flow chart that utilizes the system of registering automatically of the present invention to register automatically.
Embodiment
Below in conjunction with accompanying drawing and embodiment, the composition and the working method of the system of registering automatically of the present invention is elaborated.
As shown in Figure 2, be the schematic diagram of the system of registering automatically of the present invention, the system of registering of the present invention can be the mobile phone 10 with Bluetooth function the service of registering is provided.This system of registering comprises embedded base station 100, the outer network server 200 that communicates with this embedded base station and the database 300 that is connected with this outer network server.More specifically, embedded base station 100 comprises second bluetooth module 110, base station end control unit 120 and NIU 130.Second bluetooth module 110 is used for carrying out data communication with first bluetooth module 14 of mobile phone 10, and it can be conventional bluetooth module, have and other bluetooth modules between search scanning, receive data, communication functions such as transmission data.Second bluetooth module 110 can be a bluetooth module, also can be a plurality of bluetooth modules, for example 1-4 bluetooth module.
Base station end control unit 120 is connected with second bluetooth module 110; Be used to handle the solicited message that second bluetooth module 110 receives from first bluetooth module 14, and will send to first bluetooth module 14 through second bluetooth module 110 response message that receives from outer network server 200.More specifically; As shown in Figure 3; Base station end control unit 120 comprises microprocessor 122, the memory 124 that is connected with microprocessor 122 and the ethernet controller 126 that is connected with microprocessor 122 and NIU 130 respectively that is connected with second bluetooth module 110 through a serial ports module (figure does not show).In addition, base station end control unit 120 also comprises power interface 128, and it is connected respectively at microprocessor 122 and ethernet controller 126, and the device that is used in the base station end control unit 120 is supplied power.Power interface 128 can adopt interface mode commonly used, for example USB interface etc.
Microprocessor is made up of the MCU of routine; C8051F340 processor for example; Its may command second bluetooth module 110 is carried out function of search; Thus, first bluetooth module 14 returns the request msg that includes bluetooth MAC Address and bluetooth title to corresponding second bluetooth module 110 of giving after receiving the search signal that second bluetooth module 110 sends.The serial port module that connects second bluetooth module 110 and microprocessor 122 can be the UART serial ports; Memory 124 can be conventional flash memory (Flash Memory); And ethernet controller 126 can be ethernet controller (for example CP2200) or other ethernet controller model commonly used of CP220x series, and it is used for 130 pairs of data of Control Network interface unit and receives and dispatches.
The MAC Address that the solicited message that second bluetooth module 110 receives from first bluetooth module 14 comprises first bluetooth module 14 with and the bluetooth title.After second bluetooth module 110 receives solicited message; After 122 pairs of these solicited messages of the microprocessor of base station control unit 120 are resolved; Bluetooth MAC Address in the solicited message and bluetooth title are sent to outer network server 200 through NIU 130; These data are stored in the database 300 simultaneously, and outer thereafter network server is searched the record that has or not this client in database 300, if this record is arranged; Be transferred to the microprocessor 122 of base station control unit 120 then and then with response message through NIU 130; Microprocessor 122 is stored in this response message in the memory 124, and this response message is transferred to second bluetooth module 110, and the second last bluetooth module 120 sends to response message first bluetooth module 14 of mobile phone 10.
NIU 130 is connected with base station end control unit 120, and base station end control unit 120 carries out data communication through this NIU 130 with outer network server 200.NIU 130 can be the RJ45 Ethernet interface, and it provides the adaptive net card interface of 10/100MB, and carries out transfer of data through ICP/IP protocol.Outer network server 200 comprises server monitoring unit 210, and is provided with and is used to provide the service of registering and presents the website 220 of registering of registering.The data that server monitoring unit 210 is used for base station end control unit 120 is sent (comprise request msgs such as bluetooth MAC Address, bluetooth title, and the identification field of embedded base station 100 self) monitor, and save the data in real time in the database 300.
Database 300 internal memories contain the data (comprising bluetooth MAC Address and bluetooth title) of old user's (or registered users), the identification field of embedded base station 100 and the hexadecimal data that is used for the file of response message.Response message comprises the image data that is used to offer the client, lteral data, video data, voice data etc., also can comprise aiming at the customized data message of particular customer.After outer network server 200 receives the data that come from base station end control unit 120, at first with these storage in database 300, then based on these data, in database, search judgement.For example; The identification field of embedded base station 300 is represented the three unities; If 300 internal memories contain the pairing bluetooth users storage of the data that receive record in database; First bluetooth module 14 that then sends these data is the object of registering in this place, and this object can be personal user, the user of colony or businessman, mechanism etc.This moment, outer network server 200 sent response messages to embedded base station 100, and and then was transferred to cellphone subscriber 10.Simultaneously, can be with the relevant data of registering by behind the outer net collation server, send to and supply on the website 220 to browse.Website 220 can be associated with other similar websites, for example Sina's microblogging, Teng Xun microblogging etc. simultaneously.Thus, if the object of registering also is the registered user of other website, then can be the information synchronization of registering to other related web site.
Transfer of data average speed between first bluetooth module 14 and second bluetooth module 110 is 30KB/ second.Can be provided with 1-4 bluetooth module in the embedded base station 100, the number of users of support is 1 to 28, and coverage can reach 100 meters.
Below combine flow chart further, to the cellphone subscriber utilize the present invention automatically the system's of registering step of registering be elaborated.
As shown in Figure 4, and combine Fig. 2,3, in step S100, second bluetooth module 110 in the embedded base station 100 is carried out function of search under the control of microprocessor 122, and sends search signal.In step S200; When the user of mobile phone 10 enters in the bluetooth response range zone; First bluetooth module 14 receives the search signal that second bluetooth module 110 sends, and under the control of mobile phone end control unit 12, solicited message is sent to second bluetooth module 110.Solicited message comprises bluetooth MAC Address and bluetooth title.In step S300; Second bluetooth module 110 is after receiving solicited message; Through the microprocessor in the base station end control unit 120 122, the identification field information of this solicited message and embedded base station is sent to outer network server 200 via NIU 130.In step S400, after 200 pairs of request msgs of outer network server are confirmed, send response message to the second bluetooth module.The server monitoring unit 210 of outer network server 200 with the deposit data that receives in database; And according to the related data that prestores in the database; Data to receiving are judged: at first according to receiving the identification field in the data, confirm the place of embedded base station, secondly according to receiving bluetooth MAC Address and the bluetooth title in the data; Whether search mobile phone 10 is the old user that the existing subscriber notes down in database; But confirm as when being the old user, response message is sent it back embedded base station 100, simultaneously the information of registering is presented on the website 220 that is deployed on the outer network server 200.Response message comprises image data, lteral data, video data, voice data etc.After microprocessors 122 in the embedded base station 100 receive the response message data, at first with the response message deposit data in memory 124, then data transaction is become hexadecimal data, and sends second bluetooth module to through AT instruction subpackage.In step S500, second bluetooth module 110 is sent to response message first bluetooth module 14 of mobile phone 10.In step S600, the response messages that mobile phone end control unit 12 is responsible for first bluetooth module 14 is received read, and the data that read can be the lteral datas of being correlated with, and also can be picture or audio frequency, the video datas of general formats such as jpg or mp3.
In sum, the system and method for registering automatically of the present invention has following advantage:
1; The present invention has adopted with common register the automatically mode of system of whole Bluetooth of mobile phone of forming of second bluetooth module that is complementary with first bluetooth module, base station end control unit, outer net service end; The user need not to carry high high-end mobile phone terminal can enjoy the place service of registering; And only need open bluetooth, and need not to carry out other any operations, just can the cellphone subscriber be registered automatically and is synchronized to everybody, main flow microblogging website such as Tengxun, Sina in real time.
2, in the time of in user's bluetooth is registered system ovelay range automatically, not only the service of registering automatically can be enjoyed, but also personalized photo into customization etc. can be received, understand peripheral Business Information and discounting sales promotion information in real time.These data can be arranged in the database in advance.
3; The present invention adopts embedded base station as access device; Have with low cost, low in energy consumption, volume is little, reliable, can be deployed in the various environment of indoor and outdoor; Be particularly useful for the cellphone subscriber concentration point, such as: places such as station, cinema, subway railway carriage, school, hotel, coffee-house, office building.