CN1212580C - Method and its device for household network gateway - Google Patents

Method and its device for household network gateway Download PDF

Info

Publication number
CN1212580C
CN1212580C CN 02117323 CN02117323A CN1212580C CN 1212580 C CN1212580 C CN 1212580C CN 02117323 CN02117323 CN 02117323 CN 02117323 A CN02117323 A CN 02117323A CN 1212580 C CN1212580 C CN 1212580C
Authority
CN
China
Prior art keywords
data
microprocessor
command
home network
order
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.)
Expired - Fee Related
Application number
CN 02117323
Other languages
Chinese (zh)
Other versions
CN1458598A (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.)
Qinghua Tongfang Co Ltd
Original Assignee
Qinghua Tongfang 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 Qinghua Tongfang Co Ltd filed Critical Qinghua Tongfang Co Ltd
Priority to CN 02117323 priority Critical patent/CN1212580C/en
Publication of CN1458598A publication Critical patent/CN1458598A/en
Application granted granted Critical
Publication of CN1212580C publication Critical patent/CN1212580C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The present invention relates to a method and a device for household network gateways, which belongs to the field of network communication. The present invention has the technical scheme that request information of an Internet interface is transmitted to a microprocessor through an electronic pulse transformer and a protocol conversion processing chip; the microprocessor processes and transmits data to a household network interface; the household network interface transmits back a command and the data to an I/O port of the microprocessor; the microprocessor analyzes and processes the data transmitted back; the data is exchanged through the protocol conversion processing chip; then, the exchanged data is transmitted to the Internet interface through the electronic pulse transformer; both of the protocol conversion processing chip and the microprocessor carry out data processing on received information by invoking a program in a fast wiping and writing memory FLASH and the data in a static read-write memory SRAM. The present invention is mainly applied to household network systems.

Description

