Pic to GSM Phone connection (HSerin problems) - Page 5


Closed Thread
Page 5 of 8 FirstFirst 12345678 LastLast
Results 161 to 200 of 289
  1. #161
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762

    Default

    Quote Originally Posted by Rufinus
    RS232 output of max i do connect to the pic, but through 22k resistor.
    A simple NPN Transistor and two resistors would do here.
    (Invert the logic and shift the level to 5V)

    Regarding modes - tried both true and inverted, tried different baud rates.
    I still think it is the problem of levels.
    Find out what level the Phones TX Pin has in Idle state, and what it is in active state.



    If you have a good link in mind about serial communication, i would appreciate. Otherwise, gonna google.
    Sorry, I don't have any link, but there are some good books, i.e.
    "Serial Port Complete" by: Jan Axelson
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  2. #162
    Join Date
    Oct 2005
    Location
    Stuttgart, Germany
    Posts
    24

    Default

    I should report now, that the problem is solved!!
    My thanks and respect goes to NavMicroSystems and Ioannis for helping me out.
    Problem was solved by making a simple level shifter (so i can use phone with USART), using two BC 547 transistors.

    Perhaps should make a simple conclusion, for those, who will work with Siemens S55/S65 phones.
    There is no need in MAX232. Rx line of the phone can be connected to the PIC through 1k resistor. Tx line of the phone must be connected through simple level shifter. Written above is valid for PICs with USART onboard.
    Pins 5 and 7 of the phone should be connected trough 10k resistors to pin 2.
    Otherwise the phone will not detect the cable and will not accept commands from the PIC.

    As a hint: if you dont have a spare connector for the phone, you can make one from AGP slot of the old PC motherboard, pin spacing is the same

    -----------------------------------------------------------------------
    And, of course, if you are not sure what are you doing, better dont do it!You can damage a lot of expensive things!
    -----------------------------------------------------------------------

    So now i will move on to next step - sending messages in PDU format.

  3. #163
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762

    Default

    Rufinus,

    I'm glad to hear you have got it to work!

    Why do you want to use PDU format, doesn't the S55 support TEXT?
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  4. #164
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    Ralph is right about the serial kwnoledge Rufinus. I was about to say almost the same things. If you don't own the Serial Complete, do so as soon as possible. It will help you the most.

    Now, about your phone, it is sure a problem of levels, no question about it. It is just that we cannot guess anything. You have to find data sheets and read them from A to Z. Then you sure find why it behaves like the way you describe.

    Regards,
    Ioannis

  5. #165
    Join Date
    Oct 2005
    Location
    Stuttgart, Germany
    Posts
    24

    Default

    Well, S55/S65 suports only PDU, unfortunately


    I will get the book, because this is not my last project related to this matter.

    Regarding datasheets. It is quite a tricky one, to find a complete datasheet for the phone. Even service manual i managed to find in internet, has the stamp on it: "For internal use only". So it is pretty much of poking and trying here and there, or call it guessing, if you will. And if the models of the phone are relatively new..

  6. #166
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    OK. PDU is one thing. Some phone do support ASCII some do not.
    That's why I choose modules like Telit or Wavecom for serious projects or Nokia for experimenting.

    But EVERY phone should answer 'OK' if addressed by 'AT'.

    Ioannis

  7. #167
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762

    Default

    Ioannis is right.

    There are two GSM-Terminals I can recommend:

    SIEMENS TC35i Terminal

    and the Telit Terminal Ioannis has already mentioned.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  8. #168
    Lefteris's Avatar
    Lefteris Guest

    Unhappy String in on-chip eprom

    Hi
    I am trying to write and read my phone number as sting in on-chip eprom of a 16f877 but no luck!!.
    I like aslo to write a new phone number durring the program runs...
    Any idea ??


    Lefteris Rhodes Island Greece

  9. #169
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    More input would be usefull, like some code, phone type, connection (serial or what?).

    Ioannis

  10. #170
    Join Date
    Jul 2005
    Location
    Selangor, Malaysia
    Posts
    31

    Default Difficult To Get The Serial Interface GSM Phone

    Hi all,
    The use of GSM phone as the communication module via SMS is the successful one. I have use this method to collect the data from the remote site.
    Discussion here are more on interfacing the pic with the serial GSM phone. But I think it is difficult to get the serial interface GSM phone because the USB becomes the standard.
    Any idea to use the PIC as the host usb that can connect to the USB port.

  11. #171
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762

    Default

    kblim,

    there are so many GSM-Modules (Engines) or even "standalone" GSM-Terminals available at reasonable prices.

    OK, for a single shot prototype for home use one could try a mobile phone, but for a commercial product?

    If you require just one or two GSMs for a hobby project go get you some used phones with a serial port. You can get used phones at very low prices.

    However, I would recommend a GSM-Module or Terminal.

    A good choice is SIEMENS or TELIT.
    SIEMENS TC35i is a robust low cost GSM Terminal.
    The TELIT Terminals offer some nice extra features but are more expensive.

    The Telit PYTHON Terminal does even have some GPIOs, plenty of memory and supports I2C, so for many applications you wouldn't need an additional Micro at all!

    This will reduce overall development cost and time to market to an absolute minimum.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  12. #172
    cosmomen's Avatar
    cosmomen Guest

    Default Ending call with ATH

    Hi all,

    I'm trying to make a data call to another phone with command ATD+43506.....
    This is working fine the phone will make the call, but I can't hang up with the ATH command while ringing.
    Can somebody help me please?

  13. #173
    microkam's Avatar
    microkam Guest

    Red face tc35i terminal

    i plane to buy simense TC35i terminal , and there are many site to buy tc35i with different price ....
    any body can help me to chose the best site with the best price >>>

  14. #174
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default

    Hai, could anybody help me on how to built a device (pic) connected to handphone and pc where i can control input just by sending sms. i already search through internet and iam trying to built one. could anybody help me. i want to use PIC16F84A as the controller as iam doing alot of thing with this MCU and control by nokia 3310. may be somebody could provide me the step and all the hex file that i need to built one. i interested on this project but have lack of experience!
    please give me a guide

  15. #175
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default need help

    helllo

    can same one tell me, what phone can support AT Command

    please...

  16. #176
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    Nokia, Erricson, Siemens, Wavecom modules, Telit modules....

  17. #177
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default

    helllo

    Ioannis..

    I now Nokia, Erricson, Siemens, Wavecom modules have at command but not all model have at command.

    i try to find nokia model (6310,6210) ,Erricson model (T28,T68) in my country but i can't find't.

    can u give me what modal can support at command

    i try to do same project like kasamiko ( post #90 ). if i use another phone can i use the kasamiko schematic.

    sorry my engglish is not good.. i am malay boy

  18. #178
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    When I experimented with phones I used the ones you mentioned.

    But when it comes to industrial projects or commercial that should be a complete device... do not think of using a mobile phone. Instead look for a module like Telit if you can solder the extremely thin connector or a Siemens - Ericsson and more easy the Wavecom which has a VGA-15 connector.

    Language is not a problem. I am not native speaking too.

    Ioannis

  19. #179
    Join Date
    Apr 2005
    Posts
    17

    Thumbs up

    I've been using a Nokia 6210 and has a working SMS Controller FULLY working with 4 output to drive a relay and 4 input for sensors..
    Also capable of sending SMS messages to the Master phone.

    Current usage:

    Anti carnapping for vehicles..will send SMS to master phone when any of the 4 sensors will be activated. the owner of the car will simply send simple command to turn off the vehicle engine, turn on the light and horn.

    Future plan:

    I will be adding a VOICE Module so the carnap vehicles can scream " I'M BEING CARNAPPED!" literally..

    Regards

  20. #180
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default read incomming msg (SMS) and send to VB6

    hello, every one..

    now i success send sms using pic 16f84a and nokia 3310.. i use pic to push hp button...

    My next problem is to read incomming msg (SMS) and send the data to VB6 and MS access .. i use Sony Erricsson T610. i want build database.. for the system i need use pic or i can directly send the msg to VB..

    can someone help me..

    i need your help..

    ---> i need use pic or not.
    ---> i want know how to send msg data to VB and MS Access.
    ---> want now how to build database and link to MS access.

    thank for help..

  21. #181
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    You may read the header of the SMS by using the appropriate AT command (either directly from your PC or by your PIC) and disgard the bytes you don't need and keep the rest up to the end (CR+LF).

    Another solution might be using the GPRS service if you have alot of data to send. May be more effective than SMS.

    Ioannis

  22. #182
    BruMans's Avatar
    BruMans Guest

    Default

    Quote Originally Posted by kasamiko
    I've been using a Nokia 6210 and has a working SMS Controller FULLY working with 4 output to drive a relay and 4 input for sensors..
    Also capable of sending SMS messages to the Master phone.

    Current usage:

    Anti carnapping for vehicles..will send SMS to master phone when any of the 4 sensors will be activated. the owner of the car will simply send simple command to turn off the vehicle engine, turn on the light and horn.

    Future plan:

    I will be adding a VOICE Module so the carnap vehicles can scream " I'M BEING CARNAPPED!" literally..

    Regards
    i'm interested on this. could you share your code here?

  23. #183
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default send variable data

    hello

    kasamiko
    if i want send variable data can i use your program..
    what part i must change..

    i want send 3 variable data

    Device 16F84A
    Declare Xtal = 4

    Start:
    LOW LED
    DelayMS 1000
    SerOut2 PORTB.1, 84,["AT+CMGS=",34,"MyNumber",34,13]
    DelayMS 1000
    SerOut2 PORTB.1, 84,["TEST",13]
    DelayMS 1000
    SerOut2 PORTB.1, 84,[26]
    DelayMS 3000
    GOTO Start

    thank

  24. #184
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default

    hello

    can someone tell me what the number mean in kasamiko program..

    number:

    13
    34
    26

    thank for help

  25. #185
    BruMans's Avatar
    BruMans Guest

    Default

    Quote Originally Posted by PoTeToJB
    hello

    can someone tell me what the number mean in kasamiko program..

    number:

    13
    34
    26

    thank for help
    13 - CR (Carriage Return)
    34 - "
    26 - SUB (substitute) or Ctrl-Z key

  26. #186
    chrisv2879's Avatar
    chrisv2879 Guest

    Default ´Problem with NOKIA 5120i

    Quote Originally Posted by kasamiko
    I've been using a Nokia 6210 and has a working SMS Controller FULLY working with 4 output to drive a relay and 4 input for sensors..
    Also capable of sending SMS messages to the Master phone.

    Current usage:

    Anti carnapping for vehicles..will send SMS to master phone when any of the 4 sensors will be activated. the owner of the car will simply send simple command to turn off the vehicle engine, turn on the light and horn.

    Future plan:

    I will be adding a VOICE Module so the carnap vehicles can scream " I'M BEING CARNAPPED!" literally..

    Regards
    Hi Kasamiko
    I´ve been trying with a 5120i TDMA phone but nothing!. The pinout of this cellphone says that the pin 4 is Analog ground, so i cant take 2,8V from there. Can u help me?.
    thanks

  27. #187
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161

    Default Vb6 Code For Rx Sms

    I am using SIMCOM GSM module with PIC to receive SMS successfully.

    Now I am interested in Rx SMS's on the PC via serial port using VB6.

    Any help

    regards
    Charudatt

  28. #188
    Join Date
    Feb 2006
    Location
    johor,Malaysia
    Posts
    57

    Default

    hello
    charudatt

    goto this link.
    i hope help u abit.
    http://www.planet-source-code.com ---> search for receive sms in vb6
    http://www.planet-source-code.com/vb...00615432979755

  29. #189
    rexilen's Avatar
    rexilen Guest

    Default nokia N30 GSM modem with pic16f873

    hello all...i need ur help about my project. i just finished read and study previous post but currently still hard to understand. well my project was simple..i using 3 capacitive sensor at 3 level..when it detect any diturbance let say when sensor 1 detect it will send input to pic16f873 and pic will send a text msg using nokia modem N30 to a specific phone number. i understand well about pdu how to encode letter.other sensor all do the same. i using max232 which connected at rx and tx pins.well my problem here i'm cant write specific program to send sms..for those want help..ur help is very appreciated.

  30. #190
    rexilen's Avatar
    rexilen Guest

    Default pic sms

    hello..nobdy reply..wel mybe i have ask bit by bit..


    DEFINE OSC 12 'this command used for what..let say i used 20MHz
    crystal with pic16f873 so should i set it to 20?

    someone pls xplain commad below define for what please..

    DEFINE HSER_TXSTA 20h
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_BAUD 9600
    DEFINE HSER_CLROERR 1

    GSMBUFFER VAR BYTE[16]
    Caller VAR BYTE[13]
    GSMTime VAR BYTE[17]

    HSerout ["AT+CMGF=1",13,10]'the number 13 and 10 stand for wat?

    HSerout ["AT+CMGS=",34,"+491232456789",34,",129",13,10]'also 129,13,10

    HSerout ["Test-Message",10,13] >> and also 10, 13?
    HSerout [26] '26?
    Last edited by rexilen; - 28th September 2006 at 17:26.

  31. #191
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    Have you read the manual? These are explained under the command Hserout and Hserin.

    Ioannis

  32. #192
    rexilen's Avatar
    rexilen Guest

    Default uuuh..

    manual?where can i got that..didnt find one of it,,huhu sorry

  33. #193
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    Did you buy the product and it did not included the manual?

    Or is it a copied product?

    Ioannis

  34. #194
    rexilen's Avatar
    rexilen Guest

    Default Emm

    which poduct? nokia N30 modem gsm or what..well i got this all from lab and it doesnt have manual. well about the AT command Nokia modem can got here
    http://www.nowsms.com/discus/message...V3_0-10600.pdf

    whcih manual actually i must refer? i kinda blur @.@

  35. #195
    Russell's Avatar
    Russell Guest

    Unhappy Please help

    i need a circuit diagram showing the connection between rs232 and pic16f84 for sending and receiving sms. ofcourse the phone is nokia.(AT supported). i am in desperate need of it.
    thanks.

  36. #196
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    Have you ever used MAX232? (do a search on the forum and you will find a lot)

    Have you an RS-232 cable for your Nokia Model?

    Have you read the relevant AT commands for controlling you phone first through Windows terminal so to get familiar with the commands?

    All these are necessary...

    Ioannis

  37. #197
    rexilen's Avatar
    rexilen Guest

    Unhappy Need Help

    i used pic16f873..nokia modem n30..lcd 2x16..3 sensors which give an input to pic +5V. this 3 sensor connected to portA from portA 0-2.rx and tx connected to max232 and used 4.5Mhz Crystal with 33pF capacitor. the LCD pins which are E connected to RB0, RS to RB3, DB4 to RB4, DB5 to RB5, DB6 to RB6, and DB7 to RB7.
    well..my project do like this..if sensor 1,2,and 3 detect it will give an input to pic and LCD will diplay a message and nokia modem will send sms text message to specific phone number. well below is my program and it didnt work..the LCD didnt display anything and the modem didnt send any message.someone please help which part is wrong..

    Pause 1000
    DEFINE LCD_DREG PORTB 'Define PIC port used for LCD data line
    DEFINE LCD_DBIT 4 'Define first pin of portC connected to LCD DB4
    DEFINE LCD_RESREG PORTB 'Define PIC port used for RS line of LCD
    DEFINE LCD_RSBIT 3 'Define PortC pin used for RS connection
    DEFINE LCD_EREG PORTB 'Define PIC prot used for E line of LCD
    DEFINE LCD_EBIT 0 'define the 3 bit communication
    DEFINE LCD_LINES 2 'Define using a 2 line LCD
    DEFINE LCD_COMMANDUS 2000 'define delay between sending LCD commands
    DEFINE LCD_DATAUS 50 'Define delay time between data sent

    DEFINE OSC 4

    DEFINE HSER_TXSTA 20h
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_BAUD 9600
    DEFINE HSER_CLROERR 1

    GSMBUFFER VAR BYTE[16]
    Caller VAR BYTE[13]
    GSMTime VAR BYTE[17]

    Init:

    trisa = %11111111 'set portA-RA1 input
    porta = %00000000 'set portA high to give an input sensor


    SEN1 :
    if portA.0 = 0 then SEN2 'If sensor 1 dont detect then jump to SEN2
    if portA.0 = 1 then LCD1 'Sensor at level1 detect then go to LCD 1
    goto SEN1

    SEN2 :
    if portA.1 = 0 then SEN3 'If sensor 2 dont detect then jump to SEN3
    if portA.1 = 1 then LCD2 'Sensor at level2 detect then go to LCD2
    goto SEN1

    SEN3 :
    if portA.2 = 0 then SEN1 'If sensor 3 dont detect then jump to SEN1
    if portA.2 = 1 then LCD3 'Sensor at level3 detect then go LCD3
    goto SEN1

    LCD1:

    LCDOut$fe,1 'Clear LCD
    LCDOut$fe,2 'Position cursor at home

    LCDOut "LEVEL 1 HAZARD"
    Pause 1000
    Goto SEND1

    lcd2:

    LCDOut$fe,1 'Clear LCD
    LCDOut$fe,2 'Position cursor at home

    LCDOut "lEVEL 2 HAZARD"
    Pause 1000
    Goto SEND2

    LCD3:
    LCDOut$fe,1 'Clear LCD
    LCDOut$fe,2 'Position cursor at home

    LCDoUT "lEVEL 3 HAZARD"
    Pause 1000
    Goto SEND3

    SEND1:
    'Send SMS Test-Message LEVEL 1
    HSerout ["ATZ",13,10]
    Pause 1000

    HSerout ["AT+CMGF=1",13,10] 'Set Text Mode
    Pause 500

    HSerout ["AT+CMGS=",34,"+01234567890",34,",129",13,10]
    Pause 500

    HSerout ["LEVEL 1 HAZARD",10,13]
    HSerout [26]
    Pause 1000
    goto SEN1

    SEND2:
    'Send SMS Test-Message LEVEL 2
    HSerout ["ATZ",13,10]
    Pause 1000

    HSerout ["AT+CMGF=1",13,10] 'Set Text Mode
    Pause 500

    HSerout ["AT+CMGS=",34,"+01234567890",34,",129",13,10]
    Pause 500

    HSerout ["LEVEL 2 HAZARD",10,13]
    HSerout [26]
    Pause 500
    goto SEN1

    SEND3:
    'Send SMS Test-Message LEVEL 3
    HSerout ["ATZ",13,10]
    Pause 1000

    HSerout ["AT+CMGF=1",13,10] 'Set Text Mode
    Pause 500

    HSerout ["AT+CMGS=",34,"+01234567890",34,",129",13,10]
    Pause 500

    HSerout ["LEVEL 3 HAZARD",10,13]
    HSerout [26]
    Pause 1000
    goto SEN1

    Please someone took a look which part is wrong..

  38. #198
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    For starters I would suggest to use crystal at 8MHz or better at 16MHz EXACTLY. Not 4.5 or other. May be 4MHz would work, but don't recommend it. Too slow. It is important to have correct frequency, otherwise the UART will be out of sync.

    Then use these Defines

    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h '9600 baud rate, BRGH=1
    DEFINE HSER_BAUD 9600
    DEFINE HSER_SPBRG 129
    DEFINE HSER_CLROERR 1

    DEFINE OSC 8 'or 16

    What are you trying to do here?

    this makes the A port input :trisa = %11111111 'set portA-RA1 input
    and this makes the port output (?): porta = %00000000 'set portA high to give an input sensor

    Then I see at your code that you send a ATZ to the mobile. Have you checked how long does it take for a mobile to RESET? I found that the Wavecom needs about 17 seconds for the GSM engine to be accessible. In the meantime the AT commands are working OK!!!

    First you have to check if the mobile is responding with its name like this:

    HSerout ["AT+CGMI",13] 'Get Manufacturer ID
    Hserin 1500,err1,[wait("WAV")] 'Wait for Wavecom Module <<<--- Put here the name of your modem!!!
    lcdout com,line1,"Module found!"

    One trick to succesfully realize that you can send SMS is to check if at the command AT+CMGF=1 the device responds with OK like this:

    HSerout ["AT+CMGF=1",13] 'Text SMS mode
    HSerin 5000,error,[wait("OK")]

    The devices have different respond times for different commands.

    You have to check with a terminal programm like Hyperterminal sending AT+ commands. Also always wait for a response from the mobile. Either OK or another character.

    Ioannis

  39. #199
    Russell's Avatar
    Russell Guest

    Unhappy RS232 and pic16f84

    i am doing a project on gps and mobile phone.
    using rs232 and dku-5 cable i can successfully receive and send sms which contain gps position.(in bs2)
    but when i am using pic16f84a only to receive and send sms it's not working.
    i think the picbasic pro code is ok.
    it must be the circuit which is creating the problem.
    please provide me the circuit if anyone can.
    regards.

  40. #200
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,795

    Default

    Why not YOU provide the circuit you are using to see if there is a problem??

    Ioannis

Similar Threads

  1. Serial VB 2005 pic 16f877a problems
    By Snap in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 8th July 2013, 01:52
  2. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 15:46
  3. problem with the GSM controller
    By Dariolo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th May 2009, 21:33
  4. Automatic VB6 to pic serial connection
    By arniepj in forum Code Examples
    Replies: 13
    Last Post: - 10th January 2008, 08:57
  5. Pic to GSM Phone connection
    By samertop in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 14th July 2005, 14:40

Members who have read this thread : 1

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