CN1380613A - Intelligent domestic network system bus interface unit - Google Patents

Intelligent domestic network system bus interface unit Download PDF

Info

Publication number
CN1380613A
CN1380613A CN 02117322 CN02117322A CN1380613A CN 1380613 A CN1380613 A CN 1380613A CN 02117322 CN02117322 CN 02117322 CN 02117322 A CN02117322 A CN 02117322A CN 1380613 A CN1380613 A CN 1380613A
Authority
CN
China
Prior art keywords
interface unit
bus interface
communication
layer
network system
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
CN 02117322
Other languages
Chinese (zh)
Other versions
CN1231850C (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.)
Tsinghua University
Qinghua Tongfang Co Ltd
Original Assignee
Tsinghua University
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 Tsinghua University, Qinghua Tongfang Co Ltd filed Critical Tsinghua University
Priority to CN 02117322 priority Critical patent/CN1231850C/en
Publication of CN1380613A publication Critical patent/CN1380613A/en
Application granted granted Critical
Publication of CN1231850C publication Critical patent/CN1231850C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invented bus type interface unit used in an intelligent home network system belongs to the area of the intelligent home system in bus network type. The sand unit incldues the module for receiving and transmitting data, the communication controller connected to the said module as well as the software module stored on the unit and being composed of the system programs and application programs. The module for receiving and transmitting data consists of the transformer, DC/DC converter connected to the said transformer, the voltage control circuit and the signal processing circuit. The signal processing circuit is connected to the communication controller through three communications wires, transmission, receive and control. The voltage control module is connected to the communication controller through two controlling wires: save and reset.

Description

