How to Debugin 2 letters and store in microcontroller memory?


Closed Thread
Results 1 to 4 of 4

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default Re: How to Debugin 2 letters and store in microcontroller memory?

    Hello and Welcome,
    The first thing that comes to mind is 19 has binary value %00010011, a hex value $13, a decimal value of 19 and an ascii value of49,57. Which value are you sending and which value are you expecting? If you are sending ascii text then you are sending 2 characters which would prefer an array, probably doable with a word if you are clever.
    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

    Smile Re: How to Debugin 2 letters and store in microcontroller memory?

    Quote Originally Posted by Joe S. View Post
    Hello and Welcome,
    The first thing that comes to mind is 19 has binary value %00010011, a hex value $13, a decimal value of 19 and an ascii value of49,57. Which value are you sending and which value are you expecting? If you are sending ascii text then you are sending 2 characters which would prefer an array, probably doable with a word if you are clever.
    Sir, actually my code like this:

    CC:
    DEBUG "AT+CSQ"
    PAUSE 10
    DEBUG 13
    debugin [wait("+")]
    debugin [wait("C")]
    debugin [wait("S")]
    debugin [wait("Q")]
    debugin [SKIP 2,DEC1 B0]
    DEBUG B0
    IF B0= 1 THEN RC
    IF B0= 2 OR 3 OR 4 THEN GC

    By using this code, i am only able to store one digit in the b0 memory. Please guide me on how to store few incoming data in the memory. I am sending ascii characters and expecting incoming ascii characters also from gsm if i am not mistaken. I am sorry if i am not able to explain clearly, sir . I am just a beginner. Tq

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default Re: How to Debugin 2 letters and store in microcontroller memory?

    Try ...
    Code:
    debugin [wait("+CSQ:"),DEC B0]
    DT

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