A kind of method that home network device is controlled
Technical field
The present invention relates to a kind of method that home network device is controlled, belong to field of network communication.
Background technology
Along with extensively popularizing of Internet network, utilize the internet to realize to become one of main mode of remote access home network to the control of home network.Be not specifically designed to the device of browsing and monitor equipment in the family and still have in the prior art.The Illinois, US publication number is that 1258152 patent mainly is to solve to transfer data to a base station and communication unit and do not introduce the obstruction that uses network and the problem of delay basically.The publication number of Utah, USA is that 129585 patent relates generally to permission transmits data between one or more procotols and one or more control protocols a kind of universal gateway.The Paris, FRA publication number for 1291031 patent just be used for for an IP of Packet Data Network particularly the user of internet the intelligent network business service method is provided, realize some simple operational line request functions.In sum, existing technology can only realize the business that some are fairly simple, can not satisfy by the internet and control home network, browses and monitor the needs of equipment in the family.
Summary of the invention
At above-mentioned problems of the prior art, the purpose of this invention is to provide a kind of method that home network device is controlled, it can monitor home network by the internet, and can directly check or control the equipment in the family on webpage.
In order to reach above-mentioned goal of the invention, technical scheme of the present invention realizes as follows:
A kind of method that home network device is controlled the steps include: 1) the gateway apparatus electrifying startup, and carry out initialization; 2) the serial transmission buffer SerialSend Buffer by microprocessor sends the IP address and demands the bus coupling unit Bus Couple Unit of order to each equipment on the home network, and the bus coupling unit is responded the IP address and demanded the initial configuration work of just being carried out the IP address after the order by microprocessor; 3) uninterruptedly retrieve the Internet interface, and judgement has or not data acquisition and order request on the net; 4) if do not have, then return step 3),, then data acquisition and order request are dumped in the reception buffer Receive Buffer of microprocessor if having; 5) the order kind and the requirement of microprocessor judges received data:
If table look-up command, just by microprocessor the data back among the impact damper meter-x that is pre-stored in the data special use of tabling look-up to transmission buffer Send Buffer, send to Internet then;
If the requirement order of master data information and basic equipment information, microprocessor is judged order, the line data Structure Conversion of going forward side by side is about to behind master data information becomes concrete home network with the basic equipment information translation the networking command command sequence is placed into serial transmission buffer Serial Send Buffer, and the microprocessor forward command is to the bus coupling unit Bus Couple Unit of each equipment on the home network then;
If inquiry and control order far away, microprocessor just is placed into serial transmission buffer Serial Send Buffer to corresponding command word, device number, sends to the bus coupling unit Bus Couple Unit of each equipment on the home network then;
If short message data request command, microprocessor is judged order, after the line data Structure Conversion of going forward side by side promptly converts the short message data request command to corresponding home network order, just the brief literal message with the user is placed in the serial transmission buffer Serial SendBuffer, send to home network then, corresponding display module will demonstrate literal; 6) interface of the bus coupling unit BusCouple Unit of each equipment on continual inquiry of microprocessor and the home network, and judgement has or not return data; 7) if no datat is then returned step 6); If data are arranged, then microprocessor the data conversion storage that receives from bus coupling unit Bus Couple Unit in serial received impact damper Serial Receive Buffer; 8) data received of microprocessor judges are which orders corresponding response data with:
If IP address configuration special command, microprocessor just carries out the configuration of IP address and digital format is converted to the format conversion of serial data form, after configuration and form are changed, then the IP address is sent to the internet by serial transmission buffer Serial Send Buffer;
If with querying command, control order far away, master data information and the relevant response data of basic equipment information requirements order, then microprocessor arrives serial transmission buffer Serial Send Buffer with command word, device number, the data conversion storage of data, send to Internet then, and present these information intuitively by webpage;
If the response data relevant with the special command of tabling look-up, then microprocessor is stored in it among impact damper meter_X of the data special use of tabling look-up through after device number X is judged temporarily, and the data of depositing here will constantly be refreshed by follow-up latest data.
The present invention is owing to adopted above-mentioned technical scheme, can be responsible for receiving the data of Internet, send to home network, perhaps receive data from home network, send to Internet, thereby finish from Internet and browse various device state the home network, the data that can inquire about water meter, ammeter, gas meter, heating meter also can be controlled opening and turn-offing of various device in the family.
Description of drawings
Fig. 1 is the process flow diagram of the inventive method;
Fig. 2 is the fundamental diagram of the gateway apparatus of realization the inventive method;
Fig. 3 is a specific embodiment circuit connection diagram of realizing the gateway apparatus of the inventive method;
Fig. 4 is related peripherals of the gateway apparatus of realization the inventive method and the graph of a relation between the background system software.
The present invention is further illustrated below in conjunction with accompanying drawing and concrete embodiment.
Embodiment
Referring to Fig. 1, a kind of method that home network device is controlled the steps include: 1) the gateway apparatus electrifying startup, and carry out initialization; 2) the serial transmission buffer Serial Send Buffer by microprocessor sends the IP address and demands the bus coupling unit Bus Couple Unit of order to each equipment on the home network, and the bus coupling unit is responded the IP address and demanded the initial configuration work of just being carried out the IP address after the order by microprocessor; 3) uninterruptedly retrieve the Internet interface, and judgement has or not data acquisition and order request on the net; 4) if do not have, then return step 3),, then data acquisition and order request are dumped in the reception buffer Receive Buffer of microprocessor if having; 5) the order kind and the requirement of microprocessor judges received data:
If table look-up command, just by microprocessor the data back among the impact damper meter_X that is pre-stored in the data special use of tabling look-up to transmission buffer Send Buffer, send to Internet then.Table look-up and have timing function, by the prefabricated order of multi-table query, half an hour is just tabled look-up data storage through serial transmission buffer Seriai Send Buffer in corresponding meter_X to table look-up command of the bus coupling unit Bus of each equipment on home network Couple Unit transmission and with up-to-date at every interval.In case user or host computer have retrieval to require just immediately the latest data of tabling look-up to be sent to Internet, to avoid and to stop up the long response time that brings by the data of home network.The benefit of doing like this is exactly to have reduced the user home network is being operated the time of being waited for;
If the requirement order of master data information and basic equipment information, microprocessor is judged order, the line data Structure Conversion of going forward side by side is about to behind master data information becomes concrete home network with the basic equipment information translation the networking command command sequence is placed into serial transmission buffer Serial Send Buffer, and forward command is to the bus coupling unit Bus Couple Unit of each equipment on the home network then;
If inquiry and control order far away, microprocessor just is placed into serial transmission buffer Serial Send Buffer to corresponding command word, device number, sends to the bus coupling unit Bus Couple Unit of each equipment on the home network then;
If short message data request command, microprocessor is judged order, after the line data Structure Conversion of going forward side by side promptly converts the short message data request command to corresponding home network order, just the brief literal message with the user is placed in the serial transmission buffer Serial SendBuffer, send to home network then, corresponding display module will demonstrate literal; 6) interface of the bus coupling unit BusCouple Unit of each equipment on continual inquiry of microprocessor and the home network, and judgement has or not return data; 7) if no datat is then returned step 6); If data are arranged, then microprocessor the data conversion storage that receives from bus coupling unit Bus Couple Unit in serial received impact damper Serial Receive Buffer; 8) data received of microprocessor judges are which orders corresponding response data with:
If IP address configuration special command, microprocessor just carries out the configuration of IP address and digital format is converted to the format conversion of serial data form, after configuration and form are changed, then the IP address is sent to the internet by serial transmission buffer Serial Send Buffer;
If with querying command, control order far away, master data information and the relevant response data of basic equipment information requirements order, then microprocessor arrives serial transmission buffer Serial Send Buffer with command word, device number, the data conversion storage of data, send to Internet then, and present these information intuitively by webpage;
If the response data relevant with the special command of tabling look-up, then microprocessor is stored in it among impact damper meter_X of the data special use of tabling look-up through after device number X is judged temporarily, and the data of depositing here will constantly be refreshed by follow-up latest data.
Below above-mentioned various command is further specified:
1, master data message command (complex command): the configuration information that obtains system in the time of each system initialization by this order;
2, basic equipment message command (complex command): in the time of each system initialization with this command execution to obtain system-wide facility information;
3, IP address function order (complex command): in the time of each system initialization with this command execution to obtain the IP address of subsystem;
4, short message order (complex command): by network the content of short message is sent in the home network, realize the demonstration of light emitting diode;
5, querying command (simple command): equipment state and device layout in the inquiry home network;
6, table look-up command (simple command): the equipment state and the numerical value of the various tables in the inquiry home network;
7, control order far away (simple command): the equipment state in the far-end control home network.
Referring to Fig. 2, realize that the gateway apparatus of the inventive method comprises electronic impulse transformer 1, protocol conversion process chip 2, microprocessor 3, the chip 4 that resets, program download interface 5, be used for stored program flash memory FLASH6, static read/write memory SRAM7.The solicited message of Internet interface 8 is through electronic impulse transformer 1 and protocol conversion process chip 2, be sent to the I/O mouth of microprocessor 3, home network interface 9 is handled and sent it to 3 pairs of data of microprocessor, home network interface 9 passes back to order and data in the I/O mouth of microprocessor 3, the data of 3 pairs of passbacks of microprocessor are carried out analyzing and processing, carry out exchanges data by protocol conversion process chip 2 again, Jiao Huan data are sent to Internet interface 8 through electronic impulse transformer 1 then.Protocol conversion process chip 2 carries out exchanges data by program and the data among the static read/write memory SRAM7 called in the flash memory FLASH6 to the information that receives.Microprocessor 3 is handled the data that transmit according to the program of demarcating among data of demarcating among the static read/write memory SRAM7 and the flash memory FLASH6.Program download interface 5 is downloaded for whole microprocessor 3 provides initial Single Chip Microcomputer (SCM) program, and the signal that the chip 4 that resets sends according to program download interface 5 sends reset signal and gives microprocessor 3 before program is downloaded.
Referring to Fig. 3, in being the microprocessor 3 of Rabbit2000, employed model contains CPU, I/O mouth.When receiving from the host computer forward data, Internet interface 8 asks for or during command request, through model is the electronic impulse transformer 1 of PM34-1006M, the filtering circuit of forming via shunt capacitance C11~C14 again, filtering out and sending model to behind the noise is RTL8019AS protocol conversion process chip 2, carries out protocol conversion.Normally whether wherein, resistance R 22 is to follow resistance, in addition by the show state of current-limiting resistance R23, R24 control LED O and LED1, be convenient to the judgment task situation like this.In addition, resistance R 25, crystal oscillator XT3, capacitor C 15, the C16 that is connected on protocol conversion process chip 2 the 50th, 51 pin constituted an oscillation circuit.When protocol conversion process chip 2 carries out protocol processes, call model and be program in the flash memory FLASH6 of SST29EE010 and model and be the data among the HY628100B static read/write memory SRAM7, program and data according to these demarcation are handled the request of sending from Internet, give the microprocessor 3 that model is Rabbit2000 by the I/O mouth then, microprocessor 3 carries out data processing and relevant work according to the program of demarcating among the data of demarcating among the static read/write memory SRAM7 and the flash memory FLASH6 to the data that transmit.Then pass through 9 result transmission of handling of home network interface to family's network of network functional node.After family's network receives these orders or data of transmitting, just these data are handled by domestic network system.If handle the back data that will return are arranged, just back pass back to microprocessor 3 through home network interface 9, microprocessor 3 carries out analyzing and processing according to the data of storing among program of demarcating among the flash memory FLASH6 and the static read/write memory SRAM7 to the information of passback, carry out exchanges data by protocol conversion process chip 2 again, through Internet interface 8 final result is shown on subscriber computer then.Described flash memory FIASH6 is used for the working routine of storage microprocessor 3, is to provide the software support for this device.Described static read/write memory SRAM7 is used for the required data of storage microprocessor 3.Wherein, a filtering circuit is arranged all among above-mentioned flash memory FIASH6 and the static read/write memory SRAM7, form by capacitor C 8 and capacitor C 9 respectively.The program download interface 5 that links to each other with microprocessor 3 is for this device provides initial Single Chip Microcomputer (SCM) program download function, to guarantee the operate as normal of single-chip microcomputer.Wherein, connected resistance R 1 and R3 are pull-up resistors, and resistance R 14 and R15 are pull down resistor.Resistance R 6~R13 has constituted the pull-up resistor circuit of microprocessor 3.Model is that the chip 4 that resets of MIC811L also is connected with the 37th pin of microprocessor 3, and it mainly is to be used for downloading preceding reset signal for microprocessor 3 provides program.What be connected with 90,91 pin with microprocessor 3 the 40th, 41 in addition, is two oscillation circuits.Wherein, last loop is made up of resistance R 16, R17 and capacitor C 4, C5 and crystal oscillator XT1; One loop, back is made up of resistance R 18, R19 and capacitor C 6, C7 and crystal oscillator XT2.
Referring to Fig. 4, because the gateway apparatus of realizing the inventive method has played function served as bridge for a data channel is provided between website and the home network in form.Thereby its concrete implementation method and a series of hardware and softwares associated therewith of process need are supported.For can be vivid more concrete description realizes the gateway apparatus relation in use of the inventive method, it is as follows to describe its main association and data flow:
1) user at first signs in to Internet, visits the Web website of this family network then, and after the login homepage, through its identity of verification, if legal users, the Web website can write the requirement of passback essential information in the database the inside.
2) after the website bitcom obtains the requirement of back information, initiatively create TCP/IP and be connected with this device.Get nowhere if connect, just the information of connection failure is write database, be responsible for being shown to the user by the Web website; If successful connection, the order that just sends the passback essential information is to home network.
3) gateway apparatus is monitored the connection of website bitcom and is replied it, thereby finishes the building work that TCP/IP connects.After the order that receives the passback essential information, gateway apparatus just all returns the essential information of home network and gives the website bitcom.
4) after the website bitcom has obtained the essential information of home network, they are write database, and notice Web website is with the information on the patterned mode explicit user home network.
5) after the Web website was shown to the user to the information of home network with patterned mode, the user just can operate all devices of home network in view of the above, for example, and the numerical value of opertaing device switch, query facility state, inquiry gauging table etc.If the user has selected certain operation with mouse, the Web website writes database to user's specific requirement.
6) the website bitcom requires to send to gateway apparatus to user's operation.
7) gateway apparatus changes into the networking command of concrete home network after the operation of interpreting user requires, and is transmitted to corresponding apparatus control module on the home network.
8) correlation module receives the instruction of gateway apparatus, promptly finishes corresponding action, if this order need be replied, just returns an instruction and gives gateway apparatus, and information is relayed along opposite path then, up to being presented in face of the user.
When 9) user withdrawed from, the Web website write database withdrawing from information.
10) after the website bitcom obtained withdrawing from information, disconnection was connected with the TCP/IP of gateway apparatus, all data of the inside, storehouse that clears data simultaneously.
More than be process and the method that the user passes through user network page operations home network, the simple operations of having set forth the user changes into complicated data stream, the flow process in home network.

