Page 1 of 1
Help needed fot Flyer2
Posted: Tue May 25, 2010 4:25 pm
by ulisse
hi Alan,
I've just bought an old Digifly Flyer2 vario, and as I'm running linux i think your application could be very useful to me.
Sadly, the vario came without the cable, so I managed to build a serial one like this in the diagram:
I think I can connect to the device in some way (I tried with cutecom and if I send something on the port, the device replies with "?"), but changing /dev/USB to /dev/ttyS0 in the program startup script doesn't work.
I am on Ubuntu 10.04 i686, do you have any hint for me?
I think that maybe if I know what to say to the device, I could dump the logbook also with cutecom, just to see if it works, but I have no idea of what the command could look like
Thanks in advance,
Ulisse
Re: Help needed fot Flyer2
Posted: Wed May 26, 2010 8:39 am
by alanbirtles
if you send "V" the vario should respond with an id string. You should be connecting at 38400, 8 bit, 1 stop bit and no parity.
Re: Help needed fot Flyer2
Posted: Wed May 26, 2010 4:18 pm
by ulisse
Today I tried the same cable on a windows machine, with the 2009 version of VLtools, and it connects and downloads the logbook, so I can assume the cable is OK.
In Linux, with the same settings you wrote, sending "V" with cutecom results again in a "?" from the device
I've noticed the firmware version looks very old, 29.2 if I am not wrong... maybe tomorrow I'll try (on the windows machine) to upgrade to the latest version and check again.
Re: Help needed fot Flyer2
Posted: Wed May 26, 2010 9:31 pm
by ulisse
update!
I removed the LF line end from cutecom settings and now V is returning a string:
DIGIFLY FLYER_2 02.9 15450 Ulisse
I tried all other letters in alphabet, but all I get is "?" or "!" or at least "2" if I type "v"...
Re: Help needed fot Flyer2
Posted: Thu May 27, 2010 11:53 am
by alanbirtles
in that case everything is working you just need to make sure the device name is correct for the serial port
Re: Help needed fot Flyer2
Posted: Thu May 27, 2010 4:26 pm
by ulisse
Upgraded to the latest firmware, still not working with your app.
This is my edited launch script:
Code: Select all
#!/bin/bash
CDIR=`pwd`
java -Dgnu.io.drivers.Serial="$CDIR"/lib/drivers/Linux/i686-unknown-linux-gnu/librxtxSerial.so -Duk.org.birtles.digifly.serialPrefix=/dev/ttyS0 -cp lib/javacsv.jar:DigiflyUtil.jar uk.org.birtles.digifly.DigiflyFlyerUtility
and this is the output in terminal (sorry for the length):
Code: Select all
ulisse@Aang:~/Desktop/Digifly$ ./DigiflyDownloaderLinux_i686.sh
Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
uk.org.birtles.digifly.DigiflyException: gnu.io.NoSuchPortException
at uk.org.birtles.digifly.DigiflyDownloader.<init>(DigiflyDownloader.java:83)
at uk.org.birtles.digifly.DigiflyFlyerUtilityFrame.connect(DigiflyFlyerUtilityFrame.java:337)
at uk.org.birtles.digifly.DigiflyFlyerUtilityFrame.connectToggle(DigiflyFlyerUtilityFrame.java:289)
at uk.org.birtles.digifly.DigiflyFlyerUtilityFrame$8.actionPerformed(DigiflyFlyerUtilityFrame.java:266)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
at java.awt.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: gnu.io.NoSuchPortException
at gnu.io.CommPortIdentifier.getPortIdentifier(CommPortIdentifier.java:220)
at uk.org.birtles.digifly.DigiflyDownloader.getPort(DigiflyDownloader.java:307)
at uk.org.birtles.digifly.DigiflyDownloader.<init>(DigiflyDownloader.java:45)
... 28 more
I'm totally ignorant in java, I'm sorry for not being much helpful...
Re: Help needed fot Flyer2
Posted: Fri May 28, 2010 9:12 am
by alanbirtles
what is the name of the serial device you are connecting to?
Re: Help needed fot Flyer2
Posted: Fri May 28, 2010 5:00 pm
by ulisse
I don't understand exacly what you mean with "name of the serial device", so I'll post here some random names
The phisical device itself is a Digifly flyer2 vario, here the output of the command V in cutecom:
The serial port it is connected to is mapped as /dev/ttyS0, this is the output of setserial on that port:
Code: Select all
/dev/ttyS0, UART: 16550, Port: 0x03f8, IRQ: 4
here is the output of lspci:
Code: Select all
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 12)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1a.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.4 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 5 (rev 06)
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.1 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.2 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB Universal Host Controller (rev 06)
00:1d.7 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA IDE Controller (rev 06)
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
00:1f.5 IDE interface: Intel Corporation 5 Series/3400 Series Chipset 2 port SATA IDE Controller (rev 06)
01:00.0 VGA compatible controller: ATI Technologies Inc Device 68d9
01:00.1 Audio device: ATI Technologies Inc Redwood HDMI Audio [Radeon HD 5600 Series]
03:00.0 SATA controller: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
03:00.1 IDE interface: JMicron Technology Corp. JMB362/JMB363 Serial ATA Controller (rev 02)
04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
05:03.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
And finally at
this pastebin link I posted the output of lshw on my system.
I hope you can get some useful info from all that stuff...
Re: Help needed fot Flyer2
Posted: Fri May 28, 2010 6:41 pm
by alanbirtles
you should set the prefix to "/dev/ttyS" and then select port 0 in the program (/dev/ttyS + 0 = /dev/ttyS0). If you set the prefix to /dev/ttyS0 then the program would try to open /dev/ttyS00 which is why it wasnt working
Re: Help needed fot Flyer2
Posted: Sat May 29, 2010 8:13 am
by ulisse
Yay!
It works now, and looking at the instructions on the download page I see it is somehow said, but it isn't totally clear... maybe you should put in an example for not-so-techy people, something like:
1. Edit DigiflyDownloaderLinux.sh, find "-Duk.org.birtles.digifly.serialPrefix=/dev/ttyUSB" and replace "/dev/ttyUSB" with the prefix used by your serial device (like "/dev/ttyS" for serial ports)
Thanks a lot, and happy flights
Re: Help needed fot Flyer2
Posted: Sat May 29, 2010 11:00 pm
by ulisse
To thank you for your help and patience, I'm contributing back an italian translation