LibrePilot Forum

Development => Hardware => Topic started by: jtrout19 on March 06, 2016, 11:33:27 pm

Title: Revolution and OPlinkmini
Post by: jtrout19 on March 06, 2016, 11:33:27 pm
For some reason after switching to LibrePilot GCS I cannot get my oplink mini to connect to my Revo or vis versa. I have set device id in the revo to match the oplink mini's device ID and duplicated the settings of each to match. Any ideas on what is going on would be great thanks!
Title: Re: Revolution and OPlinkmini
Post by: f5soh on March 06, 2016, 11:53:59 pm
Please post Oplink tab screenshots from both sides.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 12:17:31 am
This is the Revolution Side
(http://i203.photobucket.com/albums/aa66/SickFoto/Revolution%20Side.jpg)

This is the Oplinkmini Side
(http://i203.photobucket.com/albums/aa66/SickFoto/Oplinkminiside.png)
Title: Re: Revolution and OPlinkmini
Post by: f5soh on March 07, 2016, 12:32:47 am
Try setting baudrate to 57600 and lower the power for now, no need 100mW.

Oplink connected to computer, how is powered the revo ?

Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 12:53:51 am
Yes oplink is connected to computer. Revo is powered by battery. Ive also tried powering it though another USB On a different computer. I will try those things give me about 5 minutes
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 01:02:23 am
No dice on the lowering of power or raising of the baud. I even tried doing them separate and then together. This is kind of frustrating!
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 01:38:51 am
It looks the exact same. The orange LED on the mini does flash when I have it plugged in. Its like a flash where the light is already on and solid but just get brighter really quick and then goes back to normal
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 01:54:41 am
In the picture of the revolution at the bottom you can see the power meters for the TX and RX. Why is the RX in the red and the TX barely has two bars?
Title: Re: Revolution and OPlinkmini
Post by: hwh on March 07, 2016, 02:08:49 am
You mean the one below?   It's not power it's data sent/received.  The computer normally sends way less than the telemetry it's receiving.
Title: Re: Revolution and OPlinkmini
Post by: hwh on March 07, 2016, 02:30:47 am
I hate to ask the obvious but you do have antennas attached to both the revo and oplink? I know it sounds stupid to ask but it has happened  :)

I just did an upgrade and erase on both a revo and an oplink to wipe all their settings.

To get them to connect I plugged in the oplink with the revo powered down, set the power to 25mw, left the baud rate at the default 38400, checked coordinator, clicked save at the bottom of the page, gave it a minute to make sure the settings were saved, unplugged the oplink, gave linux (I'm on a linux box) a minute to disconnect and the oplink config screen went away.  Plugged in the oplink again, went to the oplink config page, verified the settings were still there, wrote down it's device ID, and unplugged the oplink again.

I plugged in the revo, went to the oplink config page, set the power to 25mw, left the baud rate at the default 38400, filled in the coordinator ID with the 8 digit device ID from the oplink, made sure coordinator wasn't checked, clicked save at the bottom, gave it a minute, and unplugged the revo.

I then plugged the oplink back into the computer and powered up the revo with a battery.  After a minute or so everything connected.

edit:  another thing, when you switched to LibrePilot did you do a firmware "upgrade" or an "upgrade & erase"?   If you don't do the erase it doesn't always work right.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 03:28:07 am
I am going to feel really really stupid admitting this.......but the antenna on the Revolution was not connected.......some times it is the most obvious things. But now I am worried about the Revolution being messed up. I am going to start over with the damn antenna connected and proceed from there I will let you guys know how it turns out. I feel to freaking stupid right now! First time in my RC history that I have forgot to attach an antenna and Ive been into this hobby for 12 years now.
Title: Re: Revolution and OPlinkmini
Post by: hwh on March 07, 2016, 03:33:48 am
We all overlook the obvious at times.  I couldn't tell you how many times I've plugged a FC into usb on the bench and couldn't figure out why the attached gps wasn't working. (Hint: usb only powers the board, the gps needs the battery connected.)  I always feel like an idiot when I do that.   ;D
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 03:38:45 am
So is the RF circuitry for the OPlink in the Revolution fried at this point. I still cannot get a connection with everything correct at this point. Only thing left to do is erase the Revolution and start over.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 07, 2016, 03:35:55 pm
Ive tried resetting everything and starting from scratch. Still cannot get it to connect. Im thinking i might have to buy a new flight controller
Title: Re: Revolution and OPlinkmini
Post by: f5soh on March 07, 2016, 03:56:54 pm
Or replace the RFM22b module
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 08, 2016, 06:04:27 am
Where can i get one?
Title: Re: Revolution and OPlinkmini
Post by: hwh on March 08, 2016, 06:38:35 am
That depends on where you are and where you like to buy things.   I get them on eBay but if you do a google search for rfm22b it will list lots of places and some may be more convenient for you.   They run about $6.00 - 10.00 on eBay so watch out for people who try to sell them for $30+.   You want the RFM22B-S2 which is the one with the small crystal on it.   And a 433 MHz one.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 08, 2016, 08:40:57 am
Awesome sounds good i will get on on its way thanks alot
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 08, 2016, 08:50:02 am
http://www.ebay.com/itm/172052713043

This is the one i got on the way. That is a small crystal. Did i do good....lol
Title: Re: Revolution and OPlinkmini
Post by: hwh on March 08, 2016, 02:16:52 pm
That's the one.  They're fairly easy to replace if you've done any soldering.
Title: Re: Revolution and OPlinkmini
Post by: TheOtherCliff on March 08, 2016, 05:48:24 pm
I would triple check everything and learn all about telemetry and OpLinks before I did any soldering.  I accidentally ran without an antenna for several flights (connector popped off for no reason) and did not damage my Revo.

Does OpLink show up in GCS?  Does Revo allow enabling OpLink and rebooting?  What do the stats say when connected to one or the other?  Manual configuration is easy.  Same baud rate.  10mw on both.  They must be rebooted after setting power above zero.  Same set of channels.  Mark one as Coordinator with Coordinator ID = 0 and mark the other not coordinator with Coordinator ID = Device ID of the other one.  Don't forget to save settings.  Plug in OpLink to GCS.  Power up Revo.  Should connect.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 10, 2016, 10:21:03 pm
I am an electronics repair technician. So soldering is second nature for me. I will Do everything you have said to do tonight to see if I can get is working before I start replacing things. I will take screenshots along the way so you can double check me. The only thing in your list that I have not done is setting Coordinator ID=0 on the FC. Ive always left it blank. The Oplink does pop up in GCS. I have taken a break for a couple days waiting on a few other parts to arrive but I spent probably 20 hours trying to get them to work.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 12, 2016, 03:41:48 am
Alrighty so the new RF module is installed. And still no connection. I did find this out though tell me if it is important.
Under the system tab in GCS if you open up OPLinkStatus the REVO TX rate and RX Rate both show 0. On the Oplink there are number in those two things. Shouldnt the Revo also be sending out stuff regardless of connection if it is searching for a connection? What else can I do at this point?

Ok never mind about that. If I make the REVO the Coordinator the TX rate starts showing a number based on what speed is set at. This is really frustrating though.
Title: Re: Revolution and OPlinkmini
Post by: f5soh on March 12, 2016, 10:25:49 am
Coordinator side start sending frames, the no coordinator receive one frame from coordinator, give a answer and start channel hopping after both sides are syncr.

Coordinator has Tx rate if alone.
noCoordinator should have Rx rate and send a answer (tx rate)
Rx/Tx can be seen using the led status on Oplink module.

Remember the ID need to be updated because you replaced the RF module.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 12, 2016, 04:34:09 pm
The id did not change after replacing the Module. Is it something that us supposed to happen automatically or do I need to do something?
Title: Re: Revolution and OPlinkmini
Post by: f5soh on March 12, 2016, 04:46:28 pm
Sorry, i was thinking something about a factory ID stored inside RFM22 module.
I'm wrong, ID is generated using CPU serial number ;)

Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 13, 2016, 04:11:17 am
Well damnit i was hoping that you would be correct. Its really sad that i cant get it working. I really want the info in real time on my laptop. What else could be the issue?
Title: Re: Revolution and OPlinkmini
Post by: hwh on March 13, 2016, 05:22:48 am
We got sidetracked by the antenna but did you ever follow the step by step in the message where I asked you about the antenna?  Upgrade and erase both the oplink and the revo and then follow that step by step?  I went through those steps twice before I posted it and I know that procedure works.

Beyond that the only suggestion I can think of (if you're in the US) is for you to mail the oplink, revo, and the two antennas and their cables to me here in New Jersey.  I can use my revo and oplink to troubleshoot your pair.  It's an option anyway.  It hard for you to troubleshoot with only one of each item.
Title: Re: Revolution and OPlinkmini
Post by: jtrout19 on March 14, 2016, 04:30:44 am
Yes I did try that procedure like 5 times just to make sure I was doing it right. Then I changed RF modules out on both the REVO and the OPLINK and did it 5 more times. :). No dice. So I put old RF modules on. Times I wish I a spectrum analyzer