Intelligent domestic network system bus interface unit
Technical field
The invention belongs to the intelligent home system based technical field of bus network form, be particularly related to and be used for the bus of household equipment with wired home inside linked to each other, the assistance household equipment is finished the data communication on the bus, and household equipment is carried out the home bus interface unit design of corresponding operation.
Background technology
Intelligent domestic network system is meant that within the family portion couples together the formation home network by certain transmission medium (as line of electric force, twisted-pair feeder, radio etc.) with various electrical equipments and electrical subsystem, adopt the uniform communication agreement, internally realize resource sharing; To external enwergy by gateway and extranets (as Internet, ISDN, HFC etc.) interconnection carrying out message exchange.Can realize following function by home network:
One, to the control and the management of electrical equipment
Can control electric equipments such as lamp, water heater, air-conditioning by household radio equipment (as telepilot), personal call or internet.
Two, household safety
The emergency condition (as fire) that household internal occurs can be reported to the police from trend master cellular phone or administrative center; Kinsfolk's medical help information energy teletransmission is to the community medicine center; The prison of entrance hall or window is stolen situation can pass to the estate management center.
Three, energy management
Three tables (ammeter, natural gas meter, water meter) show and the administrative center of making a copy for automatically, exempt property and disturb; Time switch heating path and rock gas are reduced expenses and are guaranteed safety.
Current many intelligent home system based, adopt centralized control, for example: household electrical appliance centralized control system (application number: 98110796.6), this central controlled mode, wiring has brought certain degree of difficulty to engineering, and the reliability of this system is bad, in case central control unit goes wrong, system is just in paralyzed state so.Occur in the recent period that some are intelligent home system based, replaced conventional data line communication with wireless telecommunications, but also all be the mode that adopts centralized control, the stability of system does not still improve.
At present also the someone is devoted to the research of distributed intelligence home system, and for example: easily occupy space-time company, adopt the distributed bus control system exactly, it adopts the bus of four-wire system, and the home network architecture that is made of its network-bus interface unit as shown in Figure 1.Among the figure, each household equipment links to each other with a bus interface respectively, and each bus interface links to each other with two power leads 11,12 and two data lines 13,14 respectively.The principle of work of the telepilot of this system as shown in Figure 2, wherein A is the intelligent home network bus, X1 easily occupies the signal that the telepilot in the space-time system sends to the infrared receiving module of system, X2 is the signal that actual domestic electrical equipment remote controller sent of simulation.At first telepilot sends control signal X1 to system, receive by the infrared receiving module that disposes in the network-bus interface, processing through network interface unit, information is communicated to the network interface unit that connects infrared transmitting element by the data line among the network-bus A, the signal that actual domestic electrical equipment remote controller sent by the simulation of infrared transmitting element again conveys to household appliances and equipment with the information X2 of telepilot.
That is that all right is ripe for above-mentioned technology, and its reason is:
In the system that Bus Interface Unit constitutes, the system of centralized control, the coordination of each functions of the equipments and action is finished by Centralized Controller in the system, in the software of Centralized Controller, storing each equipment and operation and equipment the action between contact, by central controller come opertaing device and the operation between logical relation.Because in centralized control system, the logical relation storage and uniform is in a processor, and the operation that system carries out all coordinated to control by a processor, so, in centralized control system, the configuration of system and realizing and difficulty not really.Yet in distributed system, each separate unit will be worked in coordination in the system, logical relation between between the necessary storage unit in each unit and unit moves so, this has brought certain difficulty just for configuration, modification and the maintenance of distributed system logical relation.The configuration of the logical relation in system and a lot of performances that storage mode directly has influence on system: simplicity, dirigibility, ease for maintenance and modifiability etc. that system uses.
Can learn that from the distributed bus control system that easily occupies space-time the shortcoming of its Bus Interface Unit is:
The first, the system that this Bus Interface Unit constituted, the system configuration complexity: system does not adopt the interface of diagram plots, and when configuration technical term many, well do not mask the association between user and the application hardware.To so, system requires just than higher configuration personnel's basic technology, for not having electrical equipment and control general knowledge or concerning the unfamiliar user of system, configuration-system is relatively more difficult, does not satisfy the flexible requirement of system.Illustrate that its Bus Interface Unit internal communication mechanism is dumb.
The second, the structure of this cover system and imperfection, communication level fuzzy.It stable bad, through regular meeting's mistake, this explanation Bus Interface Unit does not have the automatic error detection function during operation,
The 3rd, the system that this Bus Interface Unit constituted adopts four-wire system (485 bus), do like this, feasible wiring is not accomplished the simplest, and wiring cost does not drop to minimum (as utilizing two lines, not only transmission node power supply but also transmit data, it is the simplest to make wiring accomplish, and wiring cost drops to minimum).
The 4th, though in this system infrared remote-control device is arranged, but remote control to household electrical appliances, the just simple imitation of the household appliances telepilot being sent signal by the infrared module in the system, be not really household electrical appliances to be linked on the home bus, and data communication is unidirectional, can only unidirectional control home appliance, can't gather the equipment state in the home system.Function and imperfection when its Bus Interface Unit design is described.
Summary of the invention
The objective of the invention is for overcoming the weak point of prior art, a kind of home bus interface unit based on GP32 is proposed, utilize this interface unit can construct distributed, as to adopt two-wire system network control system, have automatic error detection function, reliability height, low, the convenient advantage that is connected with household equipment of engineering wiring cost.
The present invention proposes a kind of intelligent domestic network system bus interface unit, comprise hardware configuration and be stored in wherein software program, it is characterized in that, said hardware configuration comprises data transmit-receive module and coupled communication controller, said communication controller is a central processing unit and is stored in wherein the software module of being made up of system program and application program, said data transmit-receive module by transformer and the DC/DC transducer, voltage control circuit and the signal processing circuit that are connected in its two ends respectively constitute; Wherein, the signal processing circuit in this data transmit-receive module links to each other by sending, receive, control three communication lines with said central processing unit; Voltage control module in the data transmit-receive module and said central processing unit by preserve, reset, two operation circuits link to each other; Said central processing unit is connected with outside equipment by P physics external interface.
Said communication controller is adoptable to be Motorola 68CH908GP32 central processing unit chip; Said data transmit-receive module adopts the FZE1065 chip.
Said application program part can comprise interface parameters, address table, address object mapping table, communication object table, user application, download sign and the verification between application program and the system program.
Said system program comprises master routine and application programming interfaces api function; Master routine comprises system initialization routine, conventional sense program, serial interface communication agreement, bus communication protocol.
Said bus communication protocol can adopt six layers of structure that meet the ISO/OSI reference model, comprises Physical layer, data link layer, network layer, transport layer, presentation layer and application layer.
Said Physical layer can adopt twisted-pair feeder as the power lead of transmission medium as signal wire and node, voltage is 28V on the twisted-pair feeder, adopt base band transmission, employing is made zero-pulsewidth coding, negative-going pulse is represented " 0 " on the bus, no pulse is represented " 1 ", and signal transmission rate is 9600-20Kbps.
Said data link layer can be made up of logical link control sublayer (LLC) and MAC sublayer (MAC), csma/collision detection (C agreement of band priority is adopted in this medium access sublayer, data link layer provides following two kinds of services: have and confirm no Connection Service, do not have the no Connection Service of affirmation, the mistake disposal route of data link layer adopt byte parity, message checking and, have confirm to serve, transmit leg active retransmission mechanism etc.;
Said network layer can adopt in message and to add number of routes 1-6 and come and will control, and message is during whenever by a transponder, and number of routes subtracts 1, and number of routes reduces at 0 o'clock, will abandon this message to next router.
Said transport layer can comprise that multicast, broadcasting, point-to-point nothing connect and point-to-point connection-oriented four kinds of connected modes.
Said application layer has adopted the method for communication object to realize, its effect is exactly the management communication object.
Whole software of the present invention all can adopt general programmed method and programming tool to finish according to foregoing.
Characteristics of the present invention and beneficial effect:
The first, this Bus Interface Unit is applied to the bus type control system, and each unit all is the separate unit of communication/control, and it is distributed utilizing the network bus control system of this interface unit structure, has improved the reliability of system;
The second, what the system that is made of this Bus Interface Unit adopted is two-wire system, compares with four-wire system and has reduced the engineering wiring cost;
The 3rd, the Design of System Software that is made of this Bus Interface Unit is complete, reasonable: system adopts complete communications protocol structure, and communication protocol meets six layers of the ISO/OSI reference model promptly: Physical layer, data link layer, network layer, transport layer, presentation layer and application layer; General external interface protocol is arranged; System has the automatic error detection function.The Bus Interface Unit operation is correct reliable.
The 4th, this Bus Interface Unit has general external interface, and general external interface protocol is arranged, and conveniently is connected with household equipment.
The 5th, the bus communication protocol regulation of the system program of this Bus Interface Unit, bus unit can define domestic. applications logical relation each other with group address, and can adopt graphical configuration surroundings to come logic control relation between the configuration device, this has simplified system configuration, modification and maintenance, has improved the dirigibility of system greatly;
The 6th, this Bus Interface Unit cooperates infrared receiving device, can carry out both-way communication with the Infrared remote controller in intelligent home system based, not only can control the equipment on the home bus, and can watch the state of equipment.The 7th, the system software of Bus Interface Unit has automatic detection to restart function; Bus Interface Unit is supported online download and programming, can upgrade the data of application program part at any time; Because the structural integrity of Bus Interface Unit, reasonable in design is so its good stability is not easy to produce mistake during operation.
Adopt intelligent home system based that this Bus Interface Unit constitutes, other intelligent home system based equipment relatively have following advantage: 1. bus form, support the various topological structures except annular, make connect up simple and convenient; 2. two lines transmission, data line and power lead are shared, have saved wiring cost; 3. each Bus Interface Unit all is independently to control/communication unit, constitutes distributed control/communication system, has improved the reliability of system greatly; 4. the bus communication protocol of this Bus Interface Unit adopts meet the ISO/OSI reference model six layers promptly: Physical layer, data link layer, network layer, transport layer, presentation layer and application layer.Csma/collision detection (CSMA/CD) agreement of band priority has been adopted in data link layer medium access sublayer, transport layer is supported the transmission that the point-to-point face is connected, multicast and three kinds of transmission modes of broadcasting, application layer has adopted design idea of oriented object, has defined application interoperability criterion.Adopt the dual mode addressing: group address mode and physical address mode make and support multiple message format on the bus, to adapt to the needs of different communication situations; 5. utilize group address to come logical relation between the definition bus interface unit, bring very big dirigibility, make things convenient for configuration, the installation and maintenance of system to system; 6. the general external interface of this Bus Interface Unit has five road I/O mouths, and supports the collection of analog quantity and digital quantity; 7. utilize peripheral hardware external hardware interface type resistance, flexibly the interface shape of definition bus interface unit and external unit: define each road I/O mouth input and output situation, definition asynchronous serial communication form, define analog acquisition etc.
Description of drawings
Fig. 1 is the existing four-wire system schematic network structure that easily occupies space-time.
Fig. 2 is for easily occupying the fundamental diagram of telepilot in the space-time system.
Fig. 3 is a Bus Interface Unit hardware configuration synoptic diagram of the present invention.
Fig. 4 is a communication controller modular structure schematic diagram of the present invention.
Fig. 5 is the universal external interface synoptic diagram of Bus Interface Unit of the present invention.
These transceiver module circuit theory diagrams of the present invention of Fig. 6.
Fig. 7 is a Bus Interface Unit whole software structure block diagram of the present invention.
The application flow block diagram of three tables when Fig. 8 is a reception message of the present invention.
Fig. 9 is the information interaction synoptic diagram between application and the system program.
Figure 10 is the workflow block diagram of software application of the present invention in transmission group message.
Figure 11 is for using the system topology synoptic diagram that the present invention constitutes.
Embodiment
Intelligent domestic network system bus interface unit of the present invention reaches embodiment in conjunction with the accompanying drawings its formation and function is described in detail as follows:
Bus Interface Unit of the present invention is respectively described below:
The hardware of Bus Interface Unit of the present invention is made up of data transmit-receive module 41 and coupled 42 two modules of communication controller as shown in Figure 3.Wherein, the CPU in the signal processing module in data transmit-receive module 41 modules and the communication controller 42 by 31 send, 32 receive, three communication lines of 33 controls link to each other.CPU in voltage control module in data transmit-receive module 41 modules and the communication controller 42 by 34 preserve, 35 reset, two operation circuits link to each other.Universal external interface in the communication controller 42 is connected with outside equipment.
What the embodiment of communication controller wherein adopted is Motorola 68CH908GP32 central processing unit (CPU) chip, and the function that it is finished mainly is: operation is stored in the software of being made up of system program, application program wherein.Its hardware comprises 8 central processing units (CPU) and universal external interface, and its principle is described as follows shown in Fig. 4,5:
1. 8 central processing units (CPU);
2. (system software takies about 10K byte to 32K in-chip FLASH program's memory space, and user application is arranged in addition
The space)
3. the random access memory of 512 bytes (RAM);
4. 1,2,3 of serial communication interface such as figure middle port D, adopt synchronously or asynchronous system;
5. numeral input, delivery outlet adopt the A cause for gossip existing;
6. the analog input mouth adopts the B cause for gossip existing;
7. the pilot lamp when downloading adopts C mouth 1 to realize, the switch of control pilot lamp adopts C mouth 0 to realize.
Universal external hardware interface module in the data transmit-receive module 42 of the present invention, it meets the standard of TTL door fully.The universal external interface is the standard interface module between Bus Interface Unit and application module, and 10 general-purpose interfaces externally are provided.The connection of its pin is shown in Fig. 5 (a) left-half, wherein, interface 1 is ground connection (GND) mouth, and interface 2 is I/O or RDI mouth, interface 3 is I/O or SCLK mouth, interface 4 is I/O or TDO mouth, and interface 5 is+the 5V power port that interface 6 is the external type mouth, interface 7 is I/O or CTS mouth, interface 8 is+the 24V power port, and interface 9 is I/O or RTS mouth, and interface 10 is a ground connection (GND) mouthful.For finishing the task of data transmission, 5 external hardware interfaces (2,3,4,7,9) are used for realizing different functions.The function that it can be finished has:
1. the digital I/O of 5 passages;
2. 5 tunnels analogies input;
3. serial line interface can move under synchronous or asynchronous system.
The universal external interface is entrenched on the shell of Bus Interface Unit, shown in Fig. 4 (a) left-half.
The universal external interface is except carrying out between Bus Interface Unit and the application module the data transmission, and application module can also be powered by Bus Interface Unit by the universal external interface.Bus Interface Unit provides+5V and+supply voltage of 24V.Bus Interface Unit is by No. 6 pin identification external application module types of universal external interface.In order to reach this purpose, each external application module all is connected with sign resistance R 1---an interface type resistance between No. 5 pin and No. 6 pin, interface type resistance R 1 and second resistance R 2 common formation bleeder mechanism that are installed in above the Bus Interface Unit are shown in Fig. 4 (b).The voltage that Bus Interface Unit is measured the 6th pin obtains its A/D conversion value, and compares with the represented type of interface type resistance.This process can prevent that application program from starting before a suitable applications module is loaded.The user obtains different application (as digital quantity 2 inputs 3 outputs, digital quantity 1 input 4 outputs, asynchronous serial input and output etc.) by different interface type resistance is set on the interface externally in addition.The universal external interface can connect external units such as lamp, switch, household electrical appliances by external application module.
The embodiment of data transmit-receive module of the present invention adopts the FZE1065 chip, and this chip comprises transformer, DC/DC transducer, voltage control circuit and signal processing circuit,, its circuit theory diagrams as shown in Figure 6, the major function that it is finished has:
1. insulating power supply and data;
2. carry out signal Processing for communication controller;
3. provide+5 volts operating voltage;
4. provide+24 volts voltage;
5. controlling bus voltage and operating voltage.
6. the enable pin of chip FZE1065 is to allow to send control end.The data stream that the communication controller module sends
Send into chip FZE1065 from the send pin, by the sink and the output of source pin of chip, logical at last
Overcoupling coil U2 is coupled on the bus.
7. chip receives the control that is not subjected to the enable pin.Data-signal on the bus enters chip by pickup coil
Sink and source pin, the qrec pin output stream of chip is given the communication controller module.
8. bus provides electric energy for the circuit of chip and back by the vpbus pin of chip.Chip generation+5v
Voltage provides power supply for the back circuit by pin 20.
When chip output+5v voltage be lower than+4.5v the time, the reset pin of chip 1065 is exported the reset signal
(low level) resets microprocessor for the communication controller module of back.
When bus voltage be lower than+20v the time, the save pin of chip 1065 output save signal (low level).
Use data transmit-receive module of the present invention, the system that makes can adopt two-wire system, is exactly that data line and power lead are total to
With, in the transmission of the enterprising line data of power lead.The process of easy like this wiring has reduced the engineering wiring
Cost.
The software of present embodiment Bus Interface Unit mainly comprises application program part and system program part, as shown in Figure 7.
(1) the APD branch comprise between application program and the system program interface parameters-systematic parameter, three tables (address table, address object mapping table, communication object table), user application, download sign and verification and etc., download sign wherein is used for the signage applications program part and whether has downloaded to Bus Interface Unit; Verification and mainly be meant application storing part the memory cell content verification and (a memory cell content successively addition obtain and), be used for the operating memory cell content false of verification.The major function of application program is that the user of external interface request is conveyed to system program by communication object, and sends the request of system program to user.
Three important forms in the application program are: address table, contingency table and communication object attribute list.These three tables are placed in the storer of Bus Interface Unit, and address table is being deposited all group addresss that relate to; Depositing the template(-let) of all communication objects in the object properties table; And contingency table is deposited is corresponding relation between communication object and the group address.Contingency table is the bridge block between communication object table and the address table, and the conversion between group contact and the communication object could be correctly finished in the associated working of three tables.
(2) system program is a multiple task operating system, and major function is that the request of finishing between application program and serial line interface or the bus transmits, and realizes the management of total system.Comprise master routine and application program interface function (API):
Master routine mainly comprises system initialization routine, conventional sense program, serial interface communication agreement, bus communication protocol.System initialization routine comprises conventional initialization, initialization of variable of CPU etc.; The conventional sense program mainly is whether detection application program part, external interface resistance type, message etc. are correct, to guarantee the normal operation of program; The serial interface communication agreement mainly is to be used for realizing that Bus Interface Unit and external unit carry out data communication; Bus communication protocol mainly is the data communication that is used for realizing between the Bus Interface Unit, and bus communication protocol meets five layers of the ISO/OSI reference model promptly: Physical layer, data link layer, network layer, transport layer, presentation layer and application layer.Csma/collision detection (CSMA/CD) agreement of band priority has been adopted in data link layer medium access sublayer, transport layer is supported the transmission that the point-to-point face is connected, multicast and three kinds of transmission modes of broadcasting, application layer has adopted design idea of oriented object, has defined application interoperability criterion.Adopt the dual mode addressing: group address mode and physical address mode.
The bus communication protocol of this Bus Interface Unit adopts meet the ISO/OSI reference model six layers promptly: Physical layer, data link layer, network layer, transport layer, presentation layer and application layer.Csma/collision detection (CSMA/CD) agreement of band priority has been adopted in data link layer medium access sublayer, transport layer is supported the transmission that the point-to-point face is connected, multicast and three kinds of transmission modes of broadcasting, application layer has adopted design idea of oriented object, has defined application interoperability criterion.Adopt the dual mode addressing: group address mode and physical address mode make and support multiple message format on the bus, to adapt to the needs of different communication situations;
Six layers of bus communication protocol are described in detail as follows:
Physical layer
Adopt twisted-pair feeder as transmission medium, as the power lead of signal wire and node, voltage is 28V on the twisted-pair feeder.Adopt base band transmission, coded system adopts and makes zero-pulsewidth coding, and negative-going pulse is represented " 0 " on the bus, and no pulse is represented " 1 ".Signal transmission rate is 9600-20Kbps.
Each byte that sends on the bus all has start bit, position of rest and a check bit.The order of data bit transmission is to be begun to transmit successively by low level, until end.The transmission sequence of byte also is to be begun to transmit successively by low level, until end.
Data link layer
Comprise logical link control sublayer (LLC) and MAC sublayer (MAC).
The LLC sublayer: be responsible for the bit component frame of Physical layer, the form of checking received frame and destination address, detection transmit wrong and retransmit frames, the flow velocity of adjusting frame to be to coordinate quick transmit leg and take over party etc. at a slow speed.
Media access control sublayer: be mainly used to solve the problem that a plurality of sending nodes are shared same channel, MAC also will solve the time delay between the different frame in addition, and purpose also is in order to reduce conflict and to make each node send opportunity relatively more impartial.Adopt the CSMA/CA algorithm of band priority, the csma that can avoid conflict.Several Bus Interface Units may begin to transmit simultaneously.According to the CSMA/CA algorithm, for fear of owing to conflict makes frame destroyed, a delivery unit must be checked each, sees that circuit is whether busy or have conflict to occur.If Physical layer is indicated line be busy or have conflict to occur, then explanation has the frame of high priority to transmit.For avoiding further conflict, transmission must stop immediately.The part of the high priority frame that the part that all have sent in the frame can be considered to sending.
Data link layer provides following two kinds of services: the no Connection Service of affirmation is arranged, do not have the no Connection Service of affirmation.
Mistake handle to adopt byte parity, message checking and, initiatively retransmission mechanism etc. of the service of affirmation, transmit leg arranged.
Network layer
Network layer mainly solves the routing problem between the subnet and between subnet and the extranets between transport layer and link layer.
A. consider the communication capacity of network and later extensibility, network node address is defined as 16;
B. the network layer design generation of message of need avoiding circulating.When message during,, carry out route control to it for avoiding producing the circulation message by the transponder between the bus.Concrete solution is exactly to add number of routes 1-6 to control in message, and when message whenever passed through a coupling mechanism or transponder, number of routes subtracted 1, and number of routes reduces at 0 o'clock, will abandon this message to next router.Message at most can be by 6 coupling mechanisms or transponder like this, so during the design system topological structure, it is also noted that this point.The Frame TPDU that network layer need pass over transport layer assembles, and forms network layer data frame NPDU.
Transport layer
Transport layer provides four kinds of different annexations:
(1) put multiple spot connectionless-mode (multicast): adopt the group address mode to realize a little arriving multicast communication, as with
Switch of looking and background light are set to a group, then can realize the switch and the background light brightness regulation of TV
Interlock.
(2) put to a have connectionless-mode (broadcasting): adopting group address mode and group address is 0.
(3) point-to-point connectionless-mode:
(4) point-to-point towards connected mode: this transmission mode can guarantee for towards the service that connects (connection is arranged)
Very high transmission service quality should to main control equipment, network upgrade equipment as the transfer equipment initialization information
With program etc.; Connection-oriented transmission is adopted for point-to-point affirmation, initiatively retransmission mechanism guarantees control
The accuracy of system channel signal.
Presentation layer
Presentation layer is explained the transmission requests that application layer proposes, and is ready to data to following each layer, produces message step by step for them.Application layer data is called APDU (Application Layer Protocol Data Unit).
Application layer
Application layer has adopted the method for communication object to realize, its effect is exactly the management communication object.Application layer is converted to communication object number with hyphen, it and handle the message of receiving, upgrade the value of communication object and put updating mark.
Application program interface function in the present embodiment system program (API) comprises that some are employed the function that program is often called, the function of operating as the function of realizing the A/D conversion, to the external interface of Bus Interface Unit etc.These functions are provided by system program.
In the system program, do not have only a kind of communication modes of group message, also done special design for big data quantity transmission modes such as application program download and telepilot mixing system functions: promptly connection-oriented data transmission---system has taked to connect earlier passage, sends out the mode of sequenced frame then and carries out data transmission.
The workflow of three tables such as Fig. 8 institute were not when the system program of present embodiment was organized message, renewal communication object value in reception:
When step 1) received the group message when the Bus Interface Unit on family's bus network, system program was checked the group address in this message in its address table;
Step 2) if this group address in the address table of this Bus Interface Unit, is then searched the relevant connection of this group address correspondence in the contingency table according to group number;
Step 3) is searched the communication object of group address correspondence according to the relevant connection of this group address that finds in the contingency table, and just the state value of this or these communication object needs to upgrade;
The object number that step 4) finds according to previous step in the object properties table reads the attribute of the communication object that need be updated, and according to the data content that transmits in the message, upgrades operation accordingly.
The process of transmission group message at first finds to send the pairing group number of data communication object in contingency table just in time in contrast, then according to group number, searches its corresponding group address in address table.Address table, contingency table and communication object attribute list, the application of these three tables, not only set up getting in touch between communication object and the group address, the more important thing is, by they utilizations with the group notion, it is better multiplexing that some resources have been obtained, and improved the shared ability of system resource, saved the storage space of Bus Interface Unit.This also is an advantage of employing group association.
Present embodiment is adopt to change zone bit and communication object value to realize information mutual between application program and the system program, and its structural drawing such as Fig. 9 show.Communication object has updating mark, transmit status sign and request of data sign, and system program and application program detect the state of communication object sign, and the value of modified logo, is used for pass-along message, according to the change of sign, carries out operation accordingly.
Application program realizes communication by communication object (communication object).Communication object is a kind of data structure, and its communication object value can be transmitted or upgrades by system.All communication objects in the Bus Interface Unit are formed a communication object table, and first byte of communication object table is to comprise the number that communication object is described body in the table.Second byte is for pointing to the pointer of flag ram table (RAM flag table), and each flag ram comprises three signs: updating mark, request of data sign, transmit status sign.Ensuing byte is that communication object is described body (objectdescriptors), communication object is described the characteristic attribute that body and function is described corresponding communication object, comprises two bytes: configuration byte (the config byte) and type byte (the type byte).
The value of a transmission communication object can send to from transmitting apparatus by the group message and belong to same group all devices.Receive in the equipment of this group message that at all corresponding communication object value will be updated.
In order to transmit a communication object value by the group message, system software must know which group address belongs to this communication object.For this purpose, use other two tables: address table (address table) and contingency table (association table).Address table comprises employed all addresses of Bus Interface Unit, and contingency table links together group address and communication object.
A communication object can be used for describing a kind of application, and for example a communication object can be represented:
The state of (1) switch
(2) measured values (for example temperature, brightness etc.)
Communication object has been got in touch application program and system program.
Whole softwares of present embodiment all can adopt general programmed method and programming tool to finish according to foregoing.
In sum, the Bus Interface Unit of present embodiment is a central processing unit with Motorola 68CH908GP32 chip, is its operation system of software with the embedded real time operating system of multitask.Bus Interface Unit utilizes the transceive data module of self, and the data transmission on the bus is carried out in the control of the communications protocol by structural integrity.As seen each Bus Interface Unit all is independently to control/communication unit, by the bus network system of his structure, is distributed.The network system that is made of it can be a various topological structures, for example: and star-like, shown in a of Figure 10, line style is shown in the b of Figure 10, and is tree-like shown in the c of Figure 10, and mixed type is shown in the d of Figure 10 etc., among the little figure of each of Figure 10, blockage is represented interface unit, and solid line is represented network-bus.
Use present embodiment and carry out the flow process of data communication, as shown in figure 11, be described as follows (is example with transmission group message) by bus:
The function that the application program of Bus Interface Unit inside is finished comprises:
1. judge whether the communication object state changes, in fact be exactly detect with network that it is connected on endpoint node whether
Action is arranged;
2., then upgrade the value of this communication object if state changes;
3. put and the corresponding object data transmission requests of this communication object sign;
The function that the system program of Bus Interface Unit inside is finished comprises:
4. detect all object flag, judged whether that the communication object requirement sends data;
5. if the communication object that sends request of data is arranged, then reads by object properties table, contingency table and address table
The value of this object, attribute and corresponding group address thereof are organized message;
6. transmission message;
7. the data sending request sign of clear to send data object is so that respond data sending request next time.
The process of reception group message is opposite with transmission, and at first the system program of Bus Interface Unit inside judges whether to accept this message according to its address table.If accept this message, then in the storage space of self, seek all communication objects correspondingly according to the group address in the message, upgrade the value of these objects, and put updating mark; System software detects updating mark, and the value after upgrading according to these is operated accordingly.Transmission group message and reception group message are joined together, and are exactly complete data communication.
The defined declaration of logical relation is as follows between Bus Interface Unit of the present invention:
With the bus network system that Bus Interface Unit of the present invention is formed, utilized the related logical relation that defines between the household equipment application of group.At first defined the notion of communication object, be used for the application of abstract household equipment, and said that on the data communication meaning communication object is exactly the transmitter of variable.For example: a switch can be abstracted into a communication object and describe.The value of different communication objects may be different type, and for example the value of lamp is a switching value, and 1 bit is just passable; And light modulator need be regulated the brightness of light with an absolute value, may be a byte.In order to address this problem, system sets up a template(-let) for each communication object.In the template(-let) of communication object, the definition of attribute such as finish that type to the communication object value, memory address, communication object data transmission priority, read-write enable.
Group is a kind of aggregate of function, is the embodiment of endpoint node logical relation on the home network, is the key concept of this agreement.For example, in intelligent home system based, a switch is set, is responsible for the completely open and close of all devices, to make things convenient for the management of user to household electrical appliances.Like this, the communication object that each self-corresponding communication object of all devices is corresponding with this switch has logically just been formed a group, to them identical logical address, just a group address is set.When the state (opening/close) of switch changed, the state value after system changes the communication object of switch correspondence sent to communication object (all home appliances) on the same group, and these objects are carried out corresponding operation (opening/close) according to the state value that receives.Communication object on the home network carries out data transmission by message.Destination address is the message of group address, is referred to as to organize message.The group message is received simultaneously and handles by all communication objects of same group (group address is identical).The communication object value mainly is to transmit by the group message, and the data transmission on the intelligent home network, major part all are the forms of group message.
Group has realized the logical communication link between the communication object.Dispose same group address for one group of communication object that is mutually related, they are worked in coordination, finish the function combinations that the user will realize.The user can freely dispose the group address of communication object, when adding new endpoint node or user on the network when thinking the function of node in the change system, need only the logical relation that to finish the work according to this node, configure the group address of the communication object group of this node correspondence, download with its function corresponding application and get final product, and other are soft, hardware does not need variation.System has used the notion of group neatly, reduced the data communication amount, and, by to organizing related allotment, can edit convenient and simplely, the logic function of endpoint node in the modification, additions and deletions intelligent home network, having satisfied the intelligent home network needs can be because of ground, suit measures to different persons, and is willing to personalized requirements such as ground configuration-system function with the people.
Because Bus Interface Unit of the present invention has the universal external interface, so it can cooperate multiple external unit to realize diversified function.Except linking to each other with the external home electric equipment, it can also external infrared transmission/receiving trap, with intelligent home system based telepilot cooperating.This telepilot is different from other intelligent home system based telepilots, and it can realize the both-way communication of data fully.Telepilot can be launched infrared signal, the requirement of control or data query is proposed to Bus Interface Unit, Bus Interface Unit is by extraneous infrared transmission/receiving trap, receive the requirement of telepilot, type is come work as requested: if the control requirement, Bus Interface Unit becomes message with the control action layout so, sends relevant unit to and receives; If the data query request, Bus Interface Unit is by bus query-relevant data on home network so, and by external infrared transmission/receiving trap, sends data to telepilot.So just finished two-way data communication.
In intelligent home system based, any one Bus Interface Unit, as long as its inside does not have the application program of user's download, just can be used as the serial ports unit on the bus, the serial port module of an external TTL door and 232 serial ports voltage transitions just can have been finished equipment on the bus and the serial communication between the computing machine.Program after the custom system configuration is exactly to download to by this method in each corresponding Bus Interface Unit.
(with lamp of a switch control is example to use intelligent home system based that two interface units of the present invention form, switch is connected on the Bus Interface Unit 1, and lamp is connected on another Bus Interface Unit 2) realize that by communication object the communication between each application specifically describes as follows:
The application program of Bus Interface Unit 1 inside is finished following function:
(1) judge whether the communication object state changes, in fact be exactly to detect with network that it is connected on endpoint node whether action is arranged;
(2) if state changes, then upgrade the value of this communication object;
(3) put and the corresponding object data transmission requests of this communication object sign;
The system software of Bus Interface Unit 1 inside is finished following function:
(4) detect all object flag, judged whether that the communication object requirement sends data;
(5) if the communication object that sends request of data is arranged, then read value, attribute and the corresponding group address thereof of this object by object properties table, contingency table and address table, organize message;
(6) transmit message;
(7) the data sending request sign of clear to send data object is so that respond data sending request next time.
Below finish by Bus Interface Unit 2:
(1) when Bus Interface Unit 2 received the group message, system software was checked the group address in this message in its address table;
(2) if this group address in the address table of this Bus Interface Unit, is then searched the relevant connection of this group address correspondence in the contingency table according to group number;
(3) according to the relevant connection of this group address that finds in the contingency table, search the communication object of group address correspondence, just the state value of this or these communication object needs to upgrade;
(4) object number that finds according to previous step in the object properties table reads the attribute of the communication object that need be updated, and according to the data content that transmits in the message, the communication object value is upgraded operation accordingly.

