A) Socketserver that waits on certain port for instructions
B) Socketclient that sends information to other server when certain events happening
All activies must logged in a file, by day. Files older then 5 days must automatically dropped.
First Step is to establish the following components:
1. 433MHZ remote control to swith power on/off
we have that already running at our raspberry controlled by console commands
2. Simple set/on off some LED lights
not done yet, open for your ideas
3. Event-Watch for press a button, turn switch
not done yet, open for your ideas on how to do
4. Other detectors
i.e. temperature, looking for your input
for both server mode and event mode
General
-------
we working with Model B Rev 2 of Raspberry
OS:
Raspbian (Graphical View)
Version: January 2014
Release date: 2014-01-07
For the 433Mhz integration we use
"Pilight" version 4
Draft Description for A) Servermode
-----------------------------------
Incoming Messages must have the first ten bytes as the length of message after the length.
Then Instruction comes with a length of 10
Then Data comes, content is related to the Instruction
Message is ended with a #, otherwise it is not valid and will not processed
i.e.
0000000016433POWERCON111f#
=> length 16
=> command is 433POWERCON
=> data is 111f
Possible Instructions are defined in a table/ini file with the information:
- Instructiontype (10A) i.e. 433POWERCON
- Variable 01 start pos i.e. 1 (11)
- Variable 02 start pos i.e. 3 (1)
- Variable 03 start pos i.e. 4 (f)
- .. and so on for 10 Variables
- command to perform, with replacement for the variables
i.e. sudo pilight-send -p elro_hc -u &1 -s &2 -&3
this will result in sudo pilight-send -p elro_hc -u 11 -s 1 -f
- return yes/no
Draft Description for B) Client with Event-watch
------------------------------------------------
Possible Events to be defined in table/ini file with the information:
- Eventname (10A)
- Information how to start the event-listener etc.
- Socket-Command Identifyer i.e. 433REMOTEAC
- Variable 01 start pos i.e. 1
- Variable 02 start pos i.e. 7
- .. and so on for 10 Variables
command that does the receive is: sudo pilight-receive
(whereby this needs to be discovered into background procedure....)
This bid is for about 5-7 hours working on:
1) Helping you to set all things remotely (2-4 hr)
2) Ethernet decoding of packets and sending responses (2 hr)
3) Buttons / leds (1 hr)
I am a little confused about client/server. Can you explain me the full sequence in a tidy example?
For example,
Use case #1- a) PC sends package 'aaaa...' b) This happens on the board:
Use case #2- a) Someone presses button ... in the board b) ... etc
I will need those to build the whole code (I can use the details below for the packet parser but I need to have a little broader view).
$166 USD in 20 days
5.0 (19 reviews)
4.8
4.8
3 freelancers are bidding on average $159 USD for this job
I have done sending and reciving command request for a projector device .. I can do this as well .. well i need to connect to the arduino via telnet if you give me access then i can build the application for you
thanks