Siemens c55 sms control help please


Closed Thread
Results 1 to 40 of 86

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default

    Code is now full working for people that want to do a sms controled......... thanks to all you that haved hellp me and care for starts as me.


    Many thanks 2u

    Code:
    @ Device HS_OSC         ' High Speed Crystal
    define OSC 20     ' Check the spelling of OSC, must be in capital letter
            
    Include "modedefs.bas" ' Include serial modes
    
    ' Define LCD registers and bits
    Define	LCD_DREG	PORTB           'Lcd D 4-bit parallel register starts at PortB.4 to PortB.7
    Define	LCD_DBIT	4              
    Define	LCD_RSREG	PORTB
    Define	LCD_RSBIT	2
    Define	LCD_EREG	PORTB
    Define	LCD_EBIT	3
    Define  LCD_COMMANDUS   2000	      ' Command Delay (uS)
    Define  LCD_DATAUS      50 	     ' Data Delay (uS)
    DEFINE  OSC         20                'Define oscilator frequency
    DEFINE LCD_LINES 4 'Number lines on LCD 
    
    DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive
    DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1
    DEFINE HSER_SPBRG 129 ' 9600 Baud @ 20MHz, 0.16%
    DEFINE HSER_CLROERR 1 ' Clear overflow automatically
            
    myarray var byte[62]
    
    TrisD.2=0
    TrisC.6=0
    TrisC.7=1
    
    High portD.2
    Pause 500
    Low portD.2
    Pause 500
    High portD.2
    Pause 500
    Low portD.2
    Pause 500
    High portD.2
    Pause 500
    Low portD.2
    Pause 500
    
    LOOP:
    HSEROUT["AT+CPMS=",34,"SM",34,13] 
    HSERIN 5000,LOOP,[WAIT("OK")]
    
    IP:
    HSEROUT["AT+CMGR=1",13,10] 
    HSERIN 5000,IP,[WAIT("+CMGR: 1,,23"),skip 2, STR myarray\62] 
    
    '079153 9 126010000240C915391663921010000807070819341400453FA1B0E
    
    IF myarray[6]="9" then
    goto success
    endif
    
    goto IP:
    
    success:
    High PortD.2
    
    End
    Last edited by camolas; - 12th July 2008 at 22:33.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camolas View Post
    Code is no full working
    Are you just typing to fast to care or what's up?

    'Code is no full working', while not proper English (and again, your grasp of English is obviously thousands of times better than my grasp of anything but English) means to me that it's NOT working.

    'Code is now full working' (again, while it's not proper English) means that it IS working.

    Which one is it?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Hi,

    I was just typing to fast (it was a big moment for me this code ) when you want to learn to speek Portugese just let me now


    By by

    Quote Originally Posted by skimask View Post
    Are you just typing to fast to care or what's up?

    'Code is no full working', while not proper English (and again, your grasp of English is obviously thousands of times better than my grasp of anything but English) means to me that it's NOT working.

    'Code is now full working' (again, while it's not proper English) means that it IS working.

    Which one is it?

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by camolas View Post
    Hi,

    I was just typing to fast (it was a big moment for me this code ) when you want to learn to speek Portugese just let me now


    By by
    Didn't answer the question though!

    And I have enough trouble with English...much less anything else.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Hi,

    The code works 100% if is that what you are ascking and works thanks to you and other caring members.


    Inglish - Thank you
    Portugese - Obrigado
    By by

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi,
    Im traing to decode pdu to text for my sms control i have been "playing" with Alexandros Zachariadis pdupic

    http://www.picbasic.co.uk/forum/atta...6&d=1079679786

    But no sucess for starting point i just try to macke the pdu to text decode mode, in me sms code i puted the pdu to myarray\62 my last 8 pdu array are the word "Stop" ........53FA1B0E sow i mod. the pdupic code on this line

    LOOKup2 X,[232,50,155,253,70,151,217],B0 'pdu data:E8329Bfd4697D9...

    to

    LOOKup2 X,[myarray[54],myarray[55],myarray[56],myarray[57],myarray[58],myarray[59],myarray[60],myarray[61] ],B0

    But the lcd give not the word Stop it gives some thing else.

    Please help me thanks a lot

    By by

  7. #7


    Did you find this post helpful? Yes | No

    Default

    In my searchs i find that the

    LOOKup2 X,[232,50,155,253,70,151,217],B0 'pdu data:E8329Bfd4697D9...

    line is the pdu array (exadecimal data) in decimal numbers sow 232 is the decimal number of E8.
    How can i convert in pbp code the pdu data to decimal and then fill the LOOKup2 X.....

    Thanks.

    by by

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