problem with serial port BSD


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers problem with serial port BSD
# 1  
Old 09-28-2008
problem with serial port BSD

Hello all ,
i have change my system debian linux to freebsd( pcBSD)
all working as well , but the serial does not work correctly.
Under linux the problem does not appears.
my problem is than my serial port does work .

the first step than i have make is look with dmesg if my serial are detected .
the result of the commande
dmesg | grep -E sio*

Code:
<16550A-compatible COM port> port 0x2f8-0x2ff irq 3 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]

if i have correctly read the handbook of freeBSD that's means than the serial are compiled and detect.

after i have check the option of my serial port with command

stty -a -f < /dev/ttyd0

Code:
speed 9600 baud; 0 rows; 0 columns;
lflags: -icanon -isig -iexten -echo -echoe -echok -echoke -echonl
        -echoctl -echoprt -altwerase -noflsh -tostop -flusho -pendin
        -nokerninfo -extproc
iflags: -istrip -icrnl -inlcr -igncr -ixon -ixoff ixany imaxbel -ignbrk
        -brkint -inpck -ignpar -parmrk
oflags: -opost onlcr -ocrnl -oxtabs -onocr -onlret
cflags: cread cs8 parenb -parodd hupcl clocal cstopb -crtscts -dsrflow
        -dtrflow -mdmbuf
cchars: discard = ^O; dsusp = <undef>; eof = ^D; eol = <undef>;
        eol2 = <undef>; erase = ^?; erase2 = <undef>; intr = ^C;
        kill = ^U; lnext = ^V; min = 0; quit = ^\; reprint = ^R;
        start = ^Q; status = <undef>; stop = ^S; susp = ^Z; time = 1;
        werase = ^W;

and for give more detail of my /dev/list

ls -l /dev

