Changes between Version 21 and Version 22 of ZigbeeGateway
- Timestamp:
- Feb 28, 2011, 8:20:23 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
ZigbeeGateway
v21 v22 26 26 27 27 == Installation == 28 Package is available [ https://svn-batch.grid.pub.ro/svn/Sensei-Cookbook/Zigbee%20to%20Sensei%20Gateway.zip here]. Just unzip the package files in a directory. Before yourun this software, it is necessary to adjust the configuration files (see [#Configuration Configuration section]).28 Package is available [wiki:zbGw-dwload here]. Just unzip the package files in a directory. Previously to run this software, it is necessary to adjust the configuration files (see [#Configuration Configuration section]). 29 29 30 30 === Package Content === 31 * Main exe file: 32 * //ZB2SenseiGW.exe// 33 * Resource files on "//./Resources//" directory: 34 * //connect.bmb//, //disconnect.bmp//, //linked.bmp//, //sensei.ico// 35 * Configuration files: 36 * //ZB2SenseiGW.exe.config//, //rpi.xml// (more configuration files can be added, see [#rpi.xmlfile Configuration section]) 31 ||='''files'''=||='''description'''=|| 32 ||//ZB2SenseiGW.exe//=||Main executable file || 33 ||//./Resources/connect.bmb//, //disconnect.bmp//, //linked.bmp//, //sensei.ico//=||Resource files || 34 ||//ZB2SenseiGW.exe.config//, //rpi.xml//=||Configuration files (more configuration files can be added, see [#rpi.xmlfile Configuration section]) || 37 35 38 36 == Configuration == 39 37 Two xml files need to be edited for properly configuring the software package before running it. These configuration files allow establishing most of the behaviour of the package without the need of compile the software. 40 38 41 Remember that these files are read when application starts. So if you change a value, you will have to restart the application for the change to take effect.39 Remember that these files are read when application starts. So if you change a value, it will not be considered after restarting the application. 42 40 43 41 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 section before proceed to edit the files. Look for the target name that follow the text "//key=//", and you must **edit only** the text between double apostrophes after the "//value=//" text. … … 159 157 === RAI interface === 160 158 This Gateway creates a REST interface for allowing applications to iterate with the Zigbee island resources. This interface is defined in [wiki:RpObservationMeasurement Observation & Measurement]. 161 Each resource has its o wnURL, with the following format: "//**BASE_URL/nodeMAC/X/number**//"159 Each resource has its one URL, with the following format: "//**BASE_URL/nodeMAC/X/number**//" 162 160 * //nodeMAC// is the node MAC address in hexadecimal capital letters (16 characters). 163 161 * //X// is the letter "s" for a sensor or "a" for an actuator. … … 170 168 === Subscriptions === 171 169 A POST http method over the resource URL is used for adding a new subscription. For that, the URL must contain after the resource URL the subscription identity: 172 "//**BASE_URL/nodeMAC/X/number/SubscriptionID**//". 170 "//**BASE_URL/nodeMAC/X/number/SubscriptionID**//". //"SubscriptionID"// is whatever text allowed in the URL names. 173 171 To test the Subscription Module you have to issue a post request to a resource url 174 172 (i.e. http://localhost:8081/2098765432142017/sensei/resources/rai/s/0/sub_id ) with the following xml text: … … 247 245 }}} 248 246 247