LibrePilot Forum

General Category => General Discussion => Topic started by: Jhinta on May 05, 2017, 07:05:59 pm

Title: oplink not working?
Post by: Jhinta on May 05, 2017, 07:05:59 pm
what happend to oplink , its connected but cant change anything

gcs (git master)
gcsas cordinator
drone as slave witch has id of master

Title: Re: oplink not working?
Post by: TheOtherCliff on May 05, 2017, 07:32:54 pm
If it is an OpLInk, you probably just need to flash matching firmware on the OpLink.

Also, you must change OpLink settings with that OpLink connected with USB.  You can't change Revo OpLink or other remote OpLink with RF.  That causes a problem.  You can't save and restore settings properly across OpLink.  You always get the ground OpLink in the settings and not the air OpLink.  I don't know if that has been reported as a bug yet.
Title: Re: oplink not working?
Post by: Brian on May 05, 2017, 07:42:27 pm
That's not a bug.  The OPLink explicitly removes the OPLinkSettings UAVO from the UAVTalk stream coming from the connected device.

It could be debated how that should work, but IMO it would be confusing and somewhat error prone to support re-configuring the radio link over the radio link.

In any case, the OPs problem is likely mismatched firmware.
Title: Re: oplink not working?
Post by: TheOtherCliff on May 05, 2017, 07:49:04 pm
It used to be that you could save settings over the RF and you would get the air oplink settings, now you get the ground oplink settings.  That's a bug if you ask me.

Take settings you saved over RF and restore them over USB and your oplink is messed up.

I haven't tried to find out what happens the other way around (settings from USB restored over RF).  Does it mess up the ground oplink or just not write the settings at all?
Title: Re: oplink not working?
Post by: Brian on May 05, 2017, 09:07:40 pm
I don't know when it would have showed the remote settings.  I'm pretty sure that was not the way it worked when I originally wrote it, and I haven't modified that recently, so it would have to have flip-flopped at some point.

I don't generally save and restore settings, so I didn't know about that aspect.  That does sound like a bug.

The functionality could probably be changed by removing a couple of lines in the oplink firmware.

Edit:  Looking at the code reminded me of some of the issues involved.  One of the problems is with saving OPLinkSettings.  The modem doesn't know if an FC is connected or not, so how does it decide if a OPLinkSetting save command should be passed on or executed locally?

In any case, this discussion has derailed this topic.  We can discuss it in a but report if you want.  It sounds like there is at least one bug in the way things work now that should be addressed at some point.

Title: Re: oplink not working?
Post by: Jhinta on May 05, 2017, 10:44:19 pm
compiled mater and flashed oplink and revo ,

what i used to get doesnt work anymore, cant change anything i just get some data stats & shows log replay  :o
i'm not talking about setting of the oplink , setting of the quad !

i can change with usb , drone side setting
i can change oplink side usb connectted -> setting
CANT ! do anything when oplink is active as virtual usb
Title: Re: oplink not working?
Post by: f5soh on May 05, 2017, 10:56:40 pm
Set the "Air Data Rate" in both sides to 100000 or more

Sorry... are you using master or next ?
Title: Re: oplink not working?
Post by: Jhinta on May 05, 2017, 11:00:21 pm
see
Title: Re: oplink not working?
Post by: Jhinta on May 05, 2017, 11:01:05 pm
Set the "Air Data Rate" in both sides to 100000 or more

Sorry... are you using master or next ?

sorry correct answer , next
Title: Re: oplink not working?
Post by: f5soh on May 05, 2017, 11:07:45 pm
Its working here. Air Data Rate to 57600 do not work.

You need 100000 at least while using next (that's equal to old 57600)
Title: Re: oplink not working?
Post by: Jhinta on May 05, 2017, 11:09:18 pm
Its working here. Air Data Rate to 57600 do not work.

You need 100000 at least
Air Data Rate = bit ratespeed ?
why the change as it was working with lower speeds even.
Title: Re: oplink not working?
Post by: f5soh on May 05, 2017, 11:12:35 pm
Simply set 100000 using Next is the same as 57600 using 16.09

You quoted the same post 3 times... maybe not needed ?
Title: Re: oplink not working?
Post by: TheOtherCliff on May 05, 2017, 11:14:17 pm
assuming you want the oplink to do just data
now that you have revo, oplink, and gcs on the same version

power Revo and Oplink off
plug oplink into usb and configure it (protocol=OpLinkCoordinator, LinkType=Data, MaxPower, and ComSpeed) copy "Device ID" number onto paper
save
unplug
plug Revo into usb and configure it (protocol=OpLinkReceiver, LinkType=Data, CoordinatorId=WhatYouCopiedFromOplink MaxPower, and ComSpeed same as oplink)
save
unplug
Title: Re: oplink not working?
Post by: Jhinta on May 05, 2017, 11:15:44 pm
have it working on 128  tnx
retested 100 also working (maby i was to fast) somtimes it works
Title: Re: oplink not working?
Post by: f5soh on May 05, 2017, 11:17:11 pm
assuming you want the oplink to do just data

Cliff, no need to redo config for something already connected.
Just a too slow baudrate.
Title: Re: oplink not working?
Post by: Brian on May 05, 2017, 11:42:09 pm
Its working here. Air Data Rate to 57600 do not work.

You need 100000 at least
Air Data Rate = bit ratespeed ?
why the change as it was working with lower speeds even.
There is an update in the configuration of the OPLink in next that splits out the configuration of the UART speeds from the air datarate.  It used to be that the air datarate was automatically set to ~2X the UART speed.  Now it's an independent setting.