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.
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.
· 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.
Comments
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
Thanks.
Bernard
'{$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
I should have calculated this correctly for the BS2p based on the number for the BS2.
Bernard
Thanks again,
Bernard