Giter Club home page Giter Club logo

Comments (32)

Cleric-K avatar Cleric-K commented on May 30, 2024

If the LED is blinking this means that there's no connection with the transmitter or it is not bound.

A8S does not send any data over the serial port if there's no active connection with the transmitter.

Make sure the rx is bound (LED should be glowing without blinking) and try again in vjsf.

from vjoyserialfeeder.

zus0 avatar zus0 commented on May 30, 2024

No, I just forgot to mention it. When I turn on my transmitter, LED starts to glow permanentry.

from vjoyserialfeeder.

zus0 avatar zus0 commented on May 30, 2024

Is it possible, that my receiver is broken?
P.S. When I connect receiver to arduino, TX light glows

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

Is it possible that your transmitter is configured for SBUS ?
What kind of transmitter are you using?

from vjoyserialfeeder.

zus0 avatar zus0 commented on May 30, 2024

I'm using FS-i6 (without X). As far as I know, it has only i-BUS.

from vjoyserialfeeder.

zus0 avatar zus0 commented on May 30, 2024

https://vimeo.com/343556588
I hope this might be useful

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

The settings in the tx are somewhere in the RX settings, where you can choose between PPM/PWM - the should be also ibus/sbus.

You can try dumping some data with:
https://hw-server.com/terminal-terminal-emulation-program-rs-232
in HEX format. Thus we may see if it is really sending valid IBUS frames.

image

If it really sends SBUS you can either switch to IBUS or you can try also with
https://github.com/Cleric-K/vJoySerialFeeder/blob/master/Docs/Sbus.md
you'll have to flash your arduino with the sketch there and connect as described.

from vjoyserialfeeder.

zus0 avatar zus0 commented on May 30, 2024

So, I managed to get this working. Somehow my receiver was really working in SBUS mode. I just held bind button on my receiver for 2 seconds, when transmitter is on and connected, and it switched back to IBUS mode. Sorry to bother you.

from vjoyserialfeeder.

SaltyPea avatar SaltyPea commented on May 30, 2024

I have the same problem, and not exactly sure where to tell if its IBUS or SBUS. Can someone help me out?

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

Have you tried holding the bind button switch between protocols?

from vjoyserialfeeder.

SaltyPea avatar SaltyPea commented on May 30, 2024

how would I do that?

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

See #24 (comment)

from vjoyserialfeeder.

NigelLowe avatar NigelLowe commented on May 30, 2024

Hi. I've also been having this issue but when I try to dump the protocol data nothing appears (log shows nothing between the dashed lines). Both the RX and TX LEDs are on and I've tried changing between IBUS and SBUS modes but still nothing. I've tried 2 different usb cables that work for hard drives on 2 different computers and am able to upload sketches. I'm using an Arduino nano and a Flysky FS-A8S receiver. Would anyone know why this is the case?

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

Are you using the Arduino just for UART convertor (for IBUS)? Or you are trying to use it with SBUS and the sbus invert sketch?

from vjoyserialfeeder.

NigelLowe avatar NigelLowe commented on May 30, 2024

I have tried both ways. But preference is for IBUS

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

Ok, to reiterate just to make sure we are not missing something:
For IBUS:

  1. Arduino should should be cleared - flash empty sketch.
  2. Received should be connected to the Arduino TX pin.
  3. Receiver should be in IBUS mode
  4. Test as in #24 (comment)

from vjoyserialfeeder.

NigelLowe avatar NigelLowe commented on May 30, 2024

Went through those steps again and still no output. I also get no output when connecting through Putty like in the vimeo link above your photo (sorry dont know how to link). Arduino is flashed with eeprom_clear, IBUS wire from reciever connected to TX pin and receiver is in IBUS mode.

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

Are you sure the receiver works ok? Have you tested with flight controller? Is your transmitter ON?

from vjoyserialfeeder.

NigelLowe avatar NigelLowe commented on May 30, 2024

Yes to all of those. Connected the receiver back to the flight controller earlier and it worked. Transmitter is on and both RX and TX LEDs are on

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

It is little strange that RX led is also ON. There should not be any activity there, IBUS is one way communication.

Can you try flashing from Arduino Examples/04.Communications/SerialEvent ?

Then open the Serial Monitor (Tools/Serial Monitor), make sure speed is 9600 and you have NewLine for line ending.
Here you should be able to write something to the input at the top end press Enter the board should echo back the same text.

from vjoyserialfeeder.

NigelLowe avatar NigelLowe commented on May 30, 2024

This works but still getting nothing from the terminal. I think I should also mention in the terminal, it says 'Connected' at the bottom but both Rx and Tx are 0. Nothing else at the bottom.

Could it be that there is something wrong with the Arduino or cable? I'm new to this so really have no idea

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

The Arduino sketch echoes back data once it receives NEWLINE character (also called LF - LineFeed). By default the terminal program does not implicitly send LF on Send. Do this:
image
Now echo should work.

When +CR checkbox is OFF (next to the Send button), when you enter some text to send and click Send you should see the TX counter going up. Also you should see on the Arduino ONLY the RX led flashing.
After you check +CR and Send again you should receive the echo back - RX count should increase and TX and RX leds should both flash (technically RX lights first and then Arduino sends echo and TX lights but it happens so fast that they both seem to flash at the same time)

Either way it seems everything is OK with the Arduino.
I'm not sure what could be the problem. Are you sure you have GND connected between the arduino and receiver?

from vjoyserialfeeder.

NigelLowe avatar NigelLowe commented on May 30, 2024

Everything's working now. Not sure why this works, but up until now I was powering on the Arduino and then after a few seconds connecting the receiver because one youtube video said there was a risk doing otherwise. When I power the Arduino with the receiver initially connected everything is as expected. Thank you so much for your time and debugging.

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

That's strange. There shouldn't be any difference. But anyway, I'm glad it's finally working!

from vjoyserialfeeder.

NigelLowe avatar NigelLowe commented on May 30, 2024

Yeah, I wouldn't think there would be a difference but I'm able to replicate getting no output when the receiver is not attached initially

from vjoyserialfeeder.

MikeJ16 avatar MikeJ16 commented on May 30, 2024

Hi, I'm also getting this error but I think it might be because I am using an old JR max 662 (35mhz), would it be able to work, if so how, and also what is the correct Protocol to use for this transmitter?

Any help would be greatly appreciated.

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

I have no idea what that is. Are you sure the receiver works with IBUS?

from vjoyserialfeeder.

MikeJ16 avatar MikeJ16 commented on May 30, 2024

Thanks for the reply,
The receiver does not have IBUS so I used the DSC port of the transmitter with 3.5 mm audio jack with some some wires at the end and plugged it straight into the Arduino.

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

But what Arduino sketch are you using? Do you convert the PPM signal in some way to IBUS?

from vjoyserialfeeder.

MikeJ16 avatar MikeJ16 commented on May 30, 2024

I am not using any Arduino sketch at the moment, is there a sketch that I need to upload?

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

Yes, check out @wdcossey
https://github.com/wdcossey/ppm-to-ibus-serial

from vjoyserialfeeder.

Cleric-K avatar Cleric-K commented on May 30, 2024

Be aware, though, that PPM adds in itself 8-10ms latency and this is definitely felt in simulators. Using digital receiver is the best option.

from vjoyserialfeeder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.