-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joining nrf module to esp wifi network #16
Comments
These are the general models for RF24Ethernet and RF24Mesh with ESP8266: RF24Ethernet: Arduino -> RF24 -> RPi (RF24Gateway) -> WiFi / LAN / Internet / ESP8266 / RF24Mesh: Arduino -> RF24 -> ESP8266 -> TCP/IP -> LAN/Internet Technically the ESP8266 could act as a LAN/Internet gateway, just like RPi, On Mon, Jun 27, 2016 at 1:33 AM, Debojit Kundu notifications@github.com
|
hi TMRh20 |
sorry for English |
I’m not 100% sure what you are asking, but think you just need to use a slightly different API. See https://tmrh20.github.io/RF24/classRF24.html#a23bfe6502d74bb5bbccb3a7f2ba2b5ea
And
https://tmrh20.github.io/RF24/classRF24.html#a6253607ac2a1995af91a35cea6899c31
… On Dec 21, 2019, at 11:01, cjmcx ***@***.***> wrote:
sorry for English
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi TMRh20thanks for the response so quickly my problem is that I made a remote control with pic16f690, which sends an ack-free code and then goes into sleepon the reception side also with pic16f690 listening to the code and if it is the same as the one in eeprom, execute a command (turn on a light bulb)They have been operating for about 5 yearswith esp32 we made rx and tx to work between them. but pic16f690 on the rx side, it doesn't react to esp32 tx If you think you can help me, I can send the codes, esp32 rx, tx and pic16f690 rx, txthanksbest regard
On Monday, December 23, 2019, 02:37:20 AM GMT+2, TMRh20 <notifications@github.com> wrote:
I’m not 100% sure what you are asking, but think you just need to use a slightly different API. See https://tmrh20.github.io/RF24/classRF24.html#a23bfe6502d74bb5bbccb3a7f2ba2b5ea
And
https://tmrh20.github.io/RF24/classRF24.html#a6253607ac2a1995af91a35cea6899c31
On Dec 21, 2019, at 11:01, cjmcx ***@***.***> wrote:
sorry for English
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Well it’s most likely that there is just a slight difference in the radio configuration, so yeah post your code plz.
… On Dec 23, 2019, at 01:38, cjmcx ***@***.***> wrote:
Hi TMRh20thanks for the response so quickly my problem is that I made a remote control with pic16f690, which sends an ack-free code and then goes into sleepon the reception side also with pic16f690 listening to the code and if it is the same as the one in eeprom, execute a command (turn on a light bulb)They have been operating for about 5 yearswith esp32 we made rx and tx to work between them. but pic16f690 on the rx side, it doesn't react to esp32 tx If you think you can help me, I can send the codes, esp32 rx, tx and pic16f690 rx, txthanksbest regard
On Monday, December 23, 2019, 02:37:20 AM GMT+2, TMRh20 ***@***.***> wrote:
I’m not 100% sure what you are asking, but think you just need to use a slightly different API. See https://tmrh20.github.io/RF24/classRF24.html#a23bfe6502d74bb5bbccb3a7f2ba2b5ea
And
https://tmrh20.github.io/RF24/classRF24.html#a6253607ac2a1995af91a35cea6899c31
> On Dec 21, 2019, at 11:01, cjmcx ***@***.***> wrote:
>
>
> sorry for English
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
`#include <SPI.h> #include "nRF24L01.h" RF24 radio(17, 5); const uint64_t pipes[2] = { 0x3443101001LL, 0x39383736c2LL }; // pic16f690 pipe configuration void setup() radio.begin(); } void loop() |
rx esp32 |
tx esp32 #include "nRF24L01.h" //const byte rxAddr[6] = "00001"; void setup() char text[] = "DIANA I'm Here !!"; Serial.print("Sending....."); |
pic rx #define SW_1 PORTA.F5 //RB4 #define SW_1_DIR TRISA.F5 //=0; UINT8 remclose; typedef struct
} FlagType; FlagType Flag; void init_mcu(void); void power_on_delay(void); // 1 void sub_program_1hz(void); extern void RFM70_Initialize(void); const UINT8 tx_buf[19]={0x44,0x4F,0x41,0x4E,0x20,0x47,0x4F,0x43,0x41,0x4E,0x20,0x54,0x48,0x45,0x20,0x42,0x45,0x53,0x54}; extern const UINT8 RX0_Address[]; UINT8 test_data; /********************************************************* Description: /********************************************************* Description:
GND_DIR = 0;
// SW_3_DIR = 1;
GND = 0; Description: /********************************************************* Description: *********************************************************/ /*
// if(aaa==400)
} /********************************************************* Description: / void delay_2s(void) void delay_300ms(void) /********************************************************* Description: *********************************************************/ void delay_1ms(void) void delay_20us(void) void sub_program_1hz(void)
} void Send_Packet(UINT8 type,UINT8* pbuf,UINT8 len)
// GREEN_LED = 1;
// GREEN_LED = 0; } void Receive_Packet(void)
// chksum +=rx_buf[i];
// GREEN_LED = 0; //for(i=0;<10;i++) // if(rx_buf[i]==eeprom_read(i)&&aaa==0)
// if(rx_buf[0]==0x49&&rx_buf[1]==0x4F&&rx_buf[2]==0x41&&rx_buf[3]==0x4E&&aaa==0)
// GREEN_LED = 0;
// GREEN_LED = 1;
// RED_LED = 0; // for(i=0;i<17;i++) void main()
// usart_init(9600); Pwm_Change_Duty(0); // hallin = hall;
} ` |
pic tx //#define RED_LED PORTB.F4 //#define RED_LED_DIR TRISB.F4 UINT8 count_50hz;
} FlagType; FlagType Flag; void init_mcu(void); void power_on_delay(void); void Send_Packet(UINT8 type,UINT8* pbuf,UINT8 len); extern void RFM70_Initialize(void); UINT8 test_data; void init_mcu(void) void init_port(void)
SW2 = 1; void timer2_init(void) //void interrupt ISR_timer(void)
} void power_on_delay(void) void delay_200ms(void) void delay_50ms(void) /void delay_5ms(void) Function: delay_1ms(); Description: *********************************************************/ void delay_20us(void) void sub_program_1hz(void)
}
}
} void Send_Packet(UINT8 type,UINT8* pbuf,UINT8 len)
} void Receive_Packet(void)
// chksum +=rx_buf[i]; while(1) } |
RFM70_receiver_code.zip void RF24::openWritingPipe(uint64_t value) //const uint8_t max_payload_size = 32; |
`void Send_Packet(UINT8 type,UINT8* pbuf,UINT8 len) fifo_sta=SPI_Read_Reg(FIFO_STATUS); // read register FIFO_STATUS's value |
thanks |
for pic , mplab or mikroc compiler |
Ok, first thing to look at will be the RFM70_init.c, where the radio is
configured.
The main things I notice right away are the following:
1. Most settings appear to be the same between pic and esp32
2. Channel on pic is 23
3. Dynamic payload length is enabled on pic
4. I think you have the addressing correct, it could be backwards though,
easy to test...
So on the ESP32 side, try adding radio.enableDynamicPayloads(); and
radio.setChannel(23);
Everything else seems to match up, so that should do the trick as far as
configuration goes.
…On Mon, Dec 23, 2019 at 12:47 PM cjmcx ***@***.***> wrote:
SSR.zip <https://github.com/nRF24/RF24Ethernet/files/3995913/SSR.zip>
telecomanda 2 sw + learn + gen.zip
<https://github.com/nRF24/RF24Ethernet/files/3995915/telecomanda.2.sw.%2B.learn.%2B.gen.zip>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#16?email_source=notifications&email_token=AAT5KHEWXG6JHJHMFGBAGZTQ2EBV5A5CNFSM4CH3J4N2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHRWOOI#issuecomment-568551225>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAT5KHGHIDSWHHNJVUXJTVLQ2EBV5ANCNFSM4CH3J4NQ>
.
|
all four are on Channel 6 |
esp32 |
it work !!!! |
but with another arduino library |
Hi,
I quite did not understand the purpose of RF24Ethernet library. With this can I directly communicate between a nrf module and a esp 8266.
Currently I have arduino+nrf at one side, and at the other end I have esp8266+nrf. This works :). I am using RF24Mesh library in order to achieve this. Can I just remove the nrf at the esp end, and join the esp created network (esp soft ap mode) from the arduino+nrf24l01 setup using the RF24Ethernet library?
Thanks,
Debojit
The text was updated successfully, but these errors were encountered: