element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum OBDII USB device kills UART GPS
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 662 subscribers
  • Views 416 views
  • Users 0 members are here
  • raspberry_pi
Related

OBDII USB device kills UART GPS

Former Member
Former Member over 9 years ago

HI I have been trying to setup a car PC using the Raspberry Pi 2, and have run into a problem which i have been unable to solve with my limited knowledge of Linux.

 

I have a UART GPS connected to the GPIO pins which works fine (get data from gps with cgps -s) until I plug in my USB OBDII device, as soon as I plug it in and reboot I no longer get any data from the GPS (cgps -e Error: GPS timeout).

 

Other post I have seen suggest that its a power issue. I have eliminated this as the problem by running the Pi on a separate power supply to the powered USB HUB that the USB OBDII device is connected to. (Both power supplies are capable of delivering up to 5Amps).


Some more info..

 

With OBDII USB device disconnected I ran gpspipe -r and got DEVICE path = /dev/ttyAMA0 as expected..

 

When I connected the OBDII USB device and ran gpspipe -r I got DEVICE path = /dev/ttyUSB0..

 

Hope this will help someone give me a solution.

 

In etc/default/gpsd DEVICE is listed as dev/ttyAMA0

 

Im guess that this is what the problem is, I would like to know why it switches to ttyUSB0 when the OBDII USB device is connected.

  • Sign in to reply
  • Cancel
  • shabaz
    0 shabaz over 9 years ago

    Sounds like your gpspipe program is picking up the wrong device in error.

    You could force gpspipe to use the correct device on the command line according to here:

    http://www.catb.org/gpsd/gpspipe.html

     

    Isn't the last parameter the device name? i.e. you could type :/dev/ttyAMA0 on the end of your command line, or something like that.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to shabaz

    Thanks for the info I tried gpspipe -w :/dev/ttyAMA0 with error could not connect to gpsd localhost:/dev/ttyAMA0, Unknown error 4294967294(-2)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 9 years ago in reply to Former Member

    Hi John,

     

    Looks like I got the command wrong : (

    I've never used this before. Anyway, looks like 'gpsd' is the program which gpspipe is connecting to. And gpsd I suspect is using the wrong device.

     

    Could you check what runs gpsd in your solution (i.e. it could be a script) and the command line for it allows you to specify the device name, i.e. /dev/ttyAMA0 according to this page http://www.catb.org/gpsd/gpsd.html

    (snippet:)

    Arguments are interpreted as the names of data sources. Normally, a data source is the device pathname of a local device from which the daemon may expect GPS data. But there are three other special source types recognized, for a total of four:

    Local serial or USB device

    A normal Unix device name of a serial or USB device to which a sensor is attached. Example: /dev/ttyUSB0.

    .....

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube