From 452aafb8ef1232fbb80b54ca3bb79ba3e609f028 Mon Sep 17 00:00:00 2001 From: thecreator007 <36837615+thecreator007@users.noreply.github.com> Date: Fri, 23 Mar 2018 13:11:35 +0530 Subject: [PATCH] Update README.md --- README.md | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 85cdaa1..4ef1a80 100644 --- a/README.md +++ b/README.md @@ -16,21 +16,22 @@ It consists of the following modules: * packages: Environment specific packaging. # Parking-pi-driver - ***ParkingPiDriver.Java*** - To Run this Driver Apart from the above files You have add Google Simple Json dependency jar to tha POM.XML. - The main Java class is parking-pi-driver\src\main\java\com\softwareag\parkingpi\ParkingPiDriver.java which updates the parking pi's - name, position and parking pi's Status which is not set by the c8y raspberry-pi agent(sets only for the first time of running from the - Parking pi.json File which has been at the location /home/pi/Desktop/c8y/). - It also creates the ChildDevices(Basically the sensors) based on the Array size of sensors key in same Json file and copy the sensors - array and updated with the SystemID(from c8y) also generate sendmeasure.Json file in same directory Using *ManageChildDevices.java* - class. - The location of parkingpi.json be anywhere in pi but you have to update the file location in The class - com\softwareag\parkingpi\PiProperties.java - Start to send Measurents to sensors using *MeasurementPublisher.java* class. + ***ParkingPiDriver.java*** + * To Run this Driver Apart from the above files You have add Google Simple Json dependency jar to tha POM.XML. + * The main Java class is parking-pi-driver\src\main\java\com\softwareag\parkingpi\ParkingPiDriver.java which updates the parking pi's name, position and parking pi's Status which is not set by the c8y raspberry-pi agent(sets only for the first time of running from the + * ParkingPi.json File which has been at the location /home/pi/Desktop/c8y/). + * It also creates the ChildDevices(Basically the sensors) based on the Array size of sensors key in same Json file and copy the sensors array and updated with the SystemID(from c8y) also generate sendmeasure.Json file in same directory Using *ManageChildDevices.java* class. + * The location of parkingpi.json be anywhere in pi but you have to update the file location in The class com\softwareag\parkingpi\PiProperties.java + * Start to send Measurents to sensors using *MeasurementPublisher.java* class. - ***ManageChildDevices.java*** - This Class Creates the Sensors as ManagedObject and add it as Child device to The Parent parking Pi. - ManagedObjecet is Set type as c8y_DistanceSensorm and Measurement Type as Distance Measurement And the name of this Device also get - from Parking Pi.Json + ***ManageChildDevices.java*** + * This Class Creates the Sensors as ManagedObject and add it as Child device to The Parent parking Pi. + * ManagedObjecet is Set type as c8y_DistanceSensorm and Measurement Type as Distance Measurement And the name of this Device also get from ParkingPi.Json - ***MeasurementPublisher.Java*** + ***MeasurementPublisher.java*** + * Reads Echo trig and sourceId From the sendmeasure.json file + * set source to that Id, read the value from the sensor using trig and echo pin + * set the readed value to MeasurementValue and unit as centimeter and send it to cumulocity. + + ***ParkingPiStatus.java*** + * Set ParkingPi as ACTIVE,INACTIVE or MAINTENANCE state.