• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use pilight to send data between RPis
#1
Hi guys,

I am experimenting with two raspberries and some 433MHz senders / receivers. I want to send data (numbers) from one raspberry to another via these. I stumbled upon 433Utils/ RPi_utils which already allowed me to send up to 9 decimal numbers which sadly is not enough for me (additionally calling the script repeatedly isn't fast enough).
Following I tried to code myself a solution with my spare knowledge just by sending 1's and 0's to the corresponding GPIO and the wiringpi library. So far I am able to transmit as many binary numbers as I want with a user-defined interval length. I also am able to receive these for example on the piscope.
I tried to code a receiver / sniffer program but I am failing at synchronisation so I restarted my research and found pilight.

So my question is whether I can send raw binary (or better decimal, ascii but I can also do that) code from one device to another? I already tried
Code:
pilight-send -p raw -c "286 2825 286 201 289 1337 287 209 283 1351 287 204 289 1339 288 207 288 1341 289 207 281 1343 284 205 292 1346 282 212 283 1348 282 213 279 1352 282 211 281 1349 282 210 283 1347 284 211 288 1348 281 211 285 1353 278 213 280 1351 280 232 282 1356 279 213 285 1351 276 215 285 1348 277 216 278 1359 278 216 279 1353 272 214 283 1358 276 216 276 1351 278 214 284 1357 275 217 276 1353 270 217 277 1353 272 220 277 1351 275 220 272 1356 275 1353 273 224 277 236 282 1355 272 1353 273 233 273 222 268 1358 270 219 277 1361 274 218 280 1358 272 1355 271 243 251 11302"
and was able to receive it on my scope but not via pilight-receiver. The GPIO pins are described correctly in the configuration (I apparently did receive some background noise).

However I am also using the modules which are reported to not work with pilight from http://hobbycomponents.com/wireless/168-...-03v-mx-05

But before buying the recommended ones I'd like to ask whether this is possible or not with pilight.

Regards
 
Reply
#2
It is, but you need to write your own protocol first.
 
Reply
#3
Thanks for the very fast answer!
I am just taking a look at http://www.pilight.org/modules/protocols/
I am not very into coding so I may start with the examples. Let me get this right, the "decimal" example protocol allows me to send (or better receive) 7 binary numbers? 7 data pulses, 3 for device identification and one pause. If I compile that into my pilight and then run pilight receive and send the pulses (via pilight-send -p raw -c "500 250 250 250 250 250 250 500 250 250 8500") I should be able to get 1 000 000, device ID 100?
I just am talking about the "basic" section, not the following "intermediate".
 
Reply
#4
I would start looking at the actual weather protocols first. These are pretty good understandable.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 54 08-13-2019, 05:43 PM
Last Post: curlymo
  pilight Nano USB interface curlymo 228 94,227 07-10-2019, 06:14 PM
Last Post: curlymo
  problems compiling pilight on Odroid C2 WitchDoctor 101 8,701 03-14-2019, 09:01 PM
Last Post: curlymo
  Issue send actions over Socket API in AdHoc network ggtrts 10 670 03-13-2019, 06:32 AM
Last Post: curlymo
  Send pulsestream via API Phunkafizer 19 909 02-27-2019, 09:54 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 2,675 02-15-2019, 06:22 PM
Last Post: polo
  pilight-debug shows nothing minhdomanh 3 477 10-18-2018, 07:01 AM
Last Post: felfert
  pilight-send and pilight-daemon DieterK 0 510 06-20-2018, 12:44 AM
Last Post: DieterK
  Lights not switched on or off by rules in pilight 8.1.0 rorie 22 2,303 06-12-2018, 03:56 PM
Last Post: curlymo
  check API in pilight 8 stratege-0815 4 1,282 02-11-2018, 09:34 AM
Last Post: stratege-0815

Forum Jump:


Browsing: 1 Guest(s)