Changes between Version 21 and Version 22 of ZigbeeGateway


Ignore:
Timestamp:
Feb 28, 2011, 8:20:23 AM (13 years ago)
Author:
Sensei
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ZigbeeGateway

    v21 v22  
    2626
    2727== 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 you run this software, it is necessary to adjust the configuration files (see [#Configuration Configuration section]).
     28Package 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]).
    2929
    3030=== 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]) ||
    3735
    3836== Configuration ==
    3937Two 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.
    4038
    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.
     39Remember that these files are read when application starts. So if you change a value, it will not be considered after restarting the application.
    4240
    4341It 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.
     
    159157=== RAI interface ===
    160158This 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 own URL, with the following format: "//**BASE_URL/nodeMAC/X/number**//"
     159Each resource has its one URL, with the following format: "//**BASE_URL/nodeMAC/X/number**//"
    162160* //nodeMAC// is the node MAC address in hexadecimal capital letters (16 characters).
    163161* //X// is the letter "s" for a sensor or "a" for an actuator.
     
    170168=== Subscriptions ===
    171169A 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.
    173171To test the Subscription Module you have to issue a post request to a resource url
    174172(i.e.  http://localhost:8081/2098765432142017/sensei/resources/rai/s/0/sub_id ) with the following xml text:
     
    247245}}}
    248246
     247