help me please


Closed Thread
Results 1 to 20 of 20

Thread: help me please

Hybrid View

  1. #1
    MICOCALI's Avatar
    MICOCALI Guest


    Did you find this post helpful? Yes | No

    Default re

    I connect phone with hyper... with convertitor rs 232 ttl (max 232 ) and
    i set Hyper.. with 9600 8 N 1
    but when i send command at+cmss=1 the phone send message very well
    WY for you

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    OK, but how are you connecting the phone to your PIC?
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    MICOCALI's Avatar
    MICOCALI Guest


    Did you find this post helpful? Yes | No

    Default re

    direct with two resistor

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Miiiiiiiiiip this is why. you must still use the Max232 ic to invert the serial data. OR, but it bet that will not work 100%, use serin/serout in inverted mode.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    MICOCALI's Avatar
    MICOCALI Guest


    Did you find this post helpful? Yes | No

    Default re

    the bit 14 is the register for setting the serial comunication at inverted mode but wich is the parameter for setting 9600 baud,no parity ,inverted.
    For example mode=84 is 9600,no parity,true
    thank you.
    where is if possible search this parameter ,because i search in the data sheet but i dont watch never

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    so now it imply that you use SERIN2/SEROUT2 or else. chances are that you'll never find anything in the datasheet since it's a PBP statement. You'll find the result in the APPENDIX A at the end of your PBP manual... there you'll find the right setting for SERIN2/SEROUT2 wich is.....16468

    For SERIN/SEROUT you'll use 6

    You can't tell to HSERIN/HSEROUT to drive inverted since it use the internal PIC hardware.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7
    MICOCALI's Avatar
    MICOCALI Guest


    Did you find this post helpful? Yes | No

    Default re

    I write this code and now run but not very well . sometime run at first ring , sometime run at five ring , wy for you?
    '************************************************* ******************************
    @ device WDT_OFF, MCLR_OFF, HS_OSC, BOD_OFF, PWRT_ON, CPD_OFF, LVP_OFF
    '************************************************* ******************************
    INCLUDE "modedefs.bas"
    DEFINE OSC 4
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h
    DEFINE HSER_BAUD 9600
    DEFINE HSER_CLROERR 1
    DEFINE DEBUGIN_MODE 1
    DEFINE DEBUG_MODE 1
    DEFINE DEBUGIN_REG PORTB
    DEFINE DEBUGIN_BIT 4

    CMCON = 7
    VRCON = 0

    ' ************************************************** ****************************
    INIT:
    Pause 2000

    LOOP:
    Pause 500
    HSerout ["AT*EIPS=1,1",13,10]
    Pause 3000

    Loop2

    DebugIn [wait("*")]

    APRI:
    High PORTA.1
    Pause 1000
    Low PORTA.1
    Pause 10000
    GoTo LOOP


    End

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