Code:
crw-r--r--  1 root  wheel       0,  32 26 sep 00:23 acpi
crw-rw-rw-  1 root  operator    0,  77 26 sep 00:23 ad0
crw-rw-rw-  1 root  operator    0,  78 26 sep 00:23 ad0s1
crw-rw-rw-  1 root  operator    0,  81 26 sep 00:23 ad0s1a
crw-rw-rw-  1 root  operator    0,  82 26 sep 00:23 ad0s1b
crw-rw-rw-  1 root  operator    0,  83 26 sep 00:23 ad0s1c
crw-rw-rw-  1 root  operator    0,  79 26 sep 00:23 ad1
crw-rw-rw-  1 root  operator    0,  84 26 sep 00:23 ad1s1
crw-rw-rw-  1 root  operator    0,  86 26 sep 00:23 ad1s1a
crw-rw-rw-  1 root  operator    0,  87 26 sep 00:23 ad1s1b
crw-rw-rw-  1 root  operator    0,  88 26 sep 00:23 ad1s1c
crw-rw-r--  1 root  operator    0,  98 26 sep 00:23 apm0
crw-r-----  1 root  operator    0,  80 26 sep 00:23 ar0
crw-r-----  1 root  operator    0,  85 26 sep 00:23 ar0s1
crw-r-----  1 root  operator    0,  89 26 sep 02:23 ar0s1a
crw-r-----  1 root  operator    0,  90 26 sep 02:23 ar0s1b
crw-r-----  1 root  operator    0,  91 26 sep 00:23 ar0s1c
crw-------  1 root  operator    0,  31 26 sep 00:23 ata
crw-------  1 root  wheel       0,  47 26 sep 00:23 atkbd0
crw-------  1 root  kmem        0,  15 26 sep 00:23 audit
crw-------  1 root  wheel       0,  95 26 sep 00:23 bpf0
crw-------  1 root  wheel       0,  10 26 sep 00:29 console
crw-------  1 root  wheel       0,  65 26 sep 00:23 consolectl
crw-rw-rw-  1 root  wheel       0,  11 26 sep 00:23 ctty
crw-rw----  1 uucp  dialer      0,  44 26 sep 00:23 cuad0
crw-rw----  1 uucp  dialer      0,  45 26 sep 00:23 cuad0.init
crw-rw----  1 uucp  dialer      0,  46 26 sep 00:23 cuad0.lock
crw-------  1 root  wheel       0,  27 26 sep 00:23 dcons
crw-------  1 root  wheel       0,   4 26 sep 00:23 devctl
cr--------  1 root  wheel       0,  75 26 sep 00:23 devstat
crw-------  1 root  wheel       0,  28 26 sep 00:23 dgdb
lrwxr-xr-x  1 root  wheel           11 26 sep 02:23 dumpdev -> /dev/ar0s1b
drw-rw-rw-  2 root  operator       512 26 sep 00:23 fd
crw-------  1 root  wheel       0,  13 26 sep 00:23 fido
crw-r-----  1 root  operator    0,   5 26 sep 00:23 geom.ctl
crw-------  1 root  wheel       0,  24 26 sep 00:23 io
lrwxr-xr-x  1 root  wheel            6 26 sep 00:23 kbd0 -> atkbd0
lrwxr-xr-x  1 root  wheel            7 26 sep 00:23 kbd1 -> kbdmux0
crw-------  1 root  wheel       0,  16 26 sep 00:23 kbdmux0
crw-------  1 root  wheel       0,   6 26 sep 00:23 klog
crw-r-----  1 root  kmem        0,  26 26 sep 00:23 kmem
lrwxr-xr-x  1 root  wheel           12 26 sep 00:23 log -> /var/run/log
crw-r-----  1 root  operator    0,  96 26 sep 00:23 md0
crw-------  1 root  wheel       0,  74 26 sep 00:23 mdctl
crw-r-----  1 root  kmem        0,  25 26 sep 00:23 mem
dr-xr-xr-x  2 root  wheel          512 26 sep 00:23 net
lrwxr-xr-x  1 root  wheel            7 26 sep 00:23 net1 -> net/vr0
lrwxr-xr-x  1 root  wheel           10 26 sep 00:23 net2 -> net/pflog0
lrwxr-xr-x  1 root  wheel            7 26 sep 00:23 net3 -> net/lo0
lrwxr-xr-x  1 root  wheel           11 26 sep 00:23 net4 -> net/pfsync0
crw-------  1 root  wheel       0,   3 26 sep 00:23 network
crw-------  1 root  wheel       0,  66 26 sep 00:23 nfs4
crw-------  1 root  kmem        0,  14 26 sep 00:23 nfslock
crw-rw-rw-  1 root  wheel       0,  29 27 sep 15:55 null
crw-r--r--  1 root  wheel       0,   7 26 sep 00:23 pci
crw-------  1 root  wheel       0,  67 26 sep 00:23 pf
crw-rw-rw-  1 root  wheel       0,  99 27 sep 15:57 ptyp0
crw-rw-rw-  1 root  wheel       0,   8 26 sep 02:23 random
lrwxr-xr-x  1 root  wheel            4 26 sep 00:23 stderr -> fd/2
lrwxr-xr-x  1 root  wheel            4 26 sep 00:23 stdin -> fd/0
lrwxr-xr-x  1 root  wheel            4 26 sep 00:23 stdout -> fd/1
crw-------  1 root  wheel       0,  12 26 sep 00:23 sysmouse
crw-------  1 root  wheel       0,  41 26 sep 00:23 ttyd0
crw-------  1 root  wheel       0,  42 26 sep 00:23 ttyd0.init
crw-------  1 root  wheel       0,  43 26 sep 00:23 ttyd0.lock
crw--w----  1 root  tty         0, 100 27 sep 15:57 ttyp0
crw-------  1 root  tty         0,  49 26 sep 00:35 ttyv0
crw-------  1 root  wheel       0,  50 26 sep 00:23 ttyv1
crw-------  1 root  wheel       0,  51 26 sep 00:23 ttyv2
crw-------  1 root  wheel       0,  52 26 sep 00:23 ttyv3
crw-------  1 root  wheel       0,  53 26 sep 00:23 ttyv4
crw-------  1 root  wheel       0,  54 26 sep 00:23 ttyv5
crw-------  1 root  wheel       0,  55 26 sep 00:23 ttyv6
crw-------  1 root  wheel       0,  56 26 sep 00:23 ttyv7
crw-------  1 root  wheel       0,  57 26 sep 00:23 ttyv8
crw-------  1 root  wheel       0,  58 26 sep 00:23 ttyv9
crw-------  1 root  wheel       0,  59 26 sep 00:23 ttyva
crw-------  1 root  wheel       0,  60 26 sep 00:23 ttyvb
crw-------  1 root  wheel       0,  61 26 sep 00:23 ttyvc
crw-------  1 root  wheel       0,  62 26 sep 00:23 ttyvd
crw-------  1 root  wheel       0,  63 26 sep 00:23 ttyve
crw-------  1 root  wheel       0,  64 26 sep 00:23 ttyvf
lrwxr-xr-x  1 root  wheel            6 26 sep 00:23 urandom -> random
crw-rw-rw-  1 root  operator    0,  34 26 sep 00:23 usb
crw-rw-rw-  1 root  operator    0,  33 26 sep 00:23 usb0
crw-rw-rw-  1 root  operator    0,  35 26 sep 00:23 usb1
crw-rw-rw-  1 root  operator    0,  36 26 sep 00:23 usb2
crw-rw-rw-  1 root  operator    0,  37 26 sep 00:23 usb3
crw-rw-rw-  1 root  operator    0,  38 26 sep 00:23 usb4
crw-rw-rw-  1 root  operator    0,  76 26 sep 00:23 xpt0
crw-rw-rw-  1 root  wheel       0,  30 26 sep 00:23 zero

