Shop OBEX P1 Docs P2 Docs Learn Events
Iridium Modem — Parallax Forums

Iridium Modem

bdrew7bdrew7 Posts: 38
edited 2009-01-29 13:05 in BASIC Stamp
Has anyone connected a BS2p to an Iridium modem?·

Comments

  • john_sjohn_s Posts: 369
    edited 2009-01-23 16:31
    Enter Iridium in parallax.com main site and you'll find 4 results:

    Search Results
    1 Transmitting GPS Position by an Iridium Phone - Relevance: 1004
    Transmitting GPS Position by an Iridium Phone ...
    http://www.parallax.com/Resources/ApplicationsContests/Science/TransmittingGPSPositionbyanIridiumPhone/tabid/574/Default.aspx - 11/19/2007 4:39:10 PM
    2 Customer Applications - Science - Relevance: 1002
    Customer Applications - Science Aerospace R...
    http://www.parallax.com/Resources/ApplicationsContests/Science/tabid/281/Default.aspx - 9/12/2008 3:40:54 PM
    3 Customer Applications and Contests - Relevance: 1001
    Customer Applications and Contests Applications ...
    http://www.parallax.com/Resources/ApplicationsContests/tabid/271/Default.aspx - 1/5/2009 4:53:42 PM
    4 Tumbleweed - Relevance: 1001
    Tumbleweed A Project by NASA more ...
    http://www.parallax.com/Resources/ApplicationsContests/Science/Tumbleweed/tabid/575/Default.aspx - 11/21/2007 11:32:51 AM
  • bdrew7bdrew7 Posts: 38
    edited 2009-01-28 01:50
    I have carefully tried the hookup and software in "Transmitting GPS position by an Iridium phone" with no success.· I am using a BS2p and they used a BS2.· Is that a problem?· Any help will be gratefully appreciated.· I have wasted a week on this simple part of my project.

    Thanks.
    Bernard
  • Mike GreenMike Green Posts: 23,101
    edited 2009-01-28 01:58
    You have to change various constants in any program written for the BS2 if you're using a BS2p, particularly the Baud constants. Read the Basic Stamp Manual chapters on SERIN and SEROUT. The program probably doesn't use other statements with similar timing changes between the Stamp models.
  • bdrew7bdrew7 Posts: 38
    edited 2009-01-28 02:31
    Yes I changed the baud rate for 19200 to 110 for the BS2p.· Here is the actual code.


    '{$STAMP BS2p}
    '{$PBASIC 2.5}
    Baud_Rate_19200········· CON···· 110···· '19200 baud for BS2p
    Tx_modem················ PIN···· 1······ ' Data to Modem
    DCD_modem··············· PIN···· 2······ ' Modem DCD
    Rx_modem················ PIN···· 3······ ' Data from Modem
    DTR_modem··············· PIN···· 4······ ' Modem DTR
    LCD····················· PIN···· 13····· ' LCD Display
    OUTPUT DTR_modem
    LOW DTR_modem
    PAUSE 1500
    INPUT DCD_modem
    PAUSE 3000
    SEROUT LCD, Baud_Rate_19200, 5, [noparse][[/noparse]22]
    SEROUT LCD, Baud_Rate_19200, 5, [noparse][[/noparse]12, "SMS GPS-IRIDIUM"]
    SEROUT LCD, Baud_Rate_19200, 5, [noparse][[/noparse]148, "INITIALIZING..."]
    I_MODEM:
    SEROUT Tx_modem, Baud_Rate_19200, 25, [noparse][[/noparse]"AT", CR]
    SERIN Rx_modem, Baud_Rate_19200, 2500, Error, [noparse][[/noparse]WAIT("OK")]
    SEROUT Tx_modem, Baud_Rate_19200, 25, [noparse][[/noparse]"AT &F0 &C1", CR]
    SERIN Rx_modem, Baud_Rate_19200, 2500, Error, [noparse][[/noparse]WAIT("OK")]
    DEBUG CR, "Got here 3", CR

    Error:
    · PAUSE 2000
    · DEBUG CR, "Try again!", CR
    · GOTO I_MODEM
  • bdrew7bdrew7 Posts: 38
    edited 2009-01-28 02:33
    The LCD is running at 19.2k baud, so I know the constant(110) is correct.
  • MikerocontrollerMikerocontroller Posts: 310
    edited 2009-01-28 03:22
    · If the original BS2 baudmode value constant was 16416 that means a baudrate of 19,200 ·8-bit/no parity inverted.· Your baudmode should be 16494 (corrected for the BS2p) if that's the case.
  • bdrew7bdrew7 Posts: 38
    edited 2009-01-28 13:48
    Thanks very much.· I will give it a try.·

    I should have calculated this correctly for the BS2p based on the number for the BS2.

    Bernard
  • bdrew7bdrew7 Posts: 38
    edited 2009-01-29 13:05
    Works as expected!!· Thanks for your help.· Should have been obvious to me!



    Thanks again,

    Bernard
Sign In or Register to comment.