<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Code for beta-testing?]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">I'm willing to help you out with beta testing the Raspberry code. :-)<br />
I'm interested in MySensors working together with Domoticz ASAP and it may be the first step. :-)</p>
<p dir="auto">Regards</p>
]]></description><link>https://forum.mysensors.org/topic/8/code-for-beta-testing</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 22:56:48 GMT</lastBuildDate><atom:link href="https://forum.mysensors.org/topic/8.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Mar 2014 20:48:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Code for beta-testing? on Sat, 09 Aug 2014 10:44:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/donnib" aria-label="Profile: donnib">@<bdi>donnib</bdi></a> - I didn't continue this way but instead started using node-js based controller code that connects to a standard Ethernet gateway. <a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a> merged the code about two weeks ago. I will provide a tutorial on how to set it up from scratch shortly...</p>
]]></description><link>https://forum.mysensors.org/post/2818</link><guid isPermaLink="true">https://forum.mysensors.org/post/2818</guid><dc:creator><![CDATA[ToSa]]></dc:creator><pubDate>Sat, 09 Aug 2014 10:44:48 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Fri, 08 Aug 2014 20:53:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/donnib" aria-label="Profile: donnib">@<bdi>donnib</bdi></a> I got the same error. Checked out the 1.4dev branch instead and got it working.</p>
]]></description><link>https://forum.mysensors.org/post/2816</link><guid isPermaLink="true">https://forum.mysensors.org/post/2816</guid><dc:creator><![CDATA[sjostrom]]></dc:creator><pubDate>Fri, 08 Aug 2014 20:53:55 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Fri, 08 Aug 2014 20:10:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tosa" aria-label="Profile: ToSa">@<bdi>ToSa</bdi></a> i tried compiling your code but it fails on the RPi with allot of errors :</p>
<p dir="auto">pi@raspberrypi ~/Raspberry $ make<br />
make -C librf24<br />
make[1]: Entering directory <code>/home/pi/Raspberry/librf24' g++ -Wall -fPIC -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -c RF24.cpp RF24.h: In constructor ‘RF24::RF24(std::string, uint32_t, uint8_t)’: RF24.h:65:12: warning: ‘RF24::spispeed’ will be initialized after [-Wreorder] RF24.h:53:11: warning:   ‘uint8_t RF24::ce_pin’ [-Wreorder] RF24.cpp:258:1: warning:   when initialized here [-Wreorder] g++ -shared -Wl,-soname,librf24.so.1 -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s  -o librf24.so.1 compatibility.o gpio.o spi.o RF24.o make[1]: Leaving directory </code>/home/pi/Raspberry/librf24'<br />
g++ -c -g -o Gateway.o Gateway.cpp -Wall -Ofast -mfpu=vfp -DDEBUG -DRPI -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -I/home/pi/RF24/RPi/RF24/<br />
In file included from Sensor.h:15:0,<br />
from Relay.h:15,<br />
from Gateway.h:15,<br />
from Gateway.cpp:12:<br />
Config.h:15:0: warning: "DEBUG" redefined [enabled by default]<br />
&lt;command-line&gt;:0:0: note: this is the location of the previous definition<br />
In file included from Relay.h:15:0,<br />
from Gateway.h:15,<br />
from Gateway.cpp:12:<br />
Sensor.h:154:16: error: expected ‘)’ before ‘_spidevice’<br />
In file included from Gateway.h:15:0,<br />
from Gateway.cpp:12:<br />
Relay.h:43:16: error: expected ‘)’ before ‘_spidevice’<br />
In file included from Gateway.cpp:12:0:<br />
Gateway.h:47:18: error: expected ‘)’ before ‘_spidevice’<br />
Gateway.cpp:34:1: error: prototype for ‘Gateway::Gateway(std::string, uint32_t, uint8_t, uint8_t)’ does not match any in class ‘Gateway’<br />
Gateway.h:24:7: error: candidates are: Gateway::Gateway(const Gateway&amp;)<br />
Gateway.h:24:7: error:                 Gateway::Gateway()<br />
Gateway.cpp: In member function ‘void Gateway::begin(rf24_pa_dbm_e, uint8_t, rf24_datarate_e, void (<em>)(char</em>))’:<br />
Gateway.cpp:62:18: error: ‘OUTPUT’ was not declared in this scope<br />
Gateway.cpp:62:24: error: ‘pinMode’ was not declared in this scope<br />
Gateway.cpp:65:26: error: ‘digitalWrite’ was not declared in this scope<br />
Gateway.cpp:70:25: error: ‘INPUT’ was not declared in this scope<br />
Gateway.cpp:86:53: error: ‘PSTR’ was not declared in this scope<br />
Gateway.cpp: In member function ‘void Gateway::checkButtonTriggeredInclusion()’:<br />
Gateway.cpp:104:59: error: ‘PSTR’ was not declared in this scope<br />
Gateway.cpp: In member function ‘void Gateway::parseAndSend(char*)’:<br />
Gateway.cpp:161:35: error: ‘PSTR’ was not declared in this scope<br />
Gateway.cpp: In member function ‘void Gateway::setInclusionMode(boolean)’:<br />
Gateway.cpp:181:33: error: ‘PSTR’ was not declared in this scope<br />
Gateway.cpp: In member function ‘void Gateway::serial(message_s)’:<br />
Gateway.cpp:236:33: error: ‘PSTR’ was not declared in this scope<br />
Gateway.cpp: In member function ‘void Gateway::ledTimersInterrupt()’:<br />
Gateway.cpp:243:28: error: ‘digitalWrite’ was not declared in this scope<br />
Gateway.cpp:246:30: error: ‘digitalWrite’ was not declared in this scope<br />
Gateway.cpp:252:28: error: ‘digitalWrite’ was not declared in this scope<br />
Gateway.cpp:255:30: error: ‘digitalWrite’ was not declared in this scope<br />
Gateway.cpp:262:28: error: ‘digitalWrite’ was not declared in this scope<br />
Gateway.cpp:265:30: error: ‘digitalWrite’ was not declared in this scope<br />
make: *** [Gateway.o] Error 1</p>
]]></description><link>https://forum.mysensors.org/post/2813</link><guid isPermaLink="true">https://forum.mysensors.org/post/2813</guid><dc:creator><![CDATA[donnib]]></dc:creator><pubDate>Fri, 08 Aug 2014 20:10:00 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Fri, 08 Aug 2014 13:10:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tosa" aria-label="Profile: ToSa">@<bdi>ToSa</bdi></a> How is your system working ? Are you still using the code you cahnged on your sensors and rPI ? Is it working acceptable ?</p>
]]></description><link>https://forum.mysensors.org/post/2783</link><guid isPermaLink="true">https://forum.mysensors.org/post/2783</guid><dc:creator><![CDATA[donnib]]></dc:creator><pubDate>Fri, 08 Aug 2014 13:10:28 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 25 May 2014 20:55:21 GMT]]></title><description><![CDATA[<p dir="auto">How the work is going?</p>
]]></description><link>https://forum.mysensors.org/post/930</link><guid isPermaLink="true">https://forum.mysensors.org/post/930</guid><dc:creator><![CDATA[jendrush]]></dc:creator><pubDate>Sun, 25 May 2014 20:55:21 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Fri, 18 Apr 2014 20:14:34 GMT]]></title><description><![CDATA[<p dir="auto">Great.</p>
<p dir="auto">I'm working on breaking out the message part from Sensor.cpp into a new class and make it more platform independent (c++ bit fields is not good) . This will help when we port code from Arduino to RPI.</p>
]]></description><link>https://forum.mysensors.org/post/266</link><guid isPermaLink="true">https://forum.mysensors.org/post/266</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Fri, 18 Apr 2014 20:14:34 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Fri, 18 Apr 2014 19:39:24 GMT]]></title><description><![CDATA[<p dir="auto">RPi and Arduino now talk to each other, the Arduino receives the radioId from the Rpi and stores it in the EEPROM and the Arduino presents itself to the network. I still see some timing issues (ACKs too late / replies too early while the other end is still waiting for an ACK / ...) but in general it works.<br />
To get there I forked both the Arduino and the RPi project and tried to get to the latest and greatest code by merging some of the branches (mainly master and 1.4dev)... When I ran into additional issues due to the RPi code not getting the latest updates and bug fixes available in the Arduino project, I decided to merge across the two and ended up with a common set of RF files: a common codebase for RF24 as well as Sensor/Relay/Gateway. If any of this is of interest for themain development then please let me know and I'll create a pull request.</p>
<p dir="auto">What I did in detail:</p>
<p dir="auto"><strong>Arduino:</strong></p>
<ul>
<li>started new branch tosa-dev based on latest master branch</li>
<li>adjusted the message header to use full bytes as mentioned earlier in this thread</li>
<li>no need to merge the 1.4dev branch as the message header was essentially the only remaining relevant change in there</li>
<li>no need to merge other branches as the majority of these were already merged back into master</li>
</ul>
<p dir="auto"><strong>Raspberry:</strong></p>
<ul>
<li>started new branch tosa-dev based on latest master branch</li>
<li>merged the 1.4dev branch into tosa-dev</li>
<li>a couple of minor tweaks (mongoDb URL / start and stop scripts / data rate / ... majority listed earlier in this thread)</li>
</ul>
<p dir="auto">When I found the missing Relay::sendData() routine I decided to stop tweaking bit by bit and instead looked at what it would take to use the more advanced Arduino code for RF24 and Sensor/Relay/Gateway for the RPi as well. Based on comments in the forum this seems to work for several people using a SerialGateway or EthernetGateway so my expectation was to find well maintained code there avoiding some of the low level communication issues I ran into so far with the RPi code. This code is available in a separate branch "tosa-dev-commonrf" for both Arduino and Raspberry.</p>
<p dir="auto">The code is not perfect yet but it works. I'm not a GIT expert but as far as I can tell the fork is public and everybody should be able to see it:<br />
<a href="https://github.com/ToSa27/Raspberry/tree/tosa-dev-commonrf" rel="nofollow ugc">https://github.com/ToSa27/Raspberry/tree/tosa-dev-commonrf</a><br />
<a href="https://github.com/ToSa27/Arduino/tree/tosa-dev-commonrf" rel="nofollow ugc">https://github.com/ToSa27/Arduino/tree/tosa-dev-commonrf</a></p>
<p dir="auto">Again: happy to create pull requests if you want to use this setup as part of the master branch at some point. The main reason for me to do this is to get a solid foundation to start working on the OTA update code...</p>
]]></description><link>https://forum.mysensors.org/post/262</link><guid isPermaLink="true">https://forum.mysensors.org/post/262</guid><dc:creator><![CDATA[ToSa]]></dc:creator><pubDate>Fri, 18 Apr 2014 19:39:24 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Thu, 17 Apr 2014 21:58:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmlsx" aria-label="Profile: BMLSX">@<bdi>BMLSX</bdi></a> - probably rather saved your stomach - eating the raspberry sounds noxious :)</p>
<p dir="auto">I got one step further (maybe) - the Arduino now receives the radioId... looking at the log from the RPi above I stumbled over the RPi sending the data to the gateway ??? the RPi is the gateway !!! Comparing the code to the SerialGateway which seems to work for a lot of folks I found that the sendData() function is missing in the Relay.cpp code used for the RPi. Once that procedure is in place the RPi actually submits the new radioId to the sensor:</p>
<p dir="auto"><strong>RPi : now "sent via 255" instead of "sent via 0"</strong><br />
Dynamic payload size=9<br />
Received: from=255, to=0, childId=255, mtype=4, type=5, crc=65, ''<br />
Message crc ok.<br />
header.type=5, header.to=0, radioId=0<br />
Got message<br />
Message type: 4<br />
Writing back message<br />
msgTypeId=4 int=4<br />
Sending data 255;255;4;5;1<br />
We have input<br />
Nread=14<br />
INP:255;255;4;5;1<br />
.<br />
INGOT radioId=255, childId=255, messageType=4, type=5, value=1<br />
Sending data to GATEWAY<br />
No route... try sending direct.<br />
Sending: from=0, to=255, childId=255, mtype=4, type=5, crc=11, '1<br />
', sent via 255<br />
radioId: Inserted id=1<br />
Send failed. No ack received.<br />
Sent to JS</p>
<p dir="auto"><strong>Arduino</strong><br />
Started sensor.<br />
Open ping reading pipe: 255<br />
Tx: fr=255,to=255,la=255,ne=255,ci=255,mt=4,ty=9,cr=235:<br />
Message available on pipe 1<br />
Rx: fr=0,to=255,la=0,ci=255,mt=4,t=10,cr=106(ok): 0<br />
Message addressed for this node.<br />
Using relay 0. Distance is 0<br />
Relay=0, distance=1<br />
No radio id found in EEPROM fetching one from sensor net gateway<br />
TH: get: n=0,c=255,st=4,rt=4,vt=5<br />
Relaying message back to gateway.<br />
Tx: fr=255,to=0,la=255,ne=0,ci=255,mt=4,ty=5,cr=65:<br />
Ack: receive timeout<br />
Message available on pipe 1<br />
Sent ack msg to 0<br />
Rx: fr=0,to=255,la=0,ci=255,mt=4,t=5,cr=11(ok): 1</p>
<p dir="auto">Message addressed for this node.<br />
Radio id received: 1<br />
Radio id stored in EEPROM was: 1<br />
Relaying message back to gateway.<br />
Tx: fr=1,to=0,la=1,ne=0,ci=255,mt=0,ty=17,cr=17: 1.3b3 (7afb55c)<br />
Ack: receive timeout<br />
Relaying message back to gateway.<br />
Tx: fr=1,to=0,la=1,ne=0,ci=255,mt=4,ty=7,cr=176: 0<br />
Ack: receive timeout<br />
Relaying message back to gateway.<br />
Tx: fr=1,to=0,la=1,ne=0,ci=255,mt=4,ty=14,cr=21: Temperature Sensor<br />
Ack: receive timeout<br />
Relaying message back to gateway.<br />
Tx: fr=1,to=0,la=1,ne=0,ci=255,mt=4,ty=15,cr=13: 1.0<br />
Ack: receive timeout<br />
Relaying message back to gateway.<br />
Tx: fr=1,to=0,la=1,ne=0,ci=0,mt=0,ty=6,cr=99: 1.3b3 (7afb55c)<br />
Ack: receive timeout<br />
TH: get: n=0,c=255,st=4,rt=4,vt=13<br />
Relaying message back to gateway.<br />
Tx: fr=1,to=0,la=1,ne=0,ci=255,mt=4,ty=13,cr=200:<br />
Ack: receive timeout</p>
<p dir="auto">I'm still not sure if the missing ACK for the majority of the messages is by purpose or by accident... would be relatively easy to fix by either not waiting for an ACK for all messages or by always sending an ACK - but I don't want to mess with this code without knowing why it was implemented this way.</p>
]]></description><link>https://forum.mysensors.org/post/251</link><guid isPermaLink="true">https://forum.mysensors.org/post/251</guid><dc:creator><![CDATA[ToSa]]></dc:creator><pubDate>Thu, 17 Apr 2014 21:58:21 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Thu, 17 Apr 2014 06:30:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tosa" aria-label="Profile: ToSa">@<bdi>ToSa</bdi></a> thank you ...u saved my rpi;)</p>
]]></description><link>https://forum.mysensors.org/post/234</link><guid isPermaLink="true">https://forum.mysensors.org/post/234</guid><dc:creator><![CDATA[Bmlsx]]></dc:creator><pubDate>Thu, 17 Apr 2014 06:30:06 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Mon, 14 Apr 2014 23:14:56 GMT]]></title><description><![CDATA[<p dir="auto">Changing the mongo database URL in the dbDetails,js file<br />
from:<br />
mongodb://mysensors:27017/pi<br />
to:<br />
mongodb://localhost:27017/mysensors</p>
<p dir="auto">fixed the "Error looking up radioIdo" issue on the RPi. Now the Rpi generates a new radioId but the attempt to send this to the Arduino fails:</p>
<p dir="auto"><strong>RPi output:</strong><br />
Received: from=255, to=0, childId=255, mtype=4, type=5, crc=139, ''<br />
139, 2, 0, 255, 0, 255, 255, 4, 5<br />
Message crc ok.<br />
header.type=5, header.to=0, radioId=0<br />
Got message<br />
Message type: 4<br />
msgTypeId=4 int=4<br />
Sending data 255;255;4;5;1<br />
Writing back messageWe have input<br />
Nread=14<br />
INP:255;255;4;5;1<br />
.<br />
INGOT radioId=255, childId=255, messageType=4, type=5, value=1<br />
Sending data to GATEWAYRelaying message back to gateway.<br />
Sending: from=0, to=255, childId=255, mtype=4, type=5, crc=193, '1<br />
', sent via 0<br />
193, 2, 0, 0, 255, 0, 255, 4, 5<br />
radioId: Inserted id=1<br />
Send failed. No ack received.<br />
Sent to JS<br />
Dynamic payload size=9</p>
]]></description><link>https://forum.mysensors.org/post/167</link><guid isPermaLink="true">https://forum.mysensors.org/post/167</guid><dc:creator><![CDATA[ToSa]]></dc:creator><pubDate>Mon, 14 Apr 2014 23:14:56 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Mon, 14 Apr 2014 07:16:34 GMT]]></title><description><![CDATA[<p dir="auto">The "Message crc error." is a bit misleading. The code in the validate() routine actually checks the crc as well as the protocol version. Looking at the Arduino and the RPi 1.4 branch the versions don't match. I've adjusted the library and protocol version in the Sensor.h file on the Rpi to:</p>
<p dir="auto">LIBRARY_VERSION "1.4"<br />
PROTOCOL_VERSION 2</p>
<p dir="auto">and the crc error disappeared.</p>
<p dir="auto">While changing the data rate from 2M to 1M in line 30 of the Arduino Sensor.cpp, I had to fix a syntax error to recompile successfully in line 361: a missing "}" to close the do/while. The full line should be "} while (--retry);"</p>
<p dir="auto">With these two fixed the RPi and the Arduino now communicate - but I get a lot of "Send failed" messages on the Arduino and a lot of "Error looking up radioIds" on the RPi now:</p>
<p dir="auto"><strong>RPi output:</strong><br />
Received: from=255, to=0, childId=255, mtype=4, type=5, crc=139, ''<br />
139, 2, 0, 255, 0, 255, 255, 4, 5<br />
Message crc ok.<br />
header.type=5, header.to=0, radioId=0<br />
Got message<br />
Message type: 4<br />
msgTypeId=4 int=4<br />
Error looking up radioIds<br />
...and so on...</p>
<p dir="auto"><strong>Android in DEBUG mode:</strong><br />
Started sensor.<br />
Relay=0, distance=1<br />
No radio id found in EEPROM fetching one from sensor net gateway<br />
Relaying message back to gateway.<br />
Tx: fr=255,to=0,la=255,ne=0,ci=255,mt=4,ty=5,cr=139:<br />
Send failed.<br />
Relaying message back to gateway.<br />
Tx: fr=255,to=0,la=255,ne=0,ci=255,mt=4,ty=5,cr=139:<br />
Send failed.<br />
...and so on...</p>
]]></description><link>https://forum.mysensors.org/post/159</link><guid isPermaLink="true">https://forum.mysensors.org/post/159</guid><dc:creator><![CDATA[ToSa]]></dc:creator><pubDate>Mon, 14 Apr 2014 07:16:34 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Thu, 10 Apr 2014 16:45:28 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, I don't know why you are experiencing problem. We will soon have a look at the RPI stuff again and make a usable version.<br />
The last week all our mysensors-time has been spend on server infrastructure (prod/stage environment etc) to prepare for the new services.<br />
Getting this right took more time that we initially anticipated.</p>
<p dir="auto">In the meantime. Anyone having a good low footprint node-database-candidate for storing sensor data in the RPI?<br />
The purpose is having a local backup of all historic data and to keep a record of which data has been sent to cloud-service.<br />
There won't be much local querying, mostly storing.</p>
<p dir="auto">Right now I'm considering:<br />
NeDB/NEDBLogger (<a href="https://github.com/louischatriot/nedb" rel="nofollow ugc">https://github.com/louischatriot/nedb</a>)<br />
Levelup/Leveldb (<a href="https://github.com/rvagg/node-levelup" rel="nofollow ugc">https://github.com/rvagg/node-levelup</a>)</p>
]]></description><link>https://forum.mysensors.org/post/137</link><guid isPermaLink="true">https://forum.mysensors.org/post/137</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Thu, 10 Apr 2014 16:45:28 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Thu, 10 Apr 2014 03:45:38 GMT]]></title><description><![CDATA[<p dir="auto">Can anyone pls help on this ...I'm about to eat the raspberry</p>
]]></description><link>https://forum.mysensors.org/post/133</link><guid isPermaLink="true">https://forum.mysensors.org/post/133</guid><dc:creator><![CDATA[Bmlsx]]></dc:creator><pubDate>Thu, 10 Apr 2014 03:45:38 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Wed, 09 Apr 2014 06:22:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi there again</p>
<p dir="auto">A quick question <a class="plugin-mentions-user plugin-mentions-a" href="/user/jka" aria-label="Profile: jka">@<bdi>jka</bdi></a>  I used the 1.4 branch on both arduino and rpi and all I get o rpi are messed up messages with crc errors, can u point me a direction on what I do wrong?</p>
<p dir="auto">Thanx<br />
G</p>
]]></description><link>https://forum.mysensors.org/post/128</link><guid isPermaLink="true">https://forum.mysensors.org/post/128</guid><dc:creator><![CDATA[Bmlsx]]></dc:creator><pubDate>Wed, 09 Apr 2014 06:22:16 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 06 Apr 2014 20:25:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a></p>
<p dir="auto">hi there,</p>
<p dir="auto">nagging time  ...did all that (unsigned char on both ends arduino and rpi) but all i get in my rpi is  below</p>
<p dir="auto">any ideas?!!</p>
<p dir="auto">thanx<br />
G</p>
<p dir="auto">Starting Gateway...<br />
Sensor-1Gateway created...<br />
SPI device  = /dev/spidev0.0<br />
SPI speed  = 8000000<br />
CE GPIO  = 25<br />
STATUS   = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0<br />
RX_ADDR_P0-1 \0 = 0xe7e7e7e7e7 0xc2c2c2c2c2<br />
RX_ADDR_P2-5 \0 = 0xff 0xc4 0xc5 0xc6<br />
TX_ADDR   = 0xe7e7e7e7e7<br />
RX_PW_P0-6 \0 = 0x00 0x00 0x20 0x00 0x00 0x00<br />
EN_AA   = 0x3f<br />
EN_RXADDR \0 = 0x07<br />
RF_CH   = 0x4c<br />
RF_SETUP \0 = 0x07<br />
CONFIG   = 0x0c<br />
DYNPD/FEATURE \0 = 0x3f 0x04<br />
Data Rate  = 1MBPS<br />
Model   = nRF24L01+<br />
CRC Length  = 16 bits<br />
PA Power  = PA_MAX<br />
Radio setup complete-0;0;4;11;Arduino startup complete.<br />
Begin called<br />
Dynamic payload size=11<br />
Received: from=16, to=18, childId=0, mtype=50, type=49, crc=120, '.7'<br />
Message crc error.<br />
header.type=49, header.to=18, radioId=0<br />
Dynamic payload size=11<br />
Received: from=16, to=2, childId=1, mtype=54, type=53, crc=231, '.2'<br />
Message crc error.<br />
header.type=53, header.to=2, radioId=0</p>
]]></description><link>https://forum.mysensors.org/post/110</link><guid isPermaLink="true">https://forum.mysensors.org/post/110</guid><dc:creator><![CDATA[Bmlsx]]></dc:creator><pubDate>Sun, 06 Apr 2014 20:25:37 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 30 Mar 2014 20:10:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andriej" aria-label="Profile: andriej">@<bdi>andriej</bdi></a> and <a class="plugin-mentions-user plugin-mentions-a" href="/user/jendrush" aria-label="Profile: jendrush">@<bdi>jendrush</bdi></a>,  I commited some code to my repository for the python gateway with half (oneway) Domoticz integration. It also support Openhab, The Openhab integarion is what I think I will integarate for my self and continue to develop. Domoticz needs provide a proper API that I can use without spending a lot of time trying to figure out how it works. My code is at <a href="https://github.com/wbcode/ham" rel="nofollow ugc">https://github.com/wbcode/ham</a>. You can try it out if you want. The installation part and configuration is missing a lot of instructions.</p>
<p dir="auto">Will create my own thread for my gateway code when I have a name for it and I have spent the time to do a proper update to the wiki and better a presenation on what you cand do.</p>
<p dir="auto">Please note that iit's not a full replacment for a Vera and it's my first time codeing python...</p>
]]></description><link>https://forum.mysensors.org/post/68</link><guid isPermaLink="true">https://forum.mysensors.org/post/68</guid><dc:creator><![CDATA[wannabee]]></dc:creator><pubDate>Sun, 30 Mar 2014 20:10:17 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 30 Mar 2014 16:56:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/bmlsx" aria-label="Profile: Bmlsx">@<bdi>Bmlsx</bdi></a><br />
Yes. :)</p>
]]></description><link>https://forum.mysensors.org/post/67</link><guid isPermaLink="true">https://forum.mysensors.org/post/67</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 30 Mar 2014 16:56:13 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 30 Mar 2014 16:09:20 GMT]]></title><description><![CDATA[<p dir="auto">please excuse the frivolity</p>
<p dir="auto">u mean like this both on arduino and Pi?</p>
<p dir="auto">// The message structure<br />
typedef struct {<br />
unsigned char crc;    // uint8_t crc;    // 8 bits crc<br />
unsigned char version;    // (3 bits) protocol version<br />
unsigned char binary; 	 // (1 bit). Data is binary and should be encoded when sent to sensor net gateway<br />
unsigned char from;	 // 8 bits. RadioId of sender node<br />
unsigned char to;    // 8 bits. RadioId of destination node<br />
unsigned char last;    // 8 bits. RadioId of last node this message passed<br />
unsigned char childId;	 // 8 bits. Up to MAX_CHILD_DEVICES child sensors per radioId<br />
unsigned char messageType;    // (4 bits). Type of message. See messageType<br />
unsigned char type;	 // 8 bits. variableType or deviceType depending on messageType<br />
} header_s;</p>
]]></description><link>https://forum.mysensors.org/post/65</link><guid isPermaLink="true">https://forum.mysensors.org/post/65</guid><dc:creator><![CDATA[Bmlsx]]></dc:creator><pubDate>Sun, 30 Mar 2014 16:09:20 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 30 Mar 2014 07:54:13 GMT]]></title><description><![CDATA[<p dir="auto">You could do like <a class="plugin-mentions-user plugin-mentions-a" href="/user/jka" aria-label="Profile: jka">@<bdi>jka</bdi></a> did and modify header to only use full bytes for all fields temporarily (on the sensor side as well). This way you will be able to communicate until we fix the problem properly.</p>
]]></description><link>https://forum.mysensors.org/post/63</link><guid isPermaLink="true">https://forum.mysensors.org/post/63</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 30 Mar 2014 07:54:13 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 30 Mar 2014 07:51:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/hek" aria-label="Profile: hek">@<bdi>hek</bdi></a>  ooooooh, I thought it was already done in the 1.4 branch... Silly me.</p>
<p dir="auto">Thanx</p>
]]></description><link>https://forum.mysensors.org/post/62</link><guid isPermaLink="true">https://forum.mysensors.org/post/62</guid><dc:creator><![CDATA[Bmlsx]]></dc:creator><pubDate>Sun, 30 Mar 2014 07:51:20 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 30 Mar 2014 07:44:51 GMT]]></title><description><![CDATA[<p dir="auto">You are experiencing the problem <a class="plugin-mentions-user plugin-mentions-a" href="/user/jka" aria-label="Profile: jka">@<bdi>jka</bdi></a> describes above. When the message header bitfield is packed (by the compiler) if differs on the Arduino and RPI which result in garbled header and CRC-check-errors.</p>
<p dir="auto">We have to introduce our own bit manupilation when adding/extracting stuff from the (bit-field)-header to overcome this cross platform problems.</p>
]]></description><link>https://forum.mysensors.org/post/60</link><guid isPermaLink="true">https://forum.mysensors.org/post/60</guid><dc:creator><![CDATA[hek]]></dc:creator><pubDate>Sun, 30 Mar 2014 07:44:51 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Sun, 30 Mar 2014 07:27:51 GMT]]></title><description><![CDATA[<p dir="auto">dont know if this should be on new subject but spare me this one</p>
<p dir="auto">i recompiled both arduino and rpi part with 1.4 branch</p>
<p dir="auto">but i get on the RPi side CRC errors</p>
<p dir="auto">Starting Gateway...<br />
Sensor-1Gateway created...<br />
SPI device  = /dev/spidev0.0<br />
SPI speed  = 8000000<br />
CE GPIO  = 25<br />
STATUS   = 0x0e RX_DR=0 TX_DS=0 MAX_RT=0 RX_P_NO=7 TX_FULL=0<br />
RX_ADDR_P0-1 \0 = 0xabcdabc000 0xabcdabc000<br />
RX_ADDR_P2-5 \0 = 0xff 0xc4 0xc5 0xc6<br />
TX_ADDR   = 0xabcdabc000<br />
RX_PW_P0-6 \0 = 0x20 0x20 0x20 0x00 0x00 0x00<br />
EN_AA   = 0x3f<br />
EN_RXADDR \0 = 0x07<br />
RF_CH   = 0x4c<br />
RF_SETUP \0 = 0x07<br />
CONFIG   = 0x0f<br />
DYNPD/FEATURE \0 = 0x3f 0x04<br />
Data Rate  = 1MBPS<br />
Model   = nRF24L01+<br />
CRC Length  = 16 bits<br />
PA Power  = PA_MAX<br />
Radio setup complete-0;0;4;11;Arduino startup complete.<br />
Begin called<br />
Dynamic payload size=12<br />
Received: from=9, to=0, childId=255, mtype=0, type=17, crc=47, '1.4'<br />
Message crc error.<br />
header.type=17, header.to=0, radioId=0<br />
Dynamic payload size=10<br />
Received: from=9, to=0, childId=255, mtype=4, type=7, crc=115, '0'<br />
Message crc error.<br />
header.type=7, header.to=0, radioId=0<br />
Dynamic payload size=12<br />
Received: from=9, to=0, childId=0, mtype=0, type=7, crc=15, '1.4'<br />
Message crc error.<br />
header.type=7, header.to=0, radioId=0<br />
Dynamic payload size=12<br />
Received: from=9, to=0, childId=1, mtype=0, type=6, crc=187, '1.4'<br />
Message crc error.<br />
header.type=6, header.to=0, radioId=0<br />
Dynamic payload size=13<br />
Received: from=9, to=0, childId=1, mtype=1, type=0, crc=228, '20.5'<br />
Message crc error.<br />
header.type=0, header.to=0, radioId=0<br />
Dynamic payload size=13<br />
Received: from=9, to=0, childId=0, mtype=1, type=1, crc=118, '50.3'<br />
Message crc error.</p>
<p dir="auto">while on the arduino just the failed send</p>
<p dir="auto">Started sensor.<br />
Relay=0, distance=1<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=255,mt=0,ty=17,cr=47: 1.4<br />
Send failed.<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=255,mt=4,ty=7,cr=115: 0<br />
Send failed.<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=0,mt=0,ty=7,cr=15: 1.4<br />
Send failed.<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=1,mt=0,ty=6,cr=187: 1.4<br />
Send failed.<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=1,mt=1,ty=0,cr=228: 20.5<br />
Send failed.<br />
T: 20.50<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=0,mt=1,ty=1,cr=118: 50.3<br />
Send failed.<br />
H: 50.30<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=1,mt=1,ty=0,cr=195: 20.6<br />
Send failed.<br />
T: 20.60<br />
Relaying message back to gateway.<br />
Tx: fr=9,to=0,la=9,ne=0,ci=0,mt=1,ty=1,cr=81: 50.0<br />
Send failed.<br />
H: 50.00</p>
<p dir="auto">also changed the Data Rate  = 1MBPS  on arduino to match the RPI preet</p>
<p dir="auto">any ideas?</p>
<p dir="auto">thanx a mil</p>
]]></description><link>https://forum.mysensors.org/post/59</link><guid isPermaLink="true">https://forum.mysensors.org/post/59</guid><dc:creator><![CDATA[Bmlsx]]></dc:creator><pubDate>Sun, 30 Mar 2014 07:27:51 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Tue, 25 Mar 2014 21:31:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jka" aria-label="Profile: jka">@<bdi>jka</bdi></a><br />
I seem to have new problem then, guess it's with g++?</p>
<pre><code>pi@domoticzpi ~/mysensors/Raspberry $ make
make -C librf24
make[1]: Wejście do katalogu `/home/pi/mysensors/Raspberry/librf24'
g++ -Wall -fPIC -Ofast -mfpu=vfp -mfloat-abi=hard -march=armv6zk -mtune=arm1176jzf-s -c RF24.cpp
In file included from /usr/include/unistd.h:203:0,
             from spi.h:13,
             from RF24_config.h:23,
             from RF24.cpp:10:
/usr/include/arm-linux-gnueabihf/bits/posix_opt.h:131:3: error: #error "Never use &lt;bits/syscall.h&gt; directly; include &lt;sys/syscall.h&gt; instead."
/usr/include/arm-linux-gnueabihf/bits/posix_opt.h:20:0: error: unterminated #ifndef
In file included from RF24.cpp:11:0:
RF24.h: In constructor ‘RF24::RF24(std::string, uint32_t, uint8_t)’:
RF24.h:52:12: warning: ‘RF24::spispeed’ will be initialized after [-Wreorder]
RF24.h:50:11: warning:   ‘uint8_t RF24::ce_pin’ [-Wreorder]
RF24.cpp:241:1: warning:   when initialized here [-Wreorder]
make[1]: *** [RF24.o] Błąd 1
make[1]: Opuszczenie katalogu `/home/pi/mysensors/Raspberry/librf24'
make: *** [RF24] Błąd 2
pi@domoticzpi ~/mysensors/Raspberry $
</code></pre>
]]></description><link>https://forum.mysensors.org/post/34</link><guid isPermaLink="true">https://forum.mysensors.org/post/34</guid><dc:creator><![CDATA[andriej]]></dc:creator><pubDate>Tue, 25 Mar 2014 21:31:54 GMT</pubDate></item><item><title><![CDATA[Reply to Code for beta-testing? on Tue, 25 Mar 2014 00:54:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andriej" aria-label="Profile: andriej">@<bdi>andriej</bdi></a><br />
OK, there where a few glitches in the Makefile, you can update it now.</p>
]]></description><link>https://forum.mysensors.org/post/33</link><guid isPermaLink="true">https://forum.mysensors.org/post/33</guid><dc:creator><![CDATA[jka]]></dc:creator><pubDate>Tue, 25 Mar 2014 00:54:31 GMT</pubDate></item></channel></rss>