tony
New Member
Posts: 6
|
Post by tony on Jun 20, 2017 21:48:29 GMT
Hi progman thanks for correct files. things seem better apart it fails to patch the radio_config file.
best regards
patching file radio_config_Si4460.h Hunk #1 FAILED at 2. Hunk #2 FAILED at 20. Hunk #3 FAILED at 31. Hunk #4 FAILED at 50. Hunk #5 FAILED at 76. Hunk #6 FAILED at 117.
|
|
tony
New Member
Posts: 6
|
Post by tony on Jun 27, 2017 16:48:40 GMT
Hi all
Still having trouble adding the patch.
I'm using RadioHead-1.62.zip that progman kindly linked and I'm still getting errors.
The first two files seem to patch ok, it's the last file Radio_config_Si4460.h.
What am I doing wrong ? i tried a few different switches (remove white spaces etc) still get the same errors.
Any suggestions please.
Regards.
______________________________________________
patch < RadioHead-1.62.patch (Stripping trailing CRs from patch.) patching file RH_RF24.cpp (Stripping trailing CRs from patch.) patching file RH_RF24.h (Stripping trailing CRs from patch.) patching file radio_config_Si4460.h Hunk #1 FAILED at 2. Hunk #2 FAILED at 20. Hunk #3 FAILED at 31. Hunk #4 FAILED at 50. Hunk #5 FAILED at 76. Hunk #6 FAILED at 117. Hunk #7 FAILED at 132. Hunk #8 FAILED at 171. Hunk #9 FAILED at 193. Hunk #10 FAILED at 256. Hunk #11 FAILED at 267. Hunk #12 FAILED at 285. Hunk #13 FAILED at 304. Hunk #14 FAILED at 321. Hunk #15 FAILED at 351. Hunk #16 FAILED at 369. Hunk #17 FAILED at 388. Hunk #18 FAILED at 403. Hunk #19 FAILED at 425. Hunk #20 FAILED at 447. Hunk #21 FAILED at 469. Hunk #22 FAILED at 483. Hunk #23 FAILED at 540. Hunk #24 FAILED at 551. Hunk #25 FAILED at 569. Hunk #26 FAILED at 592. Hunk #27 FAILED at 602. 27 out of 27 hunks FAILED -- saving rejects to file radio_config_Si4460.h.rej
|
|
|
Post by skiingsid on Jul 20, 2017 6:45:47 GMT
The RFM26W (http://www.anarduino.com/details.jsp?pid=293) is not bread board friendly, ie the pin spacing is dose not line up with a bread board. Dose any one know where you can get a break out board form? I have already blown up a RFM26W with my poor soldering and a hack with a strip of pins!
|
|
|
Post by philipp on Jul 20, 2017 11:07:28 GMT
|
|
tony
New Member
Posts: 6
|
Post by tony on Jul 21, 2017 11:38:34 GMT
turned pin IC socket. quick and simple for breadboard working. Attachments:
|
|
eikaf
New Member
Posts: 2
|
Post by eikaf on Jul 25, 2017 7:23:59 GMT
Hi all Still having trouble adding the patch. I'm using RadioHead-1.62.zip that progman kindly linked and I'm still getting errors. The first two files seem to patch ok, it's the last file Radio_config_Si4460.h. What am I doing wrong ? i tried a few different switches (remove white spaces etc) still get the same errors. Any suggestions please. Regards. ______________________________________________ patch < RadioHead-1.62.patch (Stripping trailing CRs from patch.) patching file RH_RF24.cpp (Stripping trailing CRs from patch.) patching file RH_RF24.h (Stripping trailing CRs from patch.) patching file radio_config_Si4460.h Hunk #1 FAILED at 2. Hunk #2 FAILED at 20. Hunk #3 FAILED at 31. Hunk #4 FAILED at 50. Hunk #5 FAILED at 76. Hunk #6 FAILED at 117. Hunk #7 FAILED at 132. Hunk #8 FAILED at 171. Hunk #9 FAILED at 193. Hunk #10 FAILED at 256. Hunk #11 FAILED at 267. Hunk #12 FAILED at 285. Hunk #13 FAILED at 304. Hunk #14 FAILED at 321. Hunk #15 FAILED at 351. Hunk #16 FAILED at 369. Hunk #17 FAILED at 388. Hunk #18 FAILED at 403. Hunk #19 FAILED at 425. Hunk #20 FAILED at 447. Hunk #21 FAILED at 469. Hunk #22 FAILED at 483. Hunk #23 FAILED at 540. Hunk #24 FAILED at 551. Hunk #25 FAILED at 569. Hunk #26 FAILED at 592. Hunk #27 FAILED at 602. 27 out of 27 hunks FAILED -- saving rejects to file radio_config_Si4460.h.rej HI, got same problems as you, solved editing manually radio_config_Si4460.h file and all compiled correctly. Flashed my teensy and got it connected to rfm26w, now I am here to ask, if someone have tried to make it work with a Raspberry Pi. I can't understand connection between arduino and teensy. If someone could help, would be appreciated. For pcb soldering question, I have soldered pins on rfm26w alternatively upside down and connected them with jumper cables. Hope to manage to send a photo tonight Regards.
|
|
|
Post by skiingsid on Jul 25, 2017 14:59:20 GMT
As far as I can see the patch file modifies the radio_config_si4460.h file, if that is the case they would all end up the same. I have attached the one that I produced after running the patch file. Hope its useful. Attachments:radio_config_Si4460.h (32.82 KB)
|
|
|
Post by nitramf on Jul 25, 2017 17:26:41 GMT
I have attached the patched library. It compiles at my arduino ide. RadioHead-patched.rar (345.25 KB) But I have another question. The sketch supplied by stefankrupop (great work, thank you!) does feed the mBuffer into the rf-sending library. How to fill the buffer, eg. with 0x00 0x01 ? Do I have to use memset? Attachments:RadioHead-patched.rar (345.24 KB)
|
|
|
Post by stefankrupop on Jul 25, 2017 19:49:43 GMT
The sketch is intended to forward data received via the serial port of the Arduino/Teensy via the wireless link. Thus you just start a console program (e.g. RealTerm), open the port of the Arduino and start sending bytes. Keep in mind that it expects "raw" bytes and not hex-formatted numbers.
Stefan
|
|
eikaf
New Member
Posts: 2
|
Post by eikaf on Jul 25, 2017 21:23:13 GMT
Which binary converter you tried? Gave it a shot with "xdd" in linux without success. I'm also trying to port it using module on raspberry pi (with your permission),
|
|
|
Post by nitramf on Aug 4, 2017 22:10:24 GMT
Hey, after some tinkering I have finally got the "Device initalized"-Message. When I try to send the init-sequency (even for 10 seconds) nothing happens. Are my settings in realterm ok? Regarding to xylobandhacking.freeforums.net/thread/23/control-packets I should send this to initialize the band: 0x06 0x00 0xFF 0xFF 0x00 0x81 0x02 Even if I try to send the "illegal" packet nothing happens: 0x00 0x00 If I send it, nothing happens. My Xyloband has still 6V. You said that I have to input the Content as "raw bytes", means no 0x in front of it? Realterm does nothing in this case. Could you give me a hint which format is needed? I am not sure if the rf chip works right. My xyloband is from a concert in germany, I assume that it uses also 868MHz, as there is 500mW sending power allowed here on this frequency. I tried to set up an array to initialize the band and tried to send it continuously but It won't work: int myArray[6]={0x06, 0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02}; if(rf24.send_raw(*myArray, 7)){ blinker(); Serial.println("Packet init sent."); }else{ Serial.println("Packet send failed!"); } Thank you in advance Attachments:
|
|
sguz
New Member
Posts: 3
|
Post by sguz on Aug 6, 2017 19:25:13 GMT
Hi everybody, thanks for the great work so far. My Setup for working with the Xylobands is an ESP8266 (nodemcu) connected to an RFM26W. With a mix of the code from stephan and github.com/SciLor/ESP8266_Hyperion_LED-Controller I am able active my bands via Smartphone (Hyperion App). (Working: Turn on/off, commands from communication post; TODO: Color selection & keep alive). If anyone is interested in the code or the hardware description, just let me know. @ntramf: for me this works uint8_t wakeupKeepAliveArray[0x06]={0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02}; uint8_t colorFadingArray[0x21]={0x00, 0xFF, 0xFF, 0xE2, 0xFF, 0x06, 0x01, 0x21, 0x00, 0x00, 0x00, 0xFA, 0x03, 0x01, 0x10, 0x00, 0x06, 0x20, 0x70, 0x00, 0x01, 0x00, 0x00, 0x04, 0x21, 0x2F, 0x02, 0x00, 0x01, 0x41, 0x03, 0x40, 0x42}; rf24.send_raw(wakeupKeepAliveArray, 6); rf24.send_raw(colorFadingArray, sizeof(colorFadingArray));
|
|
|
Post by nitramf on Aug 9, 2017 7:47:25 GMT
@ntramf: for me this works uint8_t wakeupKeepAliveArray[0x06]={0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02}; uint8_t colorFadingArray[0x21]={0x00, 0xFF, 0xFF, 0xE2, 0xFF, 0x06, 0x01, 0x21, 0x00, 0x00, 0x00, 0xFA, 0x03, 0x01, 0x10, 0x00, 0x06, 0x20, 0x70, 0x00, 0x01, 0x00, 0x00, 0x04, 0x21, 0x2F, 0x02, 0x00, 0x01, 0x41, 0x03, 0x40, 0x42}; rf24.send_raw(wakeupKeepAliveArray, 6); rf24.send_raw(colorFadingArray, sizeof(colorFadingArray)); Thank you this worked. I have initally used the nodemcu module too, but it resets itself in a loop. Do you have used the sample sketch?
|
|
sguz
New Member
Posts: 3
|
Post by sguz on Aug 9, 2017 20:58:03 GMT
#include <SPI.h>
#include <RH_RF24.h>
#include <ESP8266WiFi.h>
// LED that blinks when a packet is sent
#define LEDOUTPUT LED_BUILTIN
#define ESP8266
// nSEL on pin 15
RH_RF24 rf24(15, D2, D3);
double mFrequency = 869.475585;
#define MAX_BUFFER_LEN 0x3f
#define STATE_WAIT_LENGTH 0
#define STATE_BUFFERING 1
uint8_t mCurrentState = STATE_WAIT_LENGTH;
uint8_t mLength = 0;
uint8_t mBuffer[MAX_BUFFER_LEN];
uint8_t mBufferPos = 0;
uint8_t initdone = 1;
uint8_t command = 0;
uint8_t wakeupKeepAliveArray[6]={0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02};
uint8_t sutdown[6]={0x00, 0xFF, 0xFF, 0x00, 0x82, 0x02};
uint8_t staticRandomColorArray[35]={0x00, 0xFF, 0xFF, 0x76, 0xFF, 0x06, 0x01, 0x20, 0x00, 0x00, 0x00, 0xFA, 0x03, 0x01, 0x21, 0x00, 0x10, 0x0A, 0x00, 0xF8, 0xFB, 0xFD, 0xF0, 0xFE, 0xFA, 0xFF, 0xF8, 0xFB, 0xFD, 0xF0, 0xFE, 0xFA, 0xAF, 0x01, 0x43};
void blinker(){
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
// Wait for two seconds (to demonstrate the active low LED)
delay(50);
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is acive low on the ESP-01)
}
void setup() {
Serial.begin(115200);
// setup the blinker output
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
// Wait for two seconds (to demonstrate the active low LED)
Serial.println("Initializing...");
//SPI.setDataMode(SPI_MODE1);
// initialize the RF Chip
if (!rf24.init()) {
Serial.println("init failed");
initdone = 0;
return;
}
rf24.setFrequency(mFrequency);
Serial.println("Device initialized");
}
void loop() {
/*if (command == 0)
{
rf24.send_raw(wakeupKeepAliveArray, 6);
command = 1;
delay(2000);
digitalWrite(LED_BUILTIN, LOW); // Turn the LED on (Note that LOW is the voltage level
// but actually the LED is on; this is because
// it is acive low on the ESP-01)
}
if (command == 1)
{
rf24.send_raw(staticRandomColorArray, 35);
command = 0;
delay(2000);
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED off by making the voltage HIGH
// Wait for two seconds (to demonstrate the active low LED)
} */
/*
if (Serial.available() > 0) {
uint8_t c = Serial.read();
Serial.println(c, DEC);
if (mCurrentState == STATE_WAIT_LENGTH) {
// Received length of packet
// MSB designates commands, as length can be a max of 0x3f
if (c & 0x80) {
if (c == 0x81) {
mFrequency += 0.001;
rf24.setFrequency(mFrequency);
Serial.print("Frequency = ");
Serial.print(mFrequency, 6);
Serial.println(" MHz");
} else if (c == 0x82) {
mFrequency -= 0.001;
rf24.setFrequency(mFrequency);
Serial.print("Frequency = ");
Serial.print(mFrequency, 6);
Serial.println(" MHz");
} else {
Serial.println("Unknown command");
}
} else if (c <= MAX_BUFFER_LEN) {
mLength = c;
mCurrentState = STATE_BUFFERING;
mBufferPos = 0;
} else {
Serial.println("Illegal length byte received");
}
} else if (mCurrentState == STATE_BUFFERING) {
mBuffer[mBufferPos++] = c;
if (mBufferPos >= mLength) {
if(rf24.send_raw(mBuffer, mLength)){
blinker();
}else{
Serial.println("Packet send failed!");
}
mCurrentState = STATE_WAIT_LENGTH;
}
}
}*/
}
just comment out either if you want to use it as a terminal (use realterm) or to transmit stuff
HW:
Nodemcu <-----> RF26 D2 XRQ D3 SDN D5 XEL D6 SDO D7 SDI D8 SCK
RF26 Wiring look at posts above
|
|
sguz
New Member
Posts: 3
|
Post by sguz on Aug 9, 2017 20:59:03 GMT
@ntramf: for me this works uint8_t wakeupKeepAliveArray[0x06]={0x00, 0xFF, 0xFF, 0x00, 0x81, 0x02}; uint8_t colorFadingArray[0x21]={0x00, 0xFF, 0xFF, 0xE2, 0xFF, 0x06, 0x01, 0x21, 0x00, 0x00, 0x00, 0xFA, 0x03, 0x01, 0x10, 0x00, 0x06, 0x20, 0x70, 0x00, 0x01, 0x00, 0x00, 0x04, 0x21, 0x2F, 0x02, 0x00, 0x01, 0x41, 0x03, 0x40, 0x42}; rf24.send_raw(wakeupKeepAliveArray, 6); rf24.send_raw(colorFadingArray, sizeof(colorFadingArray)); Thank you this worked. I have initally used the nodemcu module too, but it resets itself in a loop. Do you have used the sample sketch? RH_RF24 rf24(15, D2, D3); fixed this bug for me
|
|