Shop OBEX P1 Docs P2 Docs Learn Events
Max 232 / Mobile Phone — Parallax Forums

Max 232 / Mobile Phone

ArchiverArchiver Posts: 46,084
edited 2004-04-02 19:12 in General Discussion
Hope someone can help. I am currently trying to get my stamp BS2
to talk to my mobile phone. I am running into a few problems. I
have written some code to output some AT command to a pin for serial
transfer to the phone. The phone does not recognise the signal which
works fine when I copy the output to a hyperterminal session and send
to the phone manually. I assume this was due to the phone wanting
232 voltages.

So to get past this I decided to run the output from the serial
pin through a Max 232 chip. I wired this up on a breadboard as per
the diagram in issue 89 of Nuts n' Volts. I get an output from the
chip but it shows up as jibberish (random characters) on a
hyperterminal session. Thinking that the characters were
just 'shifted' on the ascii map I tryed just sending 5 1's (ie
11111). It showed up as completly different characters.

This sounds like some sort of timing issue to me. Can anyone offer
me some help ?

Thanks in advance.
Mitch

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2003-06-16 14:10
    you may be seeing RF interference from the phone. Breadboard circuits are
    quite often useless when dealing with RF.

    jim
    http://www.geocities.com/jimforkin2003/


    Original Message
    From: mknight73 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=0WrA8eolVEA3Vk8-qS4nctCwYXgTKcDC2bNAK4CNGKFLsPNHu5PiVGiNiYmEbQI-6nE1_sYffc8-Ydpv9A]mknight73@y...[/url
    Sent: Monday, June 16, 2003 8:08 AM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] Max 232 / Mobile Phone


    Hope someone can help. I am currently trying to get my stamp BS2
    to talk to my mobile phone. I am running into a few problems. I
    have written some code to output some AT command to a pin for serial
    transfer to the phone. The phone does not recognise the signal which
    works fine when I copy the output to a hyperterminal session and send
    to the phone manually. I assume this was due to the phone wanting
    232 voltages.

    So to get past this I decided to run the output from the serial
    pin through a Max 232 chip. I wired this up on a breadboard as per
    the diagram in issue 89 of Nuts n' Volts. I get an output from the
    chip but it shows up as jibberish (random characters) on a
    hyperterminal session. Thinking that the characters were
    just 'shifted' on the ascii map I tryed just sending 5 1's (ie
    11111). It showed up as completly different characters.

    This sounds like some sort of timing issue to me. Can anyone offer
    me some help ?

    Thanks in advance.
    Mitch


    To UNSUBSCRIBE, just send mail to:
    basicstamps-unsubscribe@yahoogroups.com
    from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2003-06-16 15:12
    Also, when you put a 232 driver into the circuit,
    you need to set the 'Invert' mode on the baudrate.

    --- In basicstamps@yahoogroups.com, "mknight73" <mknight73@y...>
    wrote:
    > Hope someone can help. I am currently trying to get my stamp
    BS2
    > to talk to my mobile phone. I am running into a few problems. I
    > have written some code to output some AT command to a pin for
    serial
    > transfer to the phone. The phone does not recognise the signal
    which
    > works fine when I copy the output to a hyperterminal session and
    send
    > to the phone manually. I assume this was due to the phone wanting
    > 232 voltages.
    >
    > So to get past this I decided to run the output from the serial
    > pin through a Max 232 chip. I wired this up on a breadboard as per
    > the diagram in issue 89 of Nuts n' Volts. I get an output from the
    > chip but it shows up as jibberish (random characters) on a
    > hyperterminal session. Thinking that the characters were
    > just 'shifted' on the ascii map I tryed just sending 5 1's (ie
    > 11111). It showed up as completly different characters.
    >
    > This sounds like some sort of timing issue to me. Can anyone offer
    > me some help ?
    >
    > Thanks in advance.
    > Mitch
  • ArchiverArchiver Posts: 46,084
    edited 2003-06-16 21:51
    Thanks for your help. The invert worked first time. I have only
    got one step further. The phone will still not react to the AT
    commands.

    If I copy the commands to a hyperterminal session the phone reacts,
    if I use the stamp, no response.

    I have tried bridging pins (of the D9 plug) 1-4-6 and 7-8 to no
    success.

    Has anybody successfully communicated with a mobile phone from a
    stamp ? What is the difference between the stamp and pc ? Do I
    need to try RTS/CTS ?

    I am using a Nokia 6210 with data cable.

    Thanks again.



    --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    wrote:
    > Also, when you put a 232 driver into the circuit,
    > you need to set the 'Invert' mode on the baudrate.
    >
    > --- In basicstamps@yahoogroups.com, "mknight73" <mknight73@y...>
    > wrote:
    > > Hope someone can help. I am currently trying to get my stamp
    > BS2
    > > to talk to my mobile phone. I am running into a few problems.
    I
    > > have written some code to output some AT command to a pin for
    > serial
    > > transfer to the phone. The phone does not recognise the signal
    > which
    > > works fine when I copy the output to a hyperterminal session and
    > send
    > > to the phone manually. I assume this was due to the phone
    wanting
    > > 232 voltages.
    > >
    > > So to get past this I decided to run the output from the
    serial
    > > pin through a Max 232 chip. I wired this up on a breadboard as
    per
    > > the diagram in issue 89 of Nuts n' Volts. I get an output from
    the
    > > chip but it shows up as jibberish (random characters) on a
    > > hyperterminal session. Thinking that the characters were
    > > just 'shifted' on the ascii map I tryed just sending 5 1's (ie
    > > 11111). It showed up as completly different characters.
    > >
    > > This sounds like some sort of timing issue to me. Can anyone
    offer
    > > me some help ?
    > >
    > > Thanks in advance.
    > > Mitch
  • ArchiverArchiver Posts: 46,084
    edited 2003-06-17 05:28
    I am working from memory, but I'm pretty sure I'm right

    If Nokia still use the same method as they did for the 5110 then you
    are being tricked.

    The nokia software creates a virtual com port on the computer that you
    can access with programs such as hyperterminal but in fact it is
    speaking a nokia binary format out the physical com port.

    So unless you know the binary protocol your sunk.

    There was however a group that was striving to overcome this, try;

    www.gnokii.org

    Perhaps they can help

    Regards

    Rohan

    Original Message
    From: "mknight73" <mknight73@y...>
    Date: Tuesday, June 17, 2003 6:51 am
    Subject: [noparse][[/noparse]basicstamps] Re: Max 232 / Mobile Phone

    > Thanks for your help. The invert worked first time. I have only
    > got one step further. The phone will still not react to the AT
    > commands.
    >
    > If I copy the commands to a hyperterminal session the phone
    > reacts,
    > if I use the stamp, no response.
    >
    > I have tried bridging pins (of the D9 plug) 1-4-6 and 7-8 to no
    > success.
    >
    > Has anybody successfully communicated with a mobile phone from a
    > stamp ? What is the difference between the stamp and pc ? Do I
    > need to try RTS/CTS ?
    >
    > I am using a Nokia 6210 with data cable.
    >
    > Thanks again.
    >
    >
    >
    > --- In basicstamps@yahoogroups.com, "Allan Lane" <allan.lane@h...>
    > wrote:
    > > Also, when you put a 232 driver into the circuit,
    > > you need to set the 'Invert' mode on the baudrate.
    > >
    > > --- In basicstamps@yahoogroups.com, "mknight73" <mknight73@y...>
    > > wrote:
    > > > Hope someone can help. I am currently trying to get my
    > stamp
    > > BS2
    > > > to talk to my mobile phone. I am running into a few problems.
    >
    > I
    > > > have written some code to output some AT command to a pin for
    > > serial
    > > > transfer to the phone. The phone does not recognise the
    > signal
    > > which
    > > > works fine when I copy the output to a hyperterminal session
    > and
    > > send
    > > > to the phone manually. I assume this was due to the phone
    > wanting
    > > > 232 voltages.
    > > >
    > > > So to get past this I decided to run the output from the
    > serial
    > > > pin through a Max 232 chip. I wired this up on a breadboard
    > as
    > per
    > > > the diagram in issue 89 of Nuts n' Volts. I get an output
    > from
    > the
    > > > chip but it shows up as jibberish (random characters) on a
    > > > hyperterminal session. Thinking that the characters were
    > > > just 'shifted' on the ascii map I tryed just sending 5 1's (ie
    > > > 11111). It showed up as completly different characters.
    > > >
    > > > This sounds like some sort of timing issue to me. Can anyone
    > offer
    > > > me some help ?
    > > >
    > > > Thanks in advance.
    > > > Mitch
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the
    > Subject and Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2004-03-22 15:37
    I'm trying to do the very same thing, but it seems with a little more
    success, though not much!
    I have my bs2p connected to the nokia 6310i with data cable, and
    when I send the 'AT' command, I can get the 'OK' reply (using the WAIT
    (OK)) in the serin command.
    I also copied a lot from Nuts&Volts 89, look at 60 also.
    I'm trying to send a SMS message from the stamp, but I get problems
    at the send stage. I get OK from the phone at each stage up to this
    though. I followed the commands in the Nokia AT command guide.
    I used flow control with serin, but not with serout (wouldn't work).
    At this stage I'm wondering if I need to connect more than just TX,
    RX, RTS, CTS, maybe the data cable gets power from the PC (stamp)
    side?
    I want to use the phone as a modem eventually, because it has its own
    battery backup!
    If you'd like the code I've got so far, let me know, perhaps we can
    figure this out between us.

    Darren.


    --- In basicstamps@yahoogroups.com, "mknight73" <mknight73@y...>
    wrote:
    > Hope someone can help. I am currently trying to get my stamp
    BS2
    > to talk to my mobile phone. I am running into a few problems. I
    > have written some code to output some AT command to a pin for
    serial
    > transfer to the phone. The phone does not recognise the signal
    which
    > works fine when I copy the output to a hyperterminal session and
    send
    > to the phone manually. I assume this was due to the phone wanting
    > 232 voltages.
    >
    > So to get past this I decided to run the output from the serial
    > pin through a Max 232 chip. I wired this up on a breadboard as per
    > the diagram in issue 89 of Nuts n' Volts. I get an output from the
    > chip but it shows up as jibberish (random characters) on a
    > hyperterminal session. Thinking that the characters were
    > just 'shifted' on the ascii map I tryed just sending 5 1's (ie
    > 11111). It showed up as completly different characters.
    >
    > This sounds like some sort of timing issue to me. Can anyone offer
    > me some help ?
    >
    > Thanks in advance.
    > Mitch
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-02 19:12
    Darren, I'm trying to do almost exactly the same as you using a Sony
    Ericsson mobile phone as a modem, but haven't had any success. I want
    the Stamp to download received SMS messages from the phone (then do
    other cool things with them, but that part is already resolved) using
    the AT command set provided by Sony Ericsson. I know I can connect to
    and download from the phone using hyperterminal but it doesn't seem
    to work to use the same settings with the Stamp. Are you using the
    I/O pins or the programming pin? I also wonder whether it's a voltage
    issue. Since my phone runs on 3 volts I assumed that it wouldn't need
    for a 12-volt RS 232 signal.
    Germaine

    --- In basicstamps@yahoogroups.com, "poguemomhoin"
    <darren.gallagher@o...> wrote:
    > I'm trying to do the very same thing, but it seems with a little
    more
    > success, though not much!
    > I have my bs2p connected to the nokia 6310i with data cable, and
    > when I send the 'AT' command, I can get the 'OK' reply (using the
    WAIT
    > (OK)) in the serin command.
    > I also copied a lot from Nuts&Volts 89, look at 60 also.
    > I'm trying to send a SMS message from the stamp, but I get problems
    > at the send stage. I get OK from the phone at each stage up to this
    > though. I followed the commands in the Nokia AT command guide.
    > I used flow control with serin, but not with serout (wouldn't work).
    > At this stage I'm wondering if I need to connect more than just TX,
    > RX, RTS, CTS, maybe the data cable gets power from the PC (stamp)
    > side?
    > I want to use the phone as a modem eventually, because it has its
    own
    > battery backup!
    > If you'd like the code I've got so far, let me know, perhaps we can
    > figure this out between us.
    >
    > Darren.
    >
    >
    > --- In basicstamps@yahoogroups.com, "mknight73" <mknight73@y...>
    > wrote:
    > > Hope someone can help. I am currently trying to get my stamp
    > BS2
    > > to talk to my mobile phone. I am running into a few problems. I
    > > have written some code to output some AT command to a pin for
    > serial
    > > transfer to the phone. The phone does not recognise the signal
    > which
    > > works fine when I copy the output to a hyperterminal session and
    > send
    > > to the phone manually. I assume this was due to the phone
    wanting
    > > 232 voltages.
    > >
    > > So to get past this I decided to run the output from the
    serial
    > > pin through a Max 232 chip. I wired this up on a breadboard as
    per
    > > the diagram in issue 89 of Nuts n' Volts. I get an output from
    the
    > > chip but it shows up as jibberish (random characters) on a
    > > hyperterminal session. Thinking that the characters were
    > > just 'shifted' on the ascii map I tryed just sending 5 1's (ie
    > > 11111). It showed up as completly different characters.
    > >
    > > This sounds like some sort of timing issue to me. Can anyone
    offer
    > > me some help ?
    > >
    > > Thanks in advance.
    > > Mitch
Sign In or Register to comment.