LowPowerLab Forum

Hardware support => Moteino => Topic started by: PabloCordova on March 08, 2015, 02:58:54 PM

Title: Help me, Problem with wireless programming[solved]
Post by: PabloCordova on March 08, 2015, 02:58:54 PM
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.
Title: Re: Help me, Problem with wireless programming
Post by: PabloCordova on March 08, 2015, 03:03:05 PM
I forget say, I used the code of example "Wirelessprogramming_node" and "Wirelessprogramming_gateway" of  library RFM69.
Title: Re: Help me, Problem with wireless programming
Post by: Felix on March 08, 2015, 04:35:48 PM
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
Title: Re: Help me, Problem with wireless programming
Post by: PabloCordova on March 08, 2015, 06:30:43 PM
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.
Title: Re: Help me, Problem with wireless programming
Post by: Felix on March 08, 2015, 07:28:33 PM
Please just watch the video, Luis explains everything.
Title: Re: Help me, Problem with wireless programming
Post by: PabloCordova on March 08, 2015, 08:10:11 PM
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.

Title: Re: Help me, Problem with wireless programming
Post by: Felix on March 08, 2015, 08:29:59 PM
You need to keep the radio in RX mode and call CheckForWirelessHEX() from the WirelessHEX69 library. See the GarageMote sketch (https://github.com/LowPowerLab/RFM69/blob/master/Examples/GarageMote/GarageMote.ino) 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.
Title: Re: Help me, Problem with wireless programming
Post by: 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
Title: Re: Help me, Problem with wireless programming
Post by: Felix on March 09, 2015, 08:26:27 AM
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)
Title: Re: Help me, Problem with wireless programming
Post by: PabloCordova on March 09, 2015, 09:47:41 AM
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.
Title: Re: Help me, Problem with wireless programming[solved]
Post by: Felix on March 09, 2015, 11:19:27 AM
Ok now the translation so we know the solution? :)
Title: Re: Help me, Problem with wireless programming[solved]
Post by: luisr320 on March 09, 2015, 07:41:09 PM
"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!"
Title: Re: Help me, Problem with wireless programming[solved]
Post by: Felix on March 10, 2015, 06:19:04 AM
Thanks Luis, you are now the spanish department of the forum support :)
Title: Re: Help me, Problem with wireless programming[solved]
Post by: TomWS on March 10, 2015, 08:03:48 AM
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
Title: Re: Help me, Problem with wireless programming[solved]
Post by: Felix on March 10, 2015, 08:31:14 AM
Hey my spanish is as good as my portuguese - no tan bueno :)
Title: Re: Help me, Problem with wireless programming[solved]
Post by: luisr320 on March 10, 2015, 09:20:49 AM
Oh boy! A promotion! hope it comes with a pay reduction ;)

Actually there are two types of Portuguese languages: from Brazil and from Portugal. Same language, different people. I live in Portugal so I speak portuguese portuguese. And Spain is next door so we can "almost" speak Spanish. And Google translate makes everyone look good at foreign languages ;)
Title: Re: Help me, Problem with wireless programming[solved]
Post by: TomWS on March 10, 2015, 09:29:20 AM
Quote from: Felix on March 10, 2015, 08:31:14 AM
Hey my spanish is as good as my portuguese - no tan bueno :)
LOL!  My Spanish is also as good as my Brazilian, Portuguese, and Romanian, for that matter!

Tom