Changes between Version 5 and Version 6 of ZigbeeGateway
- Timestamp:
- Sep 19, 2010, 5:36:59 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZigbeeGateway
v5 v6 12 12 1. Through a Zigbee USB dongle attached to the PC. In this case the PC needs to be in the rario coverage of the Zigbee island. 13 13 2. Through IP connection to an external concentrator. This concentrator is an element that simple translates the Zigbee binary message into IP and transports it using a TCP/IP socket. 14 [[Image( ZB2SenseiGwConnection.JPG, 50%, center)]]14 [[Image(zb2senseigw_mainsreen.jpg, 50%, center)]] 15 15 16 16 17 17 == Installation == 18 There is not an installation package available. To run this software just copy and paste the files contain in the [#PakageContent package] in a directory and run the exe file “Zb2SenseiGw.exe”. Prior to that, it is convenient to adjust the configuration file (see [#Configuration Configuration section]).18 There is not an installation package available. To run this software just copy and paste the files contain in the [#PakageContent package] in a directory and run the exe file "Zb2SenseiGw.exe". Prior to that, it is convenient to adjust the configuration file (see [#Configuration Configuration section]). 19 19 20 20 === Requirements === … … 23 23 * No special computer performance requirements are needed. 24 24 * External Hardware: 25 * Zigbee dongle. It has been tested the Zigbee dongle of “Integration” model “IA DAUB-DK1 2400”.25 * Zigbee dongle. It has been tested the Zigbee dongle of "Integration" model "IA DAUB-DK1 2400". 26 26 * Drivers of this dongle should be properly installed before running the package. 27 27 * External concentrator, that convert the Zigbee messages into IP for transmitting using TCP/IP protocol. … … 40 40 === Compilation === 41 41 The sources are written in C# language. Microsoft Visual Studio 2010. 42 Open “ZB2SenseiGW.sln”solution and compile the project.43 The executable files will be located on “.\bin\release” or “.\bin\debug”(depending on the configuration) directory.42 Open "ZB2SenseiGW.sln" solution and compile the project. 43 The executable files will be located on ".\bin\release" or ".\bin\debug" (depending on the configuration) directory. 44 44 45 45 == Specification == … … 75 75 It is not needed special editor for changing these files. Whichever text editor used is enough. But special care should be followed for not modifying the overall xml structure, and the rest of the tags. Read this manual before proceed to edit the files. 76 76 77 Do not worry if you are not familiar with **xml basis**. Look for the target name that follow “//key=//”, and you must **edit only** the text between double apostrophes after the “//value=//”text.77 Do not worry if you are not familiar with **xml basis**. Look for the target name that follow "//key=//", and you must **edit only** the text between double apostrophes after the "//value=//" text. 78 78 79 79 === Zb2SenseiGw.exe.config file=== … … 125 125 126 126 Figure shows the main screen of the application. 127 [[Image( ZB2SenseiGw.JPG, 50%, center)]]128 On the upper side, appears the type of connection to the Zigbee island. The "**USB**" is through a dongle and the "**IP**" through an external concentrator. The "**IP/Ch**" select box contains the Zigbee channel for USB or the connection name (see [#Configuration <netConn> idNet in Configuration]) for IP. The button “**Connect**” and “**Disconnect**”allows to attach or detach to the Zigbee island.129 The connection process takes a while, firtsly it engages in the Zigbee island. Secondly it discovers the nodes and resources. The node list appears on the “**Tree of nodes**”tree box.127 [[Image(zb2senseigw_connection.JPG, 50%, center)]] 128 On the upper side, appears the type of connection to the Zigbee island. The "**USB**" is through a dongle and the "**IP**" through an external concentrator. The "**IP/Ch**" select box contains the Zigbee channel for USB or the connection name (see [#Configuration <netConn> idNet in Configuration]) for IP. The button "**Connect**" and "**Disconnect**" allows to attach or detach to the Zigbee island. 129 The connection process takes a while, firtsly it engages in the Zigbee island. Secondly it discovers the nodes and resources. The node list appears on the "**Tree of nodes**" tree box. 130 130 Details of a node selected in the tree box are shown on the right side of the screen: 131 131 * Short and MAC address, father node (for sleeping nodes). … … 135 135 * Relative position. 136 136 137 For every sensor, actuator or counter (sensor) additional details are shown in the corresponding tags on the “**Node Description**”137 For every sensor, actuator or counter (sensor) additional details are shown in the corresponding tags on the "**Node Description**" 138 138 139 139 … … 170 170 {{{ 171 171 <SubscriptionNodeInfo> 172 <SubscriptionInfo sensor= ”0”>172 <SubscriptionInfo sensor="0"> 173 173 <Subscription> 174 174 … Subscription info … … 178 178 <Subscription> 179 179 </SubscriptionInfo> 180 <SubscriptionInfo actuator= ”0”>180 <SubscriptionInfo actuator="0"> 181 181 <Subscription> 182 182 … Subscription info … … 189 189 == RAI interface == 190 190 This Gateway uses a REST interface for iterate with the Zigbee island. This interface is defined here (**PUT LINK** to the xml specification). 191 Each resource has its one URL, which format is “//**BASE_URL/nodeMAC/X/number**//”191 Each resource has its one URL, which format is "//**BASE_URL/nodeMAC/X/number**//" 192 192 * nodeMAC is the node MAC address in hexadecimal capital letters (16 characters). 193 * X is the letter “s” for a sensor or “a”for an actuator.194 * number is the number of sensor or actuator, starting with “0”.193 * X is the letter "s" for a sensor or "a" for an actuator. 194 * number is the number of sensor or actuator, starting with "0". 195 195 196 196 Over this URL the following operations can be done: … … 200 200 === Subscriptions === 201 201 A POST http method over the resource URL is used for adding a new subscription. In this case it should be add at the end of the resource URL the subscription identity: 202 “//**BASE_URL/nodeMAC/X/number/SubscriptionID**//” 202 "//**BASE_URL/nodeMAC/X/number/SubscriptionID**//" 203 203 * SubscriptionID is whatever text allowed in the URL names. 204 204 … … 208 208 A POST http method over this subscription URL returns an error. 209 209 210 GET over “//**BASE_URL/nodeMAC/X/number?Subscription**//” for getting the list of subscriptions of a resource. 211 GET over “//**BASE_URL/nodeMAC **//” returns an html page with node information, sensors and actuators, and links for the subscriptions. Ideally for a browser 212 213 210 GET over "//**BASE_URL/nodeMAC/X/number?Subscription**//" for getting the list of subscriptions of a resource. 211 GET over "//**BASE_URL/nodeMAC **//" returns an html page with node information, sensors and actuators, and links for the subscriptions. Ideally for a browser 212 213 214 215 216 217