Claims (1)

1. the method that home network device is controlled the steps include: 1) the gateway apparatus electrifying startup, and carry out initialization; 2) the serial transmission buffer SerialSend Buffer by microprocessor sends the IP address and demands the bus coupling unit Bus Couple Unit of order to each equipment on the home network, and the bus coupling unit is responded the IP address and demanded the initial configuration work of just being carried out the IP address after the order by microprocessor; 3) uninterruptedly retrieve the Internet interface, and judgement has or not data acquisition and order request on the net; 4) if do not have, then return step 3),, then data acquisition and order request are dumped in the reception buffer Receive Buffer of microprocessor if having; 5) the order kind and the requirement of microprocessor judges received data:
If table look-up command, just by microprocessor the data back among the impact damper meter-x that is pre-stored in the data special use of tabling look-up to transmission buffer Send Buffer, send to Internet then;
If the requirement order of master data information and basic equipment information, microprocessor is judged order, the line data Structure Conversion of going forward side by side is about to behind master data information becomes concrete home network with the basic equipment information translation the networking command command sequence is placed into serial transmission buffer Serial Send Buffer, and the microprocessor forward command is to the bus coupling unit Bus Couple Unit of each equipment on the home network then;
If inquiry and control order far away, microprocessor just is placed into serial transmission buffer Serial Send Buffer to corresponding command word, device number, sends to the bus coupling unit Bus Couple Unit of each equipment on the home network then;
If short message data request command, microprocessor is judged order, after the line data Structure Conversion of going forward side by side promptly converts the short message data request command to corresponding home network order, just the brief literal message with the user is placed in the serial transmission buffer Serial Send Buffer, send to home network then, corresponding display module will demonstrate literal;
6) interface of the bus coupling unit Bus Couple Unit of each equipment on continual inquiry of microprocessor and the home network, and judgement has or not return data; 7) if no datat is then returned step 6); If data are arranged, then microprocessor the data conversion storage that receives from bus coupling unit BusCouple Unit in serial received impact damper SerialReceive Buffer; 8) data received of microprocessor judges are which orders corresponding response data with:
If IP address configuration special command, microprocessor just carries out the configuration of IP address and digital format is converted to the format conversion of serial data form, after configuration and form are changed, the IP address is sent to the internet by serial transmission buffer Serial Send Buffer;
If with querying command, control order far away, master data information and the relevant response data of basic equipment information requirements order, then microprocessor arrives serial transmission buffer Serial Send Buffer with command word, device number, the data conversion storage of data, send to Internet then, and present these information intuitively by webpage;
If the response data relevant with the special command of tabling look-up, then microprocessor is stored in it among impact damper meter_X of the data special use of tabling look-up through after device number X is judged temporarily, and the data of depositing here will constantly be refreshed by follow-up latest data.
CN 02117323 2002-05-17 2002-05-17 Method and its device for household network gateway Expired - Fee Related CN1212580C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02117323 CN1212580C (en) 2002-05-17 2002-05-17 Method and its device for household network gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02117323 CN1212580C (en) 2002-05-17 2002-05-17 Method and its device for household network gateway

