send ubx commands to a gps module


+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    44

    Default send ubx commands to a gps module

    Hello. I need to send ubx commands to change the gps module settings. I copied the sequence from U-Center (B5 62 06 01 08 00 F0 08 00 01 00 00 00 00 08 60) but I can't encode it correctly to send it to the module. I have no problem receiving and I use HSERIN. I imagine that to send I have to use HSEROUT but despite various attempts I can't solve it. Help would be appreciated. Thanks

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,609


    Did you find this post helpful? Yes | No

    Default Re: send ubx commands to a gps module

    [B5 62] = Header
    [06] = Class
    [01] = ID
    [08] = LENGTH (8 bytes)
    [00 F0 08 00 01 00 00 00] = 8 bytes of payload

    But then there supposed to be two bytes checksum but you show three bytes:

    00 08 60

    I went thru the checksum calculation and 0x08, 0x60 seems correct so to me it looks like the first 00 doesn't belong in there.

  3. #3
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    44


    Did you find this post helpful? Yes | No

    Default Re: send ubx commands to a gps module

    Thank you for your help. but I can't send these bytes correctly via HSEROUT command. Could you give me an example please. Thanks

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,609


    Did you find this post helpful? Yes | No

    Default Re: send ubx commands to a gps module

    Code:
    hserout[$b5, $62, $06, $01, $08, $00, $f0, $08, $00, $01, $00, $00, $00, $08, $60]

  5. #5
    Join Date
    Jul 2006
    Location
    Lazio, Italy
    Posts
    44


    Did you find this post helpful? Yes | No

    Default Re: send ubx commands to a gps module

    now it works wonderfully well. Thank you very much, I was wrong about one small detail that kept me stuck for days.

Similar Threads

  1. Replies: 1
    Last Post: - 5th June 2015, 03:25
  2. GPS module + PIC
    By flotulopex in forum General
    Replies: 12
    Last Post: - 28th April 2010, 08:18
  3. Replies: 0
    Last Post: - 17th June 2009, 03:55
  4. Replies: 1
    Last Post: - 27th July 2008, 06:14
  5. ZX4120 Gps Module
    By -Dan- in forum GPS
    Replies: 0
    Last Post: - 2nd November 2007, 06:13

Members who have read this thread : 6

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts