Author Topic: RFM69HW problem  (Read 6212 times)

jaime1988

  • Newbie
  • *
  • Posts: 18
RFM69HW problem
« on: August 25, 2013, 11:54:56 AM »
Hi all,

I'm trying to use 2 moteino R3 version with RFM69HW. If I didn't uncomment the line

radio.setHighPower(); //must uncomment for RFM69HW!

The range is awfull. If I uncomment that line, as I must do, the moteino resets continuosly and the serial port output is as follows:

Listening at 868 Mhz...
SPI Flash Init FAIL! (is chip present?)
[99] 123 A
Listening at 868 Mhz...
SPI Flash Init FAIL! (is chip present?)
[99] 123 AB
Listening at 868 Mhz...
SPI Flash Init FAIL! (is chip present?)
[99] 123 ABC
Listening at 868 Mhz...
SPI Flash Init FAIL! (is chip present?)
[99] 123 ABCD
Listening at 868 Mhz...
SPI Flash Init FAIL! (is chip present?)
[99] 123 ABCDE

Any idea of the possible problem?

Thanks and best regards.
Jaime



Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5938
  • Country: us
    • LowPowerLab
Re: RFM69HW problem
« Reply #1 on: August 26, 2013, 08:17:02 AM »
This is on the receiver correct?

jaime1988

  • Newbie
  • *
  • Posts: 18
Re: RFM69HW problem
« Reply #2 on: August 26, 2013, 11:04:06 AM »
Hi,

Yes, this is the receiver. But in the transmitter it happens the same.


Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5938
  • Country: us
    • LowPowerLab
Re: RFM69HW problem
« Reply #3 on: August 26, 2013, 12:15:27 PM »
Really...
Looking at the receiver output, it looks to me like the transmitter is fine. Upon startup it will always start with empty string, not where it left off before a restart.
Are you sure you are using the latest code from github?

jaime1988

  • Newbie
  • *
  • Posts: 18
Re: RFM69HW problem
« Reply #4 on: August 27, 2013, 05:29:25 AM »
I donwloaded the new code and it occurs the same. Any idea?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5938
  • Country: us
    • LowPowerLab
Re: RFM69HW problem
« Reply #5 on: August 27, 2013, 08:23:39 AM »
Like I say to everyone - all Moteinos are tested when they go out. I've seen several cases where the user does something and causes the weird behavior, and they think it's a broken or "dead" Moteino when in fact nothing is wrong with the hardware.
So I have very little doubt that there is anything wrong with them, especially if they both exhibit the same behavior.

From past experience it's either:
- not so good soldering
- not the latest library/example code
- wrong settings in the code
- some short on the board somewhere
- bad FTDI adapter/cable

Can you double check these things, and also - could you swap them and reprogram them and see if it still happens?
« Last Edit: August 28, 2013, 12:48:43 PM by Felix »

john k2ox

  • Full Member
  • ***
  • Posts: 110
Re: RFM69HW problem
« Reply #6 on: August 28, 2013, 12:46:18 PM »
I think I ran into this early on.

I was using the rfm12 code instead of rfm69!!!

john

jaime1988

  • Newbie
  • *
  • Posts: 18
Re: RFM69HW problem
« Reply #7 on: August 29, 2013, 05:59:50 AM »
Hi soldered a new board and the result is the same. Perhaps the problem is in the usb/uart. I'm using a self-desing uart, I will try with another different.

But it's strange because without the highPower setting, it works perfect. It gives -100 of RSSI aprox, but it works. Perhaps the modules have a problem....

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5938
  • Country: us
    • LowPowerLab
Re: RFM69HW problem
« Reply #8 on: August 29, 2013, 08:14:10 AM »
I really don't think there's anything wrong with the Moteinos.
The HWs will draw up to 130mA with the HW on, so if you have a flaky USB-UART then that might be the culprit.

jaime1988

  • Newbie
  • *
  • Posts: 18
Re: RFM69HW problem
« Reply #9 on: August 29, 2013, 04:17:09 PM »
I tried with another usb/uart and even only with usb power directly. It seems that the moteino is reseted when transmit: radio.sendWithRetry(GATEWAYID, payload, sendSize)

But it's strange because without highPower, it tx/rx without any problem. I soldered the moteinos and burn the bootloader (normal optiboot and tried yours). I tried with different frecuencies modules... Is there any extra hw or configuration needed?

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5938
  • Country: us
    • LowPowerLab
Re: RFM69HW problem
« Reply #10 on: August 31, 2013, 09:08:20 PM »
You don't have to reburn the bootloader, but I guess you can do it if you want to.
The stock examples should just work, as long as you match the frequency settings.
I'm really having a hard time trying to understand how they worked fine before I bagged and shipped them, and now they don't, you know what I mean?
Frankly I am fairly convinced there is nothing wrong with them, as proven in other cases where the user was absolutely certain they were, but turned out they were not. It's almost always something very minor, either something missed in the sketch or some procedure error.

Could you post a picture of what/how you soldered them?

jaime1988

  • Newbie
  • *
  • Posts: 18
Re: RFM69HW problem
« Reply #11 on: September 05, 2013, 02:22:40 PM »
Hi, sorry for not answering in a few days, it was impossible for me.

Just for clarifying, I added a usb/uart converter and sent them to the fab and soldered them  myself. I wanted to make a "moteino stick" more easy for development. I will release the code/schematics as soon as it works, now I'm having some problems with that. I had to burn the bootloader because the atmega328p was blank. I burned first the optiloader and then yours bootloader. I burned the bootloaders with another moteino, I will post the details as soon as it's stable.





P.S. In the top I added some text "W/HW" and "4/8/9" so you can mark what rfm69 module you have, I think it's very useful when you have a lot of them
« Last Edit: September 05, 2013, 07:31:14 PM by Felix »

Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5938
  • Country: us
    • LowPowerLab
Re: RFM69HW problem
« Reply #12 on: September 05, 2013, 08:41:16 PM »
Don't forget to set the fuses:
EXT:FD HI:DA LO:DE

jaime1988

  • Newbie
  • *
  • Posts: 18
Re: RFM69HW problem
« Reply #13 on: September 06, 2013, 02:46:46 AM »
Perhaps this is the problem since all the moteinos R3 I have has been programmed by me. Can this make rfm69w and rfm69hw work in low power but not in high? I'll take a look to this.


Felix

  • Administrator
  • Hero Member
  • *****
  • Posts: 5938
  • Country: us
    • LowPowerLab
Re: RFM69HW problem
« Reply #14 on: September 06, 2013, 08:27:27 AM »
So you have not set the fuses at all?