Claims (10)

1, a kind of intelligent domestic network system bus interface unit, comprise hardware configuration and be stored in wherein software program, it is characterized in that, said hardware configuration comprises data transmit-receive module and coupled communication controller, said communication controller is a central processing unit and is stored in wherein the software module of being made up of system program and application program, said data transmit-receive module by transformer and the DC/DC transducer, voltage control circuit and the signal processing circuit that are connected in its two ends respectively constitute; Wherein, the signal processing circuit in this data transmit-receive module links to each other by sending, receive, control three communication lines with said central processing unit; Voltage control module in the data transmit-receive module and said central processing unit by preserve, reset, two operation circuits link to each other; Said central processing unit is connected with outside equipment by the universal external interface.
2, intelligent domestic network system bus interface unit as claimed in claim 1 is characterized in that, what the embodiment of communication controller adopted is Motorola 68CH908GP32 central processing unit chip; Said data transmit-receive module adopts the FZE1065 chip.
3, intelligent domestic network system bus interface unit as claimed in claim 1, it is characterized in that said APD branch comprises interface parameters, address table, address object mapping table, communication object table, user application, download sign and the verification between application program and the system program.
4, intelligent domestic network system bus interface unit as claimed in claim 1 is characterized in that, said system program comprises master routine and application programming interfaces api function; Master routine comprises system initialization routine, conventional sense program, serial interface communication agreement, bus communication protocol.
5, intelligent domestic network system bus interface unit as claimed in claim 4, it is characterized in that, said bus communication protocol adopts six layers of structure that meet the ISO/OSI reference model, comprises Physical layer, data link layer, network layer, transport layer, presentation layer and application layer.
6, intelligent domestic network system bus interface unit as claimed in claim 5, it is characterized in that, said Physical layer adopts twisted-pair feeder as the power lead of transmission medium as signal wire and node, voltage is 28V on the twisted-pair feeder, adopt base band transmission, adopt and make zero-pulsewidth coding, negative-going pulse is represented " 0 " on the bus, no pulse is represented " 1 ", and signal transmission rate is 9600-20Kbps.
7, intelligent domestic network system bus interface unit as claimed in claim 5, it is characterized in that, said data link layer is made up of logical link control sublayer (LLC) and MAC sublayer (MAC), csma/collision detection (C agreement of band priority is adopted in this medium access sublayer, data link layer provides following two kinds of services: have and confirm no Connection Service, do not have the no Connection Service of affirmation, the mistake disposal route of data link layer adopt byte parity, message checking and, have confirm to serve, transmit leg active retransmission mechanism etc.;
8, intelligent domestic network system bus interface unit as claimed in claim 5, it is characterized in that, said network layer employing adds number of routes fore-telling 6 and will control in message, when message whenever passes through a transponder, number of routes subtracts 1, number of routes reduces at 0 o'clock, will abandon this message to next router.
9, intelligent domestic network system bus interface unit as claimed in claim 5 is characterized in that, said transport layer comprises that multicast, broadcasting, point-to-point nothing connect and point-to-point connection-oriented four kinds of connected modes.
10, the described intelligent domestic network system bus interface unit of claim 5 is characterized in that, said application layer has adopted the method for communication object to realize, its effect is exactly the management communication object.
CN 02117322 2002-05-17 2002-05-17 Intelligent domestic network system bus interface unit Expired - Fee Related CN1231850C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02117322 CN1231850C (en) 2002-05-17 2002-05-17 Intelligent domestic network system bus interface unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02117322 CN1231850C (en) 2002-05-17 2002-05-17 Intelligent domestic network system bus interface unit

Publications (2)

Publication Number Publication Date
CN1380613A true CN1380613A (en) 2002-11-20
CN1231850C CN1231850C (en) 2005-12-14

Family

ID=4744387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02117322 Expired - Fee Related CN1231850C (en) 2002-05-17 2002-05-17 Intelligent domestic network system bus interface unit

Country Status (1)

Country Link
CN (1) CN1231850C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100342696C (en) * 2004-04-28 2007-10-10 纬创资通股份有限公司 Household electronic resource sharing system
CN101170323B (en) * 2007-12-03 2013-03-27 西蒙电气(中国)有限公司 Network terminal device in communication system and network communication system thereof
CN103488593A (en) * 2012-06-13 2014-01-01 上海联影医疗科技有限公司 Data processing device and data processing system
CN103947140A (en) * 2011-09-20 2014-07-23 以太杰作有限责任公司 Systems and methods for the demand-driven deployment of location-neutral software
CN110752864A (en) * 2019-10-28 2020-02-04 中国兵器工业集团第二一四研究所苏州研发中心 Communication interface circuit based on power cord
CN111800824A (en) * 2020-05-28 2020-10-20 上海诺行信息技术有限公司 Data transmission system of intelligent instrument, driving interface packaging device and method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100342696C (en) * 2004-04-28 2007-10-10 纬创资通股份有限公司 Household electronic resource sharing system
CN101170323B (en) * 2007-12-03 2013-03-27 西蒙电气(中国)有限公司 Network terminal device in communication system and network communication system thereof
CN103947140A (en) * 2011-09-20 2014-07-23 以太杰作有限责任公司 Systems and methods for the demand-driven deployment of location-neutral software
CN103947140B (en) * 2011-09-20 2017-09-29 以太杰作有限责任公司 System and method for the deployment of the requirement drive of position independent software
CN103488593A (en) * 2012-06-13 2014-01-01 上海联影医疗科技有限公司 Data processing device and data processing system
CN103488593B (en) * 2012-06-13 2016-07-06 上海联影医疗科技有限公司 A kind of data processing equipment and data handling system
CN110752864A (en) * 2019-10-28 2020-02-04 中国兵器工业集团第二一四研究所苏州研发中心 Communication interface circuit based on power cord
CN111800824A (en) * 2020-05-28 2020-10-20 上海诺行信息技术有限公司 Data transmission system of intelligent instrument, driving interface packaging device and method

Also Published As

Publication number Publication date
CN1231850C (en) 2005-12-14

Similar Documents

Publication Publication Date Title
CN1271824C (en) Portable information system and access equipment, home network system and access method
JP4654316B2 (en) Home gateway device
CN1300912C (en) System for monitoring and controlling a set of household appliances
CN1820457A (en) Home network system
CN1742473A (en) Common protocol layer architecture and methods for transmitting data between different network protocols and a common protocol packet
CN109212983A (en) Intelligent home furnishing control method, gateway and intelligent home control system
CN105511287A (en) Intelligent household appliance control method, device and system
KR20100019411A (en) The apparatus, system for processing internetwork communication and communication connection-adaptation method
CN104038414A (en) Multiprotocol intelligent household gateway apparatus and system thereof
CN103107927A (en) Information interactive method of home gateway and home network system and home network system
CN110493270A (en) Internet of things equipment accesses fused controlling method and device thereof
CN103312715A (en) Web service oriented home network system architecture
CN1231850C (en) Intelligent domestic network system bus interface unit
CN1165851C (en) Method for discovering equipment in dynamic network combination of family network
CN101867508B (en) Method, system and device for realizing home network interconnection
CN102346463A (en) Intelligent monitoring system and method for home appliance
CN107733760A (en) The integrated intelligent domestic gateway of more communications based on Session Initiation Protocol and control method
CN2553573Y (en) Bus interface device for intelligent local area network system
CN1134137C (en) Household network telecontroller and its control method
CN1121583C (en) Network air conditioner and its intelligent control method
CN201153335Y (en) Network type house lighting and electrical appliance control apparatus
CN1481128A (en) Method for controlling gateway and realizationg of controlling intercommunication between nodes in sub network of household network
CN1761223A (en) General intelligent network possessing general intelligent network nodes
JPH1051464A (en) Photoelectric composite home network system, its terminal equipment address setting method and its information communication method
CN207869126U (en) The integrated intelligent domestic gateway of more communications based on Session Initiation Protocol

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20051214

Termination date: 20170517

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