Skip to contentSkip to conversation

problem serial/USB stick and Xaster

DISCUSSION Kristoff Bonne 2 participants 3 messages Aug 10, 2010 – Aug 18, 2010

lore
Share & tools
lore
#0 lore raw

Hi,

I do not know if this is the correct ML for this, so feel free to let me know if there is a better place for this.

For a ubuntu netbook (acer aspire one), I bought a cheap serial-to-USB stick (company = "digitus", lsusb says this: "Bus 003 Device 002: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC").

It shows itself as "/dev/ttyUSB0" on my box (ubuntu 10.06 netbook release).

However, I have a strange problem.
- When I use minicom to connect to my TNC2 using that USB device, all works OK "device = /dev/ttyUSB0, setting = 9600/7/E/1"

- However, when I try to use it with Xaster (APRS software) I get all kinds of rubbish on the input.

The packets input gives this:
1:TNC-> 5SxECH= ws OFF
1:TNC-> c5d:BA
1:TNC-> ON
1:TNC-> ZWx>PEVERYjLxc5d:? ad
1:TNC-> c5d:ONen\KY>APUI+rJmN

The setting is exactly the same as when using minicom (which does work OK).

I tried this with another PC (HP laptop) which does have a normal serial-port (something that is becoming a rare :-) ), with ubuntu 10.06, I have the same problem:

- minicom works OK (both with the normal serial port and with the USB-stick)
- Xastir with the USB-stick gives rubish
- Xastir with normal serial port works OK.

Is anybody familiar with a "known issue" with Xastir about this?

Cheerio! Kr. Bonne.

#1 lore raw
Quoted 1 line · Kristoff Bonne

I do not know if this is the correct ML for this, so feel free to let me know if there is a better place for this.

Try the Xastir mailing list at www.xastir.org

Quoted 1 line

It shows itself as "/dev/ttyUSB0" on my box (ubuntu 10.06 netbook release).

Have you verified that you're a member of the group for /dev/ttyUSB0? If you just added yourself to that group for testing, log out/log in again to gain those new permissions. Make sure that group permissions are rw also on that port.

Alternatively:

sudo chmod 4755 /usr/local/bin/xastir

Which will set the SUID bit on the Xastir executable, letting it assume root privileges when it needs to deal with the ports. It drops to normal user privileges when it's not doing the above. Note that this can be a security issue, setting the SUID bit on an executable, but if you're the only one using the machine you're relatively save with Xastir because we do drop privileges when we don't need them.

Quoted 6 lines

- minicom works OK (both with the normal serial port and with the USB-stick)
- Xastir with the USB-stick gives rubish
- Xastir with normal serial port works OK.

Is anybody familiar with a "known issue" with Xastir about this?

Nope.

Signature · 5 lines
Curt, WE7U.                         <http://www.eskimo.com/~archer>
   APRS:  Where it's at!                    <http://www.xastir.org>
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!"
#2 lore raw

Hi Curt (and all others that have replied offline).

First of all.
I'm sorry for the late reply. I just got back from a week abroad.

Quoted 3 lines
Quoted 1 line

I do not know if this is the correct ML for this, so feel free to let me know if there is a better place for this.

Try the Xastir mailing list at www.xastir.org

I've just reasked the question overthere.

But I was actually more thinking in a line of problems of (say) differences in the "ioctl" commands when using the xastir and minicom; so perhaps something more system-level and not related to one particular program.

Quoted 10 lines
Quoted 1 line

It shows itself as "/dev/ttyUSB0" on my box (ubuntu 10.06 netbook release).

Have you verified that you're a member of the group for /dev/ttyUSB0? If you just added yourself to that group for testing, log out/log in again to gain those new permissions. Make sure that group permissions are rw also on that port.

Alternatively:

sudo chmod 4755 /usr/local/bin/xastir

Well, I also have the same problem as root (with sudo) so I do not think it's a problem of rights.
That would probably have resulted in Xastir not receiving anything at all. Here I do receive something but it's 'kind of" mixed up. (not completely, some words do are OK, like a "OFF" and "ON" or some digits)

Quoted 7 lines
Quoted 5 lines

- minicom works OK (both with the normal serial port and with the USB-stick)
- Xastir with the USB-stick gives rubish
- Xastir with normal serial port works OK.
Is anybody familiar with a "known issue" with Xastir about this?

Nope.

Oh. Something else I forgot to mention.

Sending does work. When I start up Xastir or issue a "Transmit now!" (in the "interfaces" menu) the tranceiver does send, so I guess we van conclude from that the USB-port does send valid commands to the TNC. (the messages I received at startup seams to indicate the same thing).

Cheerio! Kr. Bonne. ON5ARF (ex. ON1ARF)