s.bus instead of PPM in

Development & General Chat for the superb openxvario project.

Moderator: rainer

Post Reply
User avatar
Wene001
Posts: 47
Joined: Wed Feb 01, 2012 11:05 pm
Country: -

s.bus instead of PPM in

Post by Wene001 »

Hi

is it hard ( or does it need to much code) to implement s.bus in instead (as option) of ppm in on OXS 7.
The reason i ask,,,,
On my X8R are all 8 Servo Ports used. Peole using X6R running earlier in this problem
I think its overkill to use a s.bus Decoder for ppm in usage.
Eventually we could use more channel of s.bus e.g. for switching lights or so on...(just dreaming)

unfortunately i`m new to arduino and programming code, and have not the skills.
In the moment i`m on "blink-sketch" niveau.

Hope to get my hardware soon for testing
Werner

mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: s.bus instead of PPM in

Post by mstrens »

I am afraid it would not be possible (at least when GPS is used too).

Decoding SPORT already requires fast interrupt handling.
I think it is not possible to run a second serial software to decode SBUS without lossing some bits.

For GPS, oXS uses the hardware UART (and not a serial software) of Arduino promini to read the GPS data.
Unfortunately, Arduino pro mini has only 1 hardware UART.

An easier solution (for oXs) would be to let openTx send data over SPORT bus to the Rx.
I opened an issue in openTX forum asking in order to let openTX send data over SPORT but this is not (yet?) done.
User avatar
Wene001
Posts: 47
Joined: Wed Feb 01, 2012 11:05 pm
Country: -

Re: s.bus instead of PPM in

Post by Wene001 »

mstrens wrote..
An easier solution (for oXs) would be to let openTx send data over SPORT bus to the Rx.

do you mean ....send data over the RX to SPORT bus ?.

Otherwise i dont understand....
mstrens
Posts: 1435
Joined: Fri Dec 27, 2013 7:49 pm
Country: -

Re: s.bus instead of PPM in

Post by mstrens »

I mean that Sbus is bidirectional.
So the Tx could in principe sent data to the RX and the Rx would forward them to the SPORT. oXs reading the SPORT could decode them.
User avatar
Wene001
Posts: 47
Joined: Wed Feb 01, 2012 11:05 pm
Country: -

Re: s.bus instead of PPM in

Post by Wene001 »

That were a great feature for sure..
Dreaming again......an arduino only connected to sport. Giving various telemtry and control things like controlling openxsensor, trigger lights , a glow plug heater or other things with no need for a servo :-)

User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: s.bus instead of PPM in

Post by kalle123 »

SBUS is bidirectional.

See that adapter circuit here http://www.multiwii.com/forum/viewtopic.php?f=8&t=4507

for connecting flight controller to SBUS.
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: s.bus instead of PPM in

Post by Kilrah »

mstrens wrote:An easier solution (for oXs) would be to let openTx send data over SPORT bus to the Rx.
mstrens wrote:I mean that Sbus is bidirectional.
kalle123 wrote:SBUS is bidirectional.
Please avoid mixing things up. Smart port is bidirectional (but nothing takes advantage of the uplink feature as of now), SBUS is not.
User avatar
Wene001
Posts: 47
Joined: Wed Feb 01, 2012 11:05 pm
Country: -

Re: s.bus instead of PPM in

Post by Wene001 »

Hi Kilrah
Hats up for your work

i`m sure all of us do mean s.port aka Smart Port

Do you have in mind to support such an uplink feature in the future?
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: s.bus instead of PPM in

Post by kalle123 »

Wene001 wrote: i`m sure all of us do mean s.port aka Smart Port
Meaning and saying are two things different ...

Titel here says s.bus instead of PPM in

Trying to put things right (from http://manuals.hobbico.com/fut/r7008sb-manual.pdf)
screenshot_44.jpeg
User avatar
Wene001
Posts: 47
Joined: Wed Feb 01, 2012 11:05 pm
Country: -

Re: s.bus instead of PPM in

Post by Wene001 »

thats right...
i suggested to use s.bus instead of ppm.
Mstrens answered that s.bus as input on openxsensor is hard to implement and it would better to use bidirektional s.port...
so i think no mistakes on my side...
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: s.bus instead of PPM in

Post by Kilrah »

kalle123 wrote: Trying to put things right (from http://manuals.hobbico.com/fut/r7008sb-manual.pdf)
screenshot_44.jpeg
S-bus 2 does, but not the documented S-bus "1" that FrSky and most others have implemented.

Post Reply

Return to “OpenXVario - an open source vario supported by the open source firmwares!!”