LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   COM port under Fedora 11 (https://www.linuxquestions.org/questions/linux-newbie-8/com-port-under-fedora-11-a-823212/)

linuxunix 07-31-2010 07:32 AM

COM port under Fedora 11
 
I am in verse to connect my Windows Mobile 6.1 to Fedora 11 Box. I have Dell Inspiron 1525 model on top of which I have fresh fedora Installed.I installed Wine and Activesync and it got installed successfully. Now when I am trying to connect it shows all the COM1/COM2/COM3/COM4 not available.While I run:

Code:

[root@localhost ~]# setserial -g /dev/ttyS[0-4]
/dev/ttyS0, UART: unknown, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
[root@localhost ~]# ^C
[root@localhost ~]#

Is this output related to COM ports (suggest me if I am going wrong)?
How can I check COM port status? How to enable it under my laptop?

THough I can see it under lsbusb:
Code:

[root@localhost ~]# lsusb
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 005: ID 0a5c:4503 Broadcom Corp.
Bus 007 Device 004: ID 0a5c:4502 Broadcom Corp.
Bus 007 Device 003: ID 413c:8126 Dell Computer Corp. Wireless 355 Bluetooth
Bus 007 Device 002: ID 0a5c:4500 Broadcom Corp.
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 006: ID 0bb4:0b0c High Tech Computer Corp. Elf / Touch / P3450 / T-Mobile MDA Touch / O2 Xda Nova / Dopod S1
Bus 006 Device 002: ID 13ee:0003 
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 0a5c:6300 Broadcom Corp. Pirelli Remote NDIS Device
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 05a9:2640 OmniVision Technologies, Inc. OV2640 Webcam
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@localhost ~]# ^C
[root@localhost ~]#

but how to use / access it?

jefro 07-31-2010 05:57 PM

Are you sure you really do have a comm port?

michaelk 07-31-2010 06:07 PM

If your mobile devices is recognized as a USB-serial port it's ID would be /dev/ttyUSB0.
You can look at the output of the dmesg command to see if it is recognized too when the device is plugged in.

John VV 07-31-2010 06:12 PM

you do know that fedora 11 is past it's END OF LIFE
it is no longer supported .
that means there will NEVER be any updates to it -- NO security fixes -- nothing. It it DEAD.

please install the current AND SUPPORTED version FIRST
fedora 13

then get back to us!!!

linuxunix 07-31-2010 11:51 PM

Jefro,

How can I know that there is COM port in my Laptop?
I am trying to connect my mobile through USB and could see it as a partition /dev/sdb1.

John VV 08-01-2010 03:19 AM

look at the output of
Code:

lsusb
after you install a supported version of fedora -- Fedora 13
then plugin the usb phone and fedora 13 should auto detect it and mount it

most likely fedora is seeing it as a usb thumb drive , like a ipod .

linuxunix 08-01-2010 08:34 AM

Does that mean Fedora 11 Doesnt support that?
I dont think thats true.

All I can see that whenever I select Disk Drive on my Mobile, it does show mounted under fdisk.
But how come COM port shows not Available.
weird !!!

theNbomr 08-01-2010 11:59 AM

If your host actually has a serial port, it should be visible in the boot messages:
Code:

dmesg | grep -i tty
console [tty0] enabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
00:0b: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A

If you are unable to use a serial port, it may have permissions restricted to root users.
Code:

ls -ls /dev/ttyS*
0 crw-rw----+ 1 root uucp 4, 64 2010-06-21 13:03 /dev/ttyS0
0 crw-rw----+ 1 root uucp 4, 65 2010-06-21 13:03 /dev/ttyS1
0 crw-rw----  1 root uucp 4, 66 2010-06-21 13:03 /dev/ttyS2
0 crw-rw----  1 root uucp 4, 67 2010-06-21 13:03 /dev/ttyS3

If so, you can add permissions (until reboot):
Code:

sudo chmod o+rw /dev/ttyS*
 ls -ls /dev/ttyS*
0 crw-rw-rw-+ 1 root uucp 4, 64 2010-06-21 13:03 /dev/ttyS0
0 crw-rw-rw-+ 1 root uucp 4, 65 2010-06-21 13:03 /dev/ttyS1
0 crw-rw-rw-  1 root uucp 4, 66 2010-06-21 13:03 /dev/ttyS2
0 crw-rw-rw-  1 root uucp 4, 67 2010-06-21 13:03 /dev/ttyS3

To make the changes persist across reboots, you can add udev rules to set the desired permissions. I think this configuration is highly distro-specific, and I am not well acquainted with the system, so I'll let others flesh that out of necessary. None of this stuff has changed for a long time, and upgrading an OS for a simple issue like this seems a bit extreme, to me.

--- rod.

John VV 08-01-2010 02:21 PM

Quote:

and upgrading an OS for a simple issue like this seems a bit extreme, to me.
NOT when it comes to Fedora
fedora is a FAST development and a R&D testing distro
a new version is released EVERY 6 MONTHS
and a version ONLY HAS 13 MONTHS of support
fedora 11 hit it's END OF LIFE last month

if you ARE going to use fedora THEN YOU MUST STAY CURRENT
that means doing a fresh install every 6 months when a new version is released
-- that is a lot of work --

do it or use a different distro!

theNbomr 08-01-2010 11:40 PM

Hmm. I've been using expired versions of Fedora for years. As I write this, I am using a Fedora 9 host. So far, the sky hasn't fallen. What horrendous state of affairs do you think I should be anticipating?
--- rod.

PS. You don't have to yell.

imagine_me2 08-02-2010 02:35 AM

for me its /dev/ttyACM0. Open your /dev/ folder and connect your phone in COM mode. Look out for any new files arriving, like i have a new "/dev/ttyACM0". Sure there are other more elegant ways to do it. Now if you are trying to connect to Internet do a "$ln /dev/ttyACM0 /dev/modem" , and use /dev/modem for connections.


All times are GMT -5. The time now is 08:32 PM.