Help me, Problem with wireless programming[solved]

Started by PabloCordova, March 08, 2015, 02:58:54 PM

PabloCordova

Hello, I have 2 Moteinos:
   - Moteino R4
   - Moteino R4 - usb

But I don't know the frequency and if It has RFM69HW or not.
I want programming the "Moteino R4" wirelessly, because I dont have converter uart-usb.

I attached a picture of my connections, the "Moteino R4-usb" is powered via USB and "Moteino R4" is powered with 4 piles(total 6v).

My problem is that I can't program the "Moteino R4" wirelessly, also I attached a picture of my error. I seem it don't recognize the "Moteino R4", I have proved with all combination of frequency, and activating and deactivating the "RFM69W".

I don't know what I can do more for It work.

Thanks.

PabloCordova

I forget say, I used the code of example "Wirelessprogramming_node" and "Wirelessprogramming_gateway" of  library RFM69.

Felix

You NEED a FTDI adapter to program the Moteino the first time with a sketch that listens to wireless programming tokens.
Please see this section and video for more details: lowpowerlab.com/moteino/moteino#wirelessprogramming

PabloCordova

Hi, Thanks for answer.

Which Scketch you say that I have to program?
Is DualOptiboot bootloader?

I supposed that I don't needed this because in the text says that is no necessary:

"All recent Moteinos (R2-R4) come with the DualOptiboot bootloader which enables them to be wirelessly programmed when a FLASH chip is present"

or the scketch that I need program the first time is "Wirelessprogramming_gateway"?

Thanks.

Felix

Please just watch the video, Luis explains everything.

PabloCordova

Hi,

Yes, I never question without before research about the subject.

I have seen all videos, forum, and questions. And in the video only I understand for the images, Because I don't know english, I am spanish. Maybe in the video says my question(but not show), but if anything can help me only with the question, what scketch I need program for the first time?

In the video used "Wirelessprogramming_gateway", and I think that this is for one Moteino and "Moteino_outer_gate_node" for programmer wirelessly other moteino, this is true?, or "Wirelessprogramming_gateway" was the first scketch programmed and after "Moteino_outer_gate_node", also I can't find the sckech "Moteino_outer_gate_node" in internet.

I am use google translate.


Felix

You need to keep the radio in RX mode and call CheckForWirelessHEX() from the WirelessHEX69 library. See the GarageMote sketch for an example.
This is explained in the blog posts and in the video and in the links I posted.
Everything is in english around here so i don't know how to help more than this.

luisr320

Hola Pablo . Para programar de una forma inalámbrica un moteino , la primera vez que programe este moteino, él tiene que estar conectado al ordenador con el adaptador FTDI .
Compra un en eBay. Son baratos .
O pide Felix : https://lowpowerlab.com/shop/index.php?_route_=FTDI-Adapter

Felix

Quote from: luisr320 on March 09, 2015, 06:24:15 AM
Hola Pablo . Para programar de una forma inalámbrica un moteino , la primera vez que programe este moteino, él tiene que estar conectado al ordenador con el adaptador FTDI .
Compra un en eBay. Son baratos .
O pide Felix : https://lowpowerlab.com/shop/index.php?_route_=FTDI-Adapter

Yay LowPowerLab forums now in 2 languages! Bravo Luis  ;D  8)

PabloCordova

Muchas gracias,

Lo malo que comprar un FTDI tomará más de 1 semana,  lo que hice fue cortar pistas del FTDI del "Moteino USB" y puentearlo al "Moteino", ya pude grabarlos y comunicarlos.

Saludos.

Felix

Ok now the translation so we know the solution? :)

luisr320

"The problem with having to buy the FTDI adapter is that it would take a week to get it. So I hacked the tracks of the USB Moteino board and bridged the FTDI chip it to the other Moteino. Now I can communicate with the remote node"

Ugly but efficient solution :-)

"If it works, it's a good idea!"

Felix

Thanks Luis, you are now the spanish department of the forum support :)

TomWS

Quote from: Felix on March 10, 2015, 06:19:04 AM
Thanks Luis, you are now the spanish department of the forum support :)
I'm thinking Portuguese (AKA Brazilian) , but I could be wrong...  ;)
T

Felix

Hey my spanish is as good as my portuguese - no tan bueno :)