English Amiga Board

English Amiga Board (http://eab.abime.net/index.php)
-   support.FS-UAE (http://eab.abime.net/forumdisplay.php?f=122)
-   -   Serial Port? (http://eab.abime.net/showthread.php?t=86112)

EugeneNine 22 February 2017 04:08

Serial Port?
 
I have a USB Serial port I use with my laptop.
Code:

[400122.167508] usb 3-2: new full-speed USB device number 5 using xhci_hcd
[400122.332306] usb 3-2: New USB device found, idVendor=067b, idProduct=2303
[400122.332326] usb 3-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[400122.332329] usb 3-2: Product: USB-Serial Controller D
[400122.332332] usb 3-2: Manufacturer: Prolific Technology Inc.
[400122.332696] pl2303 3-2:1.0: pl2303 converter detected
[400122.333282] usb 3-2: pl2303 converter now attached to ttyUSB0

I can connect a breakout box and run screen and hit keys and see the TxD light flash.

In my fs-uae config I added:

Code:

serial_port = /dev/ttyUSB0
But any term program I try in the Amiga I can't get any activity. Is there more steps I've missed?

twiggy 22 February 2017 15:48

Linux permissions to use the serial port? Maybe try running FS-UAE as root to test that.

alkis 22 February 2017 19:49

I'll show a case with /dev/ttyS0 , replace with your device

Code:

ls >/dev/ttyS0
ls: write error: Input/output error

ls -l /dev/ttyS0
crw-rw----+ 1 root dialout 4, 64 Feb 22 19:28 /dev/ttyS0

Ok, only root and whoever is in the group "dialout" can access the device.
My user is "alex" so...

Code:

sudo usermod -a -G dialout alex
now "alex" is in the "dialout" group. Logout and login and you should be ok.

EugeneNine 22 February 2017 21:49

I guess I should have listed that above I already checked permissions, here you can see:

Code:

sh-4.3$ ls > /dev/ttyUSB0
sh-4.3$ ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Feb 22 15:50 /dev/ttyUSB0
sh-4.3$ groups
Eugene disk lp mem wheel floppy dialout audio video cdrom games messagebus plugdev power netdev scanner vboxusers tor burning truecrypt aros
sh-4.3$

I run FS-UAE under my account.

alkis 22 February 2017 22:29

Whats connected on the other side? (Dunno what a breakbox is)
You run a terminal program on the other side? (screen?)

So ls >/dev/ttyUSB0 sends ls' output to the program on the other side?

If you boot fs-uae and you do in amiga shell: date >ser:
do you see anything on the other side?

EugeneNine 23 February 2017 01:09

The breakout box is an old troubleshooting tool. Its basically some LED's across all the lines. If you turn off hardware flow control (or jumper the flow control lines) you can then watch the LED's flash as you send out data.

I'm testing with my old HP48SX calculator. Installed C-kermit on Linux and can successfully send files to/from the calculator. I remembered back in 1992 when I first bought it I would have used my Amiga so I've been looking through the early fish disks and found a couple Kermit programs and a couple terminal programs to see if I can get it working again.

So no blinkin lights from date >ser:

I wonder if the serial prefs are not ignoring flow control, I'll try jumpering those and see


All times are GMT +2. The time now is 20:46.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.

Page generated in 0.04360 seconds with 11 queries