and for give information on the type of file

file /dev/ttyd0

Code:
ttyd0: character special (0/41)

file /dev/cuad0
Code:
cuad0: character special (0/44)

When i read a lot of message on the web
normaly the serial port have mknod with c 4 64 type but here is 0 44
maybe the probleme come from there
freebsd use devfs for install device file .
mknod report error with no such file or directory
and MAKEDEV are not present on directory.

all help are welcom to try to solve t his problem .
thx in advance
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

Hello, I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build. The first part is what confuses me -the cabling. I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies

2. SCO

Problem finding what is using a serial port

How can I determine what process is currently using a serial port? A good bit of google searching hasn't turned up anything useful, but it seems like there has to be a way to do this without too much difficulty. When I first started looking into this problem, I assumed that when a port was in... (2 Replies)
Discussion started by: jdsnatl
2 Replies

3. Solaris

How to enable Serial port on ILOM, when Network Port is enabled in parallel

Hi Everyone, In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies

4. Shell Programming and Scripting

Need help with serial port

Hi, I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Discussion started by: charlie.arya
0 Replies

5. Programming

problem in coding for GSM interfacing using serial port

i am having some coding problem in c for interfacing the GSM module through serial port. i want to send/receive sms. i have done all the setting for the port and know the AT command to use in this but i am actually having problem in reading and writing from serial port how to handle the signal when... (1 Reply)
Discussion started by: harsh_it
1 Replies

6. Solaris

Serial port problem

I am working with solaris 9 sparc and I want to connect physical device in serial port but when I am connecting it,It is showing the error window saying-- So can any1 tell me the reason or is there any package I have to add to work with serial port??? (2 Replies)
Discussion started by: smartgupta
2 Replies

7. Linux

Urgent - serial port

Hi All, I am a begineer in Linux, I have 4 ports and 3 are operational port 1,port 2 and port 4 (when I plug in serial device I can see it working) but port 3 seems it is not working. I am sure the hardware is fine. when I give command dmesg | grep tty I get, serial 8250:ttyS0 at... (0 Replies)
Discussion started by: vr_82
0 Replies

8. Programming

problem while having a communication with serial port?????

hello, I am gettin problem while sending and recieving data through seial port... when I am sending Data then the reciever end is not able to recieve that data ..... Reciever end is running in infinite loop just polling after some time to check that there is data on the port and then again... (9 Replies)
Discussion started by: arunchaudhary19
9 Replies

9. Programming

Problem regarding serial port and multithreading

hello, I am creating a application in which I first open the serial port and then create the thread..for reading the data comming through that serial port. from that same thread I create another thread that is write thread means for writing on the serial port... I am continously polling again... (3 Replies)
Discussion started by: arunchaudhary19
3 Replies

10. Programming

[Problem]Reuse port in BSD socket

I write a chat server using BSD socket, which is listen to an specific port, say 1212. After the chat server is shutdown, I want to execute the program again. But kernel will say that the port 1212 is now unavailable. I have to wait for a while to reuse the port 1212. I am sure there's no... (1 Reply)
Discussion started by: Namely
1 Replies
Login or Register to Ask a Question