Publications (2)

Publication Number Publication Date
CN1458598A CN1458598A (en) 2003-11-26
CN1212580C true CN1212580C (en) 2005-07-27

Family

ID=29426530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02117323 Expired - Fee Related CN1212580C (en) 2002-05-17 2002-05-17 Method and its device for household network gateway

Country Status (1)

Country Link
CN (1) CN1212580C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100484023C (en) * 2005-07-28 2009-04-29 华为技术有限公司 Method and system for initial configuration of managed apparatus
CN100525251C (en) * 2006-11-30 2009-08-05 中国科学院计算技术研究所 A method for network address translation
CN102789434B (en) * 2012-06-28 2016-05-25 北京鼎汉技术股份有限公司 A kind of data buffering method and system
CN104581077A (en) * 2015-01-16 2015-04-29 北京京怀龙腾科技有限公司 Entrance guard visual intercom system
CN108616372A (en) * 2016-12-12 2018-10-02 中国航空工业集团公司西安航空计算技术研究所 FC switch status inquiry based on serial ports and control method

Also Published As

Publication number Publication date
CN1458598A (en) 2003-11-26

Similar Documents

Publication Publication Date Title
CN107181659B (en) Intelligent cabinet communication method and system based on RS485 bus
US6363423B1 (en) System and method for remotely generating, assigning and updating network adapter card in a computing system
JP6043303B2 (en) Adapter device for coupling industrial field devices to an industrial wireless network, and related systems and methods
US7287062B2 (en) Home network system and method for operating the same
CN100345427C (en) Home network system and method for operating the same
US20020067717A1 (en) Autonomous local area distributed network
EP1257914B1 (en) Self-configurable distributed system
CN109889416A (en) A kind of smart home system and construction method based on micro services framework
CN1427587A (en) Method and system for remote updating function of domestic apparatus
CN104052759A (en) System for realizing add-and-play technology of internet of things
JP2004064727A (en) Remote connection system and remote connection method for internet refrigerator
CN101729562A (en) Reliable data transmission method under unreliable network connection
CN102412993A (en) Method and system for automatically displaying multiple terminals in XML (Extensive Makeup Language) interface
CN1212580C (en) Method and its device for household network gateway
CN108512907B (en) Semi-transparent transmission equipment communication method
CN111459632A (en) Serial port agent for calling terminal application program and implementation method
CN105279156B (en) Network information communication means and network information browsing apparatus
CN100470546C (en) Data center server, data service system and data query method
JP2001100810A (en) Controller
CN1555512A (en) Wireless protocol stack based installation bus gateway and method of its operation
CN1305332C (en) Transmission of data packets over CDMA type cellular telephone
EP1696627A1 (en) Apparatus and system to retrieve information in a network
CN2550973Y (en) Device for household network gateway
JP3507027B2 (en) A method and system for accessing production facility status information using the Internet
CN1549520A (en) Method for realizing universal simplified gateway equipment in intelligent home system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C56 Change in the name or address of the patentee

Owner name: TONGFANG CO., LTD.

Free format text: FORMER NAME OR ADDRESS: TSINGHUA TONGFANG CO., LTD.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20050727

Termination date: 20170517