The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    CF-30 Stock GPSr using Linux

    Discussion in 'Panasonic' started by UNCNDL1, Dec 4, 2013.

  1. UNCNDL1

    UNCNDL1 Notebook Deity

    Reputations:
    225
    Messages:
    795
    Likes Received:
    183
    Trophy Points:
    56
    Decided to start a new thread...
    Sadlmkr and I have been PM'ing back and forth and it got a little confusing...
    As you know, I acquired a fairly stock MK2 CF-30 for the TBT server: ~Toughbook Talk~ Toughbook Discussion • View topic - Equipment Upgrade Needed. Details plus auction inside
    The stock Panasonic GPSr (?sony) works great in Windows 7, we've been struggling a little in Linux MInt.
    I downloaded this :hi2:navigation program: Download OpenCPN | Official OpenCPN Homepage
    and ran it in Linux Mint 13 lts MATE on the MK2 CF-30. I used these settings:
    Type: Serial Data Port: /dev/TTYS3 4800 (yes, the capital S is very important)
    and voila...it found my location here: 40. 48.426 N, 074 37.531 W
    Locking in 7 Sats...
    Please chime in here for all to read. FWIW, the stock gpsr works great in Windows on COM3, Baud rate 4800
    ...however, using Wine HQ, it is (on my Mint Box at COM 4, Baud Rate 4800)
    Interesting stuff as Linux starts counting at "0", so COM 3 is at S3 (I think)...Jeff, please add to this...
    Best regards...please respond and add to this all you GPSr gurus...
    Best Regards,
     
  2. Shawn

    Shawn Crackpot Search Ninja and Options Whore

    Reputations:
    1,541
    Messages:
    8,306
    Likes Received:
    2,050
    Trophy Points:
    331
    ........................
     
  3. Gear6

    Gear6 Notebook Evangelist

    Reputations:
    156
    Messages:
    321
    Likes Received:
    27
    Trophy Points:
    41
    windows COM1, COM2, ...
    *nix ttyS0, ttyS1, ...
    so COM3 corresponds to ttyS2 in Linux.
     
  4. UNCNDL1

    UNCNDL1 Notebook Deity

    Reputations:
    225
    Messages:
    795
    Likes Received:
    183
    Trophy Points:
    56
    Well, yes it does when in Bios you have GPS enabled...however I just went in to BIOS at Jeff's request, and set it to "Auto". I also for this test disabled "blue tooth", disabled "serial port A", disabled "serial port B", and disabled "parallel port". I re-booted the ToughBook and loaded U-blox program via Wine...Results show that now Satellites lock in only on the COM1 setting with Baud Rate 4800. Interesting stuff. Seems Linux must look for what's available and assign what has been either set to enable or auto. More to follow...
     
  5. SHEEPMAN!

    SHEEPMAN! Freelance

    Reputations:
    879
    Messages:
    2,666
    Likes Received:
    517
    Trophy Points:
    131
    Cleve,
    In your case I think their is a "conflict" caused by the USB Serial Driver seen in your
    Code:
    dmesg | grep USB and $ ls /dev/ttyUSB* #Not really a conflict....just Linux doing it's job.
    
    Code:
    $ dmesg | grep ttyUSB*
    [    5.750267] usb 1-2: Qualcomm USB modem converter now attached to ttyUSB0 <<MINE
    Can you run this and paste the output please.
    Code:
    ls ~/.wine/dosdevices/
    ls /dev/ttyS*# I think we did this. Do it again. :)
    
    You are correctamundo in that Linux checks devices, and writes a new kernel for each session. :hi2:

    Mini-tute for everyone: The # sign is used to separate code from notes. Unit ignores anything after and including the #.
    As you said up there somewhere /\ Capitalization is critical. Like ttyS3...cap S.
    Spaces are important also at times. If you get "bash" check spelling, need for sudo and spacing.
    ls means list.
    dmesg prints the kernel that has been written for this session.
    For fun, run dmesg, plug in a device...like USB stick and then run dmesg | tail #this prints the last ten lines of dmesg.
    | is a shifted backspace. :thumbsup:
     
  6. UNCNDL1

    UNCNDL1 Notebook Deity

    Reputations:
    225
    Messages:
    795
    Likes Received:
    183
    Trophy Points:
    56
  7. UNCNDL1

    UNCNDL1 Notebook Deity

    Reputations:
    225
    Messages:
    795
    Likes Received:
    183
    Trophy Points:
    56
    Great Jeff, will try your additions. I typed this in Terminal after disabling everything in Bios except for GPS, which I chose "auto"
    touchbook@touchbook-CF-30FCS80AM ~ $ dmesg | grep tty
    [ 0.000000] console [tty0] enabled
    [ 0.831016] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [ 1.245026] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
    [ 4.695140] usb 6-1: Sierra USB modem converter now attached to ttyUSB0
    [ 4.695749] usb 6-1: Sierra USB modem converter now attached to ttyUSB1
    [ 4.695922] usb 6-1: Sierra USB modem converter now attached to ttyUSB2
    [ 4.928497] ttyS1: LSR safety check engaged!
    It looks like with the above settings, Linux has assigned the stock Panasonic CF-30 MK2 GPSr to ttyS0, which I believe is COM port 1
    go figure?
    keep on searching!
    Cleve
     
  8. UNCNDL1

    UNCNDL1 Notebook Deity

    Reputations:
    225
    Messages:
    795
    Likes Received:
    183
    Trophy Points:
    56
    okay Jeff, per your request for Terminal:
    touchbook@touchbook-CF-30FCS80AM ~ $ $ dmesg | grep ttyS3^C
    touchbook@touchbook-CF-30FCS80AM ~ $
    touchbook@touchbook-CF-30FCS80AM ~ $ ls ~/.wine/dosdevices/
    c: d:: e:: z:
    touchbook@touchbook-CF-30FCS80AM ~ $
     
  9. UNCNDL1

    UNCNDL1 Notebook Deity

    Reputations:
    225
    Messages:
    795
    Likes Received:
    183
    Trophy Points:
    56
    Okay, and the following request yielded this
    touchbook@touchbook-CF-30FCS80AM ~ $ ls /dev/ttyS*
    /dev/ttyS0 /dev/ttyS14 /dev/ttyS2 /dev/ttyS25 /dev/ttyS30 /dev/ttyS8
    /dev/ttyS1 /dev/ttyS15 /dev/ttyS20 /dev/ttyS26 /dev/ttyS31 /dev/ttyS9
    /dev/ttyS10 /dev/ttyS16 /dev/ttyS21 /dev/ttyS27 /dev/ttyS4
    /dev/ttyS11 /dev/ttyS17 /dev/ttyS22 /dev/ttyS28 /dev/ttyS5
    /dev/ttyS12 /dev/ttyS18 /dev/ttyS23 /dev/ttyS29 /dev/ttyS6
    /dev/ttyS13 /dev/ttyS19 /dev/ttyS24 /dev/ttyS3 /dev/ttyS7
    touchbook@touchbook-CF-30FCS80AM ~ $
     
  10. SHEEPMAN!

    SHEEPMAN! Freelance

    Reputations:
    879
    Messages:
    2,666
    Likes Received:
    517
    Trophy Points:
    131
    Soup first and unfreezing of the feet.

    ISR

    Jeff I shall return :) check PM
     
  11. SHEEPMAN!

    SHEEPMAN! Freelance

    Reputations:
    879
    Messages:
    2,666
    Likes Received:
    517
    Trophy Points:
    131
    Sanity Check:
    With Ublox running on Mint 15 here is a taste of gpscat. As is mostly usual, info can be found at
    Code:
    man gpscat
    and of course Google is your friend. I had seen the sanity check quote in a document accessed through berlios.de. (I think) :confused:

    What I did here as seen is check gpscat on my serial ports one at a time. :hi2:
     

    Attached Files:

  12. SHEEPMAN!

    SHEEPMAN! Freelance

    Reputations:
    879
    Messages:
    2,666
    Likes Received:
    517
    Trophy Points:
    131
    Cleaner with a double /triple post:

    What I don't understand is ublox 7.02 is running in .wine and in the /.wine/dosdevices directory, com3 is a soft link to /dev/ttyS2. Seem familiar Cleve? Some sort of internal magic here. Of course I have little to no understanding of soft links. I just know that this works.

    Comments welcome from the Linux community. Ownership of a Toughbook not required. :D Of course if you feel bad about NOT owning a Toughbook we can fix you up. :thumbsup: