From owner-freebsd-stable@FreeBSD.ORG Sun Apr 28 17:55:21 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 54DE031F for ; Sun, 28 Apr 2013 17:55:21 +0000 (UTC) (envelope-from mozolevsky@gmail.com) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) by mx1.freebsd.org (Postfix) with ESMTP id 1ECE81F66 for ; Sun, 28 Apr 2013 17:55:21 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id dx4so761263qab.9 for ; Sun, 28 Apr 2013 10:55:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:sender:from:date:x-google-sender-auth :message-id:subject:to:content-type; bh=VjYMIaWQJT1mS0MZPEE131qy3EJSWDl1t+6M6WctnE0=; b=gDmJU1l3ssFuQtJbIte5sHXtwYBokAr0BHOEcFmTyLXNIidDn+lNe0j3dkmiiz9c1D uAi2cEX1MwAlgWd1kt02HzzwV2skcJT4Kb6uJUb6TOMnaWpEUSJOXWZC1cgr0jSxWKs/ n1em4DgsyrRsmYpIMNZC/VaEzfjqU3XvlbjIzV24gJMr4eAExheJrENDyy794PV8Hmsy 56NMZt5KIAHx8haHuOrAPezEZ/OvmY2rQNsnJrOPwITkF/Sr5wE/rTh3f6O+jLoJ/72m PHlrHUZ6wlPUut121HOyUOF7QTlgoFX+RCV79DTgVKPpLLpifeKZL4FQ9oRm3n5Uk/Lr Lu1g== X-Received: by 10.224.160.136 with SMTP id n8mr38545028qax.71.1367171720609; Sun, 28 Apr 2013 10:55:20 -0700 (PDT) MIME-Version: 1.0 Sender: mozolevsky@gmail.com Received: by 10.64.14.205 with HTTP; Sun, 28 Apr 2013 10:48:06 -0700 (PDT) From: Igor Mozolevsky Date: Sun, 28 Apr 2013 13:48:06 -0400 X-Google-Sender-Auth: p4jVoNdehiWK6gZ0KR8g6s4QNWY Message-ID: Subject: [UART] GPS 18-5Hz LVC and COM1 silence, OK on Linux though... To: freebsd-stable Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Apr 2013 17:55:21 -0000 Hi, I'm having issues connecting Garmin GPS 18 to COM1 on 9.1, I get nothing but silence. Identical setup works absolutely fine with Linux. I've got PPS wire connected to DCD, but that seems to make no difference on Linux, so I presume it shouldn't affect fbsd either. On Linux, I get: $ uname -a Linux ubuntu 3.8.0-19-generic #29-Ubuntu SMP Wed Apr 17 18:16:28 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux $ sudo stty -F /dev/ttyS0 raw 4800 $ sudo stty -F /dev/ttyS0 -a speed 4800 baud; rows 0; columns 0; line = 0; intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0; -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff -iuclc -ixany -imaxbel -iutf8 -opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0 -isig -icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke $ sudo cat /dev/ttyS0 $GPGLL,0000.00000,N,00000.00000,W,170638.0,V*3D $GPGLL,0000.00000,N,00000.00000,W,170638.0,V*3D $GPGLL,0000.00000,N,00000.00000,W,170638.0,V*3D $GPGLL,0000.00000,N,00000.00000,W,170639.0,V*3C $GPGLL,0000.00000,N,00000.00000,W,170639.0,V*3C $GPGLL,0000.00000,N,00000.00000,W,170639.0,V*3C $GPGLL,0000.00000,N,00000.00000,W,170639.0,V*3C $GPGLL,0000.00000,N,00000.00000,W,170639.0,V*3C $GPGLL,0000.00000,N,00000.00000,W,170640.0,V*32 With FreeBSD, the story is different: # uname -a FreeBSD fbsd 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 # stty -f /dev/cuau0.init raw 4800 # stty -f /dev/cuau0.init -a speed 4800 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 tab0 -onocr -onlret cflags: cread cs8 -parenb -parodd hupcl -clocal -cstopb -crtscts -dsrflow -dtrflow -mdmbuf cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = ; eol2 = ; erase = ^?; erase2 = ^H; intr = ^C; kill = ^U; lnext = ^V; min = 1; quit = ^\; reprint = ^R; start = ^Q; status = ^T; stop = ^S; susp = ^Z; time = 0; werase = ^W; # cu -l /dev/cuau0 -s 4800 Connected and after the 'Connected' there is just silence (should be getting $GPGLL every 200ms from the GPS unit)... Obviously I'm missing something, just can't figure out what it is... Cheers, -- Igor M.