Home information network and gateway based on self-organizing network structure and Bluetooth technology
One, technical field
The present invention is the application process of a kind of zonule wireless communication networks, especially a kind of realize can free networking the home information network system
Two, background technology
The development of information industry makes people more and more urgent to the requirement of household's IT application, information household appliances are notions that propose in recent years, most important characteristic: it can pass through the digitized information of Internet bi-directional, it substituted is network browsing on the PC, sends and receive e-mail, online game, visual telephone and functions such as online transaction from now on.The all information equipments of household internal are linked to be network each other earlier, are exactly home information network.Obviously, the optimal technology of connection home network is exactly a wireless communication technology.
Existing home information network all equipment usually all is the center with the gateway, networking underaction freedom, if family newly buys a network equipment, often can not be automatically with other equipment in the function informing network of this equipment, need the intervention of some central apparatus, and after equipment deviated from network, the equipment in the informing network automatically again, and common home information network is also not enough to security consideration.
WLAN (wireless local area network) (the WLAN of Ti Chuing in recent years, Wireless Local Area Network) and Wireless Personal Network (WPAN, Wireless Personal Area Network) etc. in the wireless multimedia communication standard of zonule, the most noticeable is Bluetooth technology.Bluetooth (bluetooth) is a kind of technology of wireless multimedia communication among a small circle that develops rapidly, and its sharpest edges are and can make it to have the ability of access (Internet) and other the Internet for various electric equipments provide additional communication capacity.
The mobile communications network that we often mention generally all has the center, could move based on the default network facilities.Ad hoc network be rise recently a kind of mobile radio network, compare with common network, it has following characteristics: do not have the center 1.: all nodes of Ad hoc network equal promptly is a peer to peer network.2. self-organizing: the cloth of network is if launch to need not to depend on any default network facilities.Node is by layered protocol and distributed algorithm coordination behavior separately.3. multi-hop route: when node will communicate with the node outside its coverage, can transmit by the multi-hop of intermediate node.4. dynamic topology: Ad hoc network is a dynamic network.Network node can move everywhere.
This shows that the trend of the information household appliances self-organizing between the household electrical appliances just forms home network, home network freely inserts the Internet.And Bluetooth technology realizes the optimal selection of such home information network just.
The notion by above-mentioned technology self-organizing network and the combination of Bluetooth technology can realize the wireless Ad Hoc of the various information household appliances of household internal.Can find the other side mutually between any apparatus, the service that Ad hoc network uses the other side is set up in inquiry the other side's service.For example, if the service that a certain information household appliances can provide the Internet to insert, other information household appliances also can insert the Internet download data by it, accept long-range control.Mobile control terminal with this technology can be controlled all information household appliances of household internal neatly, and the information household appliances of newly buying also can join the home information network of having set up easily.
Three, technology contents
1, technical problem
The purpose of this invention is to provide a kind of home information network and gateway based on self-organizing network structure and Bluetooth technology, make the equipment in some indoor application occasions such as family or office can set up Ad hoc home information network neatly with Bluetooth function, the user can use the service that all devices provides in the net by an equipment, and all equipment in the control net.
2, technical scheme
Home information network based on self-organizing network structure and Bluetooth technology of the present invention is divided into terminal equipment and access device, on each terminal equipment and access device, set up bluetooth module respectively, make between each equipment and set up Radio Link, service discovery protocol according to bluetooth, can find the service that the other side can provide mutually between the equipment, and the miscellaneous equipment in visit and the Control Network; The version of this network is divided into application layer, virtual serial port simulation protocol and service discovery protocol, logic link control and adaptation layer protocol and management entity, HCI, LMP Link Manager Protocol, base band and radio frequency from top to bottom.Scheme for the twin-core sheet, the version of this network is divided into host machine part and embedded part from top to bottom, wherein host machine part is divided into application layer, port entity, virtual serial port simulation protocol and service discovery protocol, logic link control and adaptation layer protocol and management entity, upper strata HCI from top to bottom, and embedded part is HCI LMP Link Manager Protocol, base band and radio frequency from top to bottom.Scheme for the Embedded Double chip, the top-down host machine part of the version of this network is application layer, port entity, and embedded part is virtual serial port simulation protocol and service discovery protocol, logic link control and adaptation layer protocol and management entity, HCI, LMP Link Manager Protocol, base band and radio frequency.
Gateway of the present invention to be being the center with the microprocessing unit in this gateway, and this microprocessing unit joins by address wire and data wire and synchronous memories, flash memory, joins the control signal termination sound circuit of microprocessing unit by serial port and bluetooth module; The answer the call output termination microprocessing unit of line interface, ring detecting circuit of the input of ring detecting circuit; Sound circuit connects dual-tone multi-frequency generator by the double-audio signal line, connects audio coder ﹠ decoder (codec) by the analog voice line, the sound circuit line interface of also directly answering the call; Audio coder ﹠ decoder (codec) connects bluetooth module by the pcm stream line.The serial port of microprocessing unit " U2 " connects bluetooth module " U14 " " A5, A6, B5, B6 " end, and the pcm stream end of bluetooth module " U14 " " A1, A2, A3, A4 " end joins with " 7,27, the 2 " end of audio coder ﹠ decoder (codec) " U11 " and " 2 " end of " U10A ".
By the authentication of bluetooth, mechanism such as authentication provide safe guarantee to information household appliance network.If certain equipment in the net has the ability of access public network (Internet, PSTN etc.), all devices of this home information network also just can be connected on the public network by this access device so, is connected devices communicating on the public network with other.This home information network based on self-organizing network structure and Bluetooth technology can be realized radio meter register easily, remote household electrical appliance control, various application such as family wireless movie theatre.
Can be combined to form following plurality of application scenes based on the various device in the home information network of self-organizing network structure and Bluetooth technology.
First scene is two terminal networkings, and the user can control and manage electrical equipment in the family with control terminal.Control terminal comprises portable terminal such as mobile phone, PDA, notebook and fixed terminal such as PC.Controlled electrical equipment comprises various information household appliances, as TV, and refrigerator, washing machine, air-conditioning, electric cooker, water power table or the like.By such network, the user at home can be easily receive the working condition of various electrical equipment in the family, the use of home energy source also can be controlled the working method of these electrical equipment, also can finish the wireless transmission of mass data between two digital devices.The user can be set up point-to-point like this home information network as required at any time, removes this network at any time after finishing information processing.Usually can do main equipment by control terminal in so point-to-point network, controlled electrical equipment is as slave unit.Fig. 5 is the diagram of this scene.
Second scenario is a plurality of equipment networks, and an equipment has numeral/voice gateway capability in the network, and whole home information network can be accepted long-distance user's control, obtains information from Internet.For example, the user notifies the electric cooker of family, work such as air-conditioning by Internet or PSTN when coming off duty; The user is in and can downloads menu from the Internet with refrigerator; Power office can be by Internet or the long-range data that read water, electricity and gas three tables of PSTN; Can press danger button when the user is in an emergency at home, gateway is delivered to relevant department with warning message.Provide the equipment of data/voice gateway function can have the PC in the family to take on, also can be taken on by the Embedded A P/PSTN gateway of special use, as main equipment, other equipment are as slave unit in this network for gateway.
3, technique effect
This invention has following advantage:
1, make some indoor application occasions such as family or office only need an access device just can realize indoor all have the equipment of information transfer capability and interconnecting of outside diverse network and system;
2, indoor each equipment need not cable and connects, both can wireless networking work, and the service that can enjoy external network again;
3, indoor a plurality of equipment can free networking, and the scale of network also can be specified arbitrarily by the user;
4, can inquire about the service that the equipment in the whole network provides by the terminal equipment in the network;
5, the automatic registration of device service and cancellation automatically in the network;
6, the fail safe of network is fine, and the level of security user can set;
7, when external network is changed or upgrade, flexible;
8, by this access device, the equipment in the remote controlled family of user (such as household electrical appliance etc.);
Four, description of drawings
Fig. 1 is the structured flowchart of embedded single chip solution of the present invention.Application layer 1, virtual serial port simulation protocol 2, service discovery protocol 3, logic link control and adaptation layer protocol 4, management entity 5, HCI 6, LMP Link Manager Protocol 7, base band and radio frequency 8 are wherein arranged.
Fig. 2 is the structured flowchart of Embedded Double chip solution of the present invention.Wherein the ports having entity 11.
Fig. 3 is the structured flowchart of twin-core sheet scheme of the present invention.Upper strata HCI 61 is wherein arranged.
Fig. 4 is the schematic diagram of application scenarios of the present invention.
Fig. 5 is that data gateway of the present invention is the protocol stack structure schematic diagram that data terminal equipment inserts Internet.
Fig. 6 is that voice gateways of the present invention are the protocol stack structure schematic diagram that voice terminal device inserts PSTN.
Fig. 7 is the terminal equipment protocol stack structure schematic diagram of point-to-point connection.
Fig. 8 is point-to-point home information network application scenarios schematic diagram.
Fig. 9 is with embedded microprocessor or the PC application scenarios schematic diagram as the access device scheme.
Figure 10 is the circuit block diagram of voice IAD of the present invention.Comprising telephone line interface 1, ring detecting circuit 2, dual-tone multi-frequency generator 3, sound circuit 4, microprocessing unit 5, audio coder ﹠ decoder (codec) 6, synchronous memories 7, flash memory 8, bluetooth module 9.
Figure 11, the 12nd, the electrical schematic diagram of voice IAD of the present invention.
Five, embodiment
Be divided into terminal equipment and access device, terminal equipment based on the equipment in the home information network of self-organizing network structure and Bluetooth technology.Functional structure chart as shown in Figure 9, the ability of the service of providing is provided these equipment usually, use bluetooth module and other equipment to set up Radio Link, service discovery protocol according to bluetooth, can find the service that the other side can provide mutually between the equipment, if equipment have I/O capability just can visit with Control Network in other equipment.
If having the TCP/IP/PPP protocol stack, this equipment just can insert the Internet by data gateway equipment with Internet access service, oneself also can provide the Internet access service, just can insert PSTN by the voice gateway equipment with PSTN access service if equipment has agreement such as speech coding, oneself also can provide the PSTN access service.Certainly, an equipment can have terminal, data gateway, three kinds of functions of voice gateways simultaneously.Data gateway is protocol stack structure such as Fig. 5 that data terminal equipment inserts Internet, voice gateways are protocol stack structure such as Fig. 6 that voice terminal device inserts PSTN, when two terminals need not to insert Internet or PSTN, they need not to use TCP/IP/PPP protocol stack or speech coding agreement, their protocol stack structure such as Fig. 7.
Data all might be stolen, expose or distort in storage and transmission course, and therefore a large amount of data of storing in communication network and transmitting just need protection.Under wireless environment, the fail safe of communication is particularly important.For user profile is protected, Bluetooth system provides suitable safeguard measure.The present invention has used two methods to come common guarantee user's information household appliances to be controlled by own kinsfolk.First method is only to allow the equipment of some specific bluetooth equipment physical address to come and own link setup.The table that has a bluetooth physical address in each equipment of user, it has comprised the address of all information household appliances in the family.The equipment in the family that can guarantee so can not disturbed by neighbours' equipment.
Second method is key mechanism, requires the side input key of link setup during link setup.This key can guarantee that the equipment in the family only visited by the people of users to trust.For each bluetooth equipment, physical layer provides checking (Authentication) and encrypts (Encryption) service.Bluetooth system adopts the key stream technology that information is carried out cryptographic operation.At link layer, guarantee the fail safe of system with 4 parameters: one the 128 bit random number RA ND that unique 48 bit addresses of each user, user's 128 bit authentication secrets, user's 8~128 bit encryption, equipment produce.Bluetooth device address (BD_ADDR) is the IEEE address of disclosed 48 bits, can by man-machine interface or automatically the query script by bluetooth equipment obtain.Encryption key is that the authentication secret from the checking processing procedure derives out, and the length of authentication secret is 128 bits always, and encryption key length can be from 1 byte to 16 bytes (8~128 bit).The present invention adopts base band LMP agreement provides in the Bluetooth technology authentication and encryption function that safeguard protection to wireless data is provided.The user can be provided with the safe mode of three kinds of bluetooth equipments: fail safe pattern 1 (non-safety): do not initiate any security processes, as pairing or authentication.Fail safe pattern 2 (service class pressure fail safe): when setting up logical links, require link setup side's input key.Fail safe mode 3 (connect rank and force fail safe): when setting up the base band physical link, require link setup side's input key
The user can be provided with that above three kinds of safe modes limit user beyond the kinsfolk and the equipment network of oneself obtains information according to the secret needs of the information of household equipment.
One is in the computing environment at center with the network, seeks and uses the service in the network more and more important.Bluetooth SIG has formulated a service discovery protocol SDP for Bluetooth system specially.It extremely is suitable for the stronger characteristic of Bluetooth system mobility.And it can coexist as in the bluetooth environment with other service discovery protocol, meets the characteristics of Bluetooth system opening.Service discovery protocol in the bluetooth is typical client computer-server model.Each service discovery protocol can be divided into client part and server end parts, and two parts can be worked on different or same bluetooth equipment.Need the client part of the bluetooth equipment operation service discovery agreement of request service, provide the bluetooth equipment operation service of service to find the protocol server end parts.A bluetooth equipment is looked its situation and can be contained server end part and client part simultaneously.In client, client application sends service discovery request.Service discovery protocol is sought service according to COS.By using the service discovery protocol of bluetooth, the user can inquire the service describing that other equipment provide in the network, can use the next service of these inquiries by other agreements.In a network of having set up, when a new equipment (as newly buying, new start) enter this network and with network in after equipment sets up Radio Link, the service describing that provides of this new equipment just can be provided by the mode of direct wireless communication or multi-hop other equipment immediately in the network, need not the intervention of any other management equipment.When an equipment deviated from network, in tens seconds, the equipment in the network just can detect leaving of it, can't inquire the service describing that this equipment provides.This automatic registration of information household appliances equipment and the automatic function of nullifying all realize with form of software by above-mentioned service discovery protocol.Household appliances manufacturer can be when production equipment the service of pre-control equipment, the user also can register network from the new service of network download after the device upgrade.
This network is divided into terminal equipment and access device, on each terminal equipment and access device, set up bluetooth module respectively, make between each equipment and set up Radio Link, service discovery protocol according to bluetooth, can find the service that the other side can provide mutually between the equipment, and the miscellaneous equipment in visit and the Control Network; The version of this network is application layer 1, virtual serial port simulation protocol 2 and service discovery protocol 3, logic link control and adaptation layer protocol 4 and management entity 5, HCI 6, LMP Link Manager Protocol 7, base band and radio frequency 8 from top to bottom.
Based on three kinds of implementations are arranged on the outfit of equipment in the home information network of self-organizing network structure and Bluetooth technology:
(A) typical twin-core sheet scheme: separately, top protocol layer is placed on as on the resourceful main end processor of PC class protocol stack between host control protocol.
(B) Embedded Double chip solution: protocol stack is mainly on below the Bluetooth chip, and the main processor of holding the such resource-constrained of mobile phone normally can only be put application protocol and adapting protocol.
(C) embedded single chip solution: institute's protocols having operates on the embedded system, and this is an independently bluetooth equipment usually, as the wireless blue tooth earphone, and the WLAN (wireless local area network) accessing points.
The voice gateways that realize with an embedded single chip solution are example, and Figure 11,12 has provided the circuit diagram of this voice IAD.
Scheme for the twin-core sheet, the version of this network is divided into host machine part and embedded part from top to bottom, wherein host machine part is divided into application layer 1, port entity 11, virtual serial port simulation protocol 2 and service discovery protocol 3, logic link control and adaptation layer protocol 4 and management entity 5, upper strata HCI 61 from top to bottom, and embedded part is divided into HCI 6 LMP Link Manager Protocols 7, base band and radio frequency 8 from top to bottom.This gateway is the center with microprocessing unit 5, and this microprocessing unit 5 joins with synchronous memories 7, flash memory 8 by address wire and data wire, joins the control signal termination sound circuit 4 of microprocessing unit 5 by serial port and bluetooth module 9; The answer the call output termination microprocessing unit 5 of line interface 1, ring detecting circuit 2 of the input of ring detecting circuit 2; Sound circuit 4 connects dual-tone multi-frequency generator 3 by the double-audio signal line, connects audio coder ﹠ decoder (codec) 6 by the analog voice line, sound circuit (4) line interface 1 of also directly answering the call; Audio coder ﹠ decoder (codec) 6 connects bluetooth module 8 by the pcm stream line.
This gateway is the center with single-chip microcomputer 5, and this single-chip microcomputer 5 joins by address wire and memory 7, joins the control signal termination sound circuit 4 of single-chip microcomputer 5 by serial port and bluetooth module 8; The answer the call output of line interface 1, ring detecting circuit 2 of the input of ring detecting circuit 2 connects single-chip microcomputer 5; Sound circuit 4 connects dual-tone multi-frequency generator 3 by the double-audio signal line, connects PCM codec 6 by the analog voice line, sound circuit 4 line interface 1 of also directly answering the call; PCM codec 6 connects bluetooth module 8 by the pcm stream line.
CPU adopts Winbond90221,32 flush bonding processors, and 1 isa bus interface links to each other with 8 Flash AM29F016B that are total to 16Mbit, and that SDRAM adopts is the W986432DH of Winbond, 2M X32 position.The parallel port is used to download and universal I/O port is provided under ecp mode.2 serial ports one of them for monitoring mouthful, link to each other with PC during debugging, by hyper terminal feedback Debugging message, another links to each other with the Ericsson bluetooth module, the pcm interface of bluetooth module links to each other with audio coder ﹠ decoder (codec) OKI7540L, OKI7540L is responsible for analog voice is compiled to pcm stream offers bluetooth, and the pcm stream that bluetooth is provided is decoded as analog voice and links to each other with the gateway telephone wire or directly link on terminal use's the earphone simultaneously.The speech chip of gateway is MC34014P, between audio coder ﹠ decoder (codec) and telephone wire, finishes the function of the amplification and the conversion of 2-4 line of voice, and it is MT8888 that DTMF produces chip, and its control line, data wire link to each other with universal I/O port, accept CPU control.U11MSM7540L audio coder ﹠ decoder (codec) among the figure; The U10 d type flip flop; The U1 not gate; The embedded 32-bit microprocessor of U2 W90221X China nation; The 2M Byte Flash of U13 AM29F016B AMD; U6 2-4 decoder; U14 Ericsson bluetooth module; U8 LM317 output regulated power supply module provides 3.3V voltage; U5 XC62FP 3.3V power module is separately the power supply of bluetooth module and audio coder ﹠ decoder (codec); U15 LM7805 power module provides 5V voltage; The U7 supply socket; The U9 buzzer; The U3 W986432DH China SDRAM of nation, 8M Byte; U4 MT8888 dual-tone multifrequency produces chip; U12 MC34014 voice network chip.