Siemens c55 sms control help please


Closed Thread
Results 1 to 40 of 86

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default Zero BYTE ARRAY ?

    Zero BYTE ARRAY ? Is that right? Seems like an Array of "no" bytes . . . seems to me, a standard byte var is an array of 1, MyVarArray[1] or MyVarArray var BYTE . . . did I miss something here ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Hi,

    The array is [62] byte the 0 byte in the array is 0 as you can see here "0791539126010000240C91539166392101000080707081934 1400453FA1B0E"

    by


    Quote Originally Posted by Joe S. View Post
    Zero BYTE ARRAY ? Is that right? Seems like an Array of "no" bytes . . . seems to me, a standard byte var is an array of 1, MyVarArray[1] or MyVarArray var BYTE . . . did I miss something here ?

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camolas View Post
    Hi,

    The array is [62] byte the 0 byte in the array is 0 as you can see here "0791539126010000240C91539166392101000080707081934 1400453FA1B0E"

    by
    OK that makes sense, since you only posted snippets, I wasn't sure you had set up a 62 byte array, and if you did post it all, then woops, I missed it.
    EDIT: Yep you did, post 26.
    Last edited by Archangel; - 11th July 2008 at 04:57.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Code stop working at this last line:
    HSERIN 5000,IT,[WAIT(13,10), STR myarray\62] or using this line HSERIN 5000,IT,[WAIT("+CMGR: 1,,23"),skip 2, STR myarray\62]
    is the same
    If i put the command line success: High PortD.2 (to see where code stops) on the next line

    IT:
    HSERIN 5000,IT,[WAIT(13,10), STR myarray\62]
    success: High PortD.2

    Nothing but if a only put

    HSERIN 5000,IT,[WAIT(13,10)]
    success: High PortD.2


    Led lights so the code is good before that line and specialy the " , STR myarray\62]" command , please give me you input on this.

    Thanks

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Why not try pulling just part of the string first...like the first few characters and make sure you can get those correctly before you try grabbing the whole thing...
    And if your 13,10 is actually 13,10, then you're ok...but what if your 13,10 is actually 10,13?

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi,

    If i compriend you i have to try a small array like:

    ............................
    myarray var byte[4]
    ............................

    HSERIN 5000,IT,[WAIT(13,10), STR myarray\4]


    The 13,10 situaction as i said i put after that this line command

    ..............
    success:
    High PortD.2
    ..............

    and it works sow i bealive that is no problem on that.

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camolas View Post
    If i compriend you i have to try a small array like:
    ............................
    and it works sow i bealive that is no problem on that.
    Yes, yes, and, yes, so...

    And how much of your 'program' are you leaving out? I get the feeling that you're not showing everything and that something else is screwing up this whole operation.

  8. #8


    Did you find this post helpful? Yes | No

    Default

    Tha small array do not work i mod the line from HSERIN 5000,IT,[WAIT(13,10), STR myarray\4] to:

    IT:
    HSERIN 5000,IT,[WAIT("OK")]
    success:
    High PortD.2

    End


    to get the last ok aftar the phone sends the pdu array was i use to see if the others hserout/hserin lines , and try to with the all pda array and with the 1sts 4 bytes and and nothing i have seen the hterminal and the code stops at last OK dont go back to IT: thats strange.....

  9. #9
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Zero BYTE ARRAY ? Is that right? Seems like an Array of "no" bytes . . . seems to me, a standard byte var is an array of 1, MyVarArray[1] or MyVarArray var BYTE . . . did I miss something here ?
    Yep! It's just referencing the first byte of the array, not a one byte array (which could just be nothing more than an 8 BIT array )
    At least THAT part of the program is done correctly.

Similar Threads

  1. sms to control pic..pls help...
    By Ziki in forum mel PIC BASIC Pro
    Replies: 53
    Last Post: - 12th April 2010, 21:19
  2. Replies: 11
    Last Post: - 19th August 2009, 15:23
  3. SMS control for Relays
    By charudatt in forum Code Examples
    Replies: 15
    Last Post: - 2nd May 2009, 00:08
  4. Reading a SMS to an array
    By KA5MAL in forum GSM
    Replies: 3
    Last Post: - 17th June 2008, 17:24
  5. Control RC servo via Parallax Servo Control
    By cibotsan in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th September 2005, 08:18

Members who have read this thread : 0

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