Hello there!
Anybody knows how to restart a nokia 6210 thru AT COMMAND or PDU format. Logo Manager has a provision for that.
Thanks in advance
Brenda
Hello there!
Anybody knows how to restart a nokia 6210 thru AT COMMAND or PDU format. Logo Manager has a provision for that.
Thanks in advance
Brenda
gonna get a second hand 6210 to have a play at this
do i need to use a max232 or will i be able to hook straight up to a mobile and just use the serin and serout commands?
Nope. Nokia uses the Fbus. You must bye a RS232-to-Fbus converter, or make your own.
See this link for additional info:
http://www.panuworld.net/nuukiaworld...les/basics.htm
Regards
Boyko
hi, got a nokia 6210 and a dlr-3p cable
tried it with hyperterminal with the pc and works fine.
i tried connecting pins 2,3 and 5 (rx,tx and gnd) to the pic and could not get it to work, i just tried connecting it to the pc with just the 3 pins connected and it would not work?
any ideas? i thought i only needed to connect the 3 wires?
It is correct, to communicate with the phone you only need RX, TX and GND.
But the Data cable has some embedded logic that is powered from the DB9 connector DTR and/or RTS pin.
regards
Ralph
so if i connect the dtr pin to 5v it should work?
Try it with both RTS and DTR on the data cable connected to +5V.
If this doesn't work you may need a higher voltage (up to +12V)
regards
Ralph
not having much luck with this, have u dont this with a 6210 and dlr-3p cable yourself, or has anyone else who can let me know what they did?
thanks, Stu
I can't tell wether the "Taiwan-Cable" I have used was a "DLR-3P" type or something else.
But I think it does not really matter as you are saying your cable works with "HyperTerm".
Do you have a DB9 "Breakout-Box" handy?
If so:
connect your DLR-3P cable to your PC across "Breakout-Box"
and find out which pins are really needed by checking communication with "Hyperterm"
Once you have identified the Pins check the Voltage Level at the "Supply" pins (DTR and/or RTS) it is most likely something between +10 an +12 V.
Connect RX, TX and GND to your PIC
and supply the identified "supply"-pins with the correct voltage.
Assuming your PIC-code is ok, It should work.
If it doesn't work, try to communicate with your PIC using "Hyperterm"
and debug the PIC code.
Questions:
What type of PIC are ypu using?
Are you using the HW USART and HSERIN/HSEROUT?
Do you have a "MAX232" type of level shifter connected to the PIC?
What is the PICs clock speed?
(9600 Baud won't work with a 4MHz clock.)
regards
Ralph
what dou you all study to know all that?
do you spend all day long in electronics and computer??
doesnt your girlfriend bother you?? opss... do you have one??
what is your life like??
you all seem to be genious!!
Hi everyone!
Did somebody try to connect Siemens mobile to PIC? I have S65 with no result
I guess, Siemens needs more then 3 wire connection.
@Rufinus
Check here maybe you'll find the solution
http://pinouts.ru/data/siemens_c55_pinout.shtml
Thanx, Lotondo.
But i do have the pinout of S65 and even service manual of C55/S55 (they are similar to S65).
Perhaps i should give some more detail of my problem.
I started with 16F84 and serout2 commands. Everything according to this thread.
Pic is connected to the phone through the MAX232 and original data cable, which came with tthe phone. I managed to connect pic and pc with 9600 baud and lower in bidirectional mode. No problem with that. Phone and pc communicate very good as well. Tried all kinds of commands, even sniffed on com2 port to see how original Siemens software is sending sms from pc.
Than i made an adapter, in order to determine how many wires are essential for communication between pc and phone using original cable. Result: 3 wires if enough for communication (did not try GPRS), AT commands are working from hyperterm.
Now, if i connect the same 3 wires to the pic, phone does nothing!!
This is driving me crazy for 2 days already
From this all i concluded, that problem is in Siemens original cable (?). Dont know what the problem, unfortunately. Gonna keep on trying.
Also desided to shift to pic16f870. Has more capabilities. Tried to send
Hserout ["ATD phonenumberhere", 13, 10]
at 9600 baud and received it on pc without problem. Phone still does nothing.
Should name it Enigma instead of Siemens![]()
i tried connecting the dlr3p to the pc with all the cables needed, i then tried connection the rx, tx and gnd to the pic leaving the others connected to the pc.
i am just trying to send
Serout portb.5,n9600,["atd 453",13,10]
this sends fine to hyperterminal but noting on the phone
if i send this from hyperterminal the phone screen changes to calling 453 - so i know it is working
i am using a 16f877a at 4hz, it works at 9600 with the pc? i have also tried 2400
the pc works at 2400 with the 6210
i dont seem to be getting anywhere![]()
Hi
I designed a datacable for Ericsson T28
I used a max3232 in this cable
I connect the com of the computer to Ericsson though this cable
and the result on the Hyper terminal was : the program of the mobile show on the hyper terminal and this program still forever .
so when i try to send At commad the mobile don't response and still send the data of the program.
are there anyone can help me and say to me how can i send the command from hyper terminal to Ericsson by this cable.
please i want help as soon as posible.
my email: [email protected]
like in an earlier post I seem to get the code to send the the GM862, the person might have used something different, and it is visible through hyperterm, but the phone does not read the code as commands...
I am using a pic 16f452 and a gm862
common ground
tx and rx connect
I am using nothing inbetween the two... do I need an hex inverter? or a max232?
and the code is:
DEFINE OSC 20
DEFINE HSER_TXSTA 20h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 9600
DEFINE HSER_CLROERR 1
HSerout ["ATZ",13,10]
Pause 1000
HSerout ["AT+CGATT=1",13,10]
Pause 500
You will never get this to work if you don't take the time to read any datasheet.... do I need an hex inverter? or a max232?
regards
Ralph
_______________________________________________
There are only 10 types of people:
Those who understand binary, and those who don't ...
_______________________________________________
don't quite understand your comment.
thanks for your input.
Hi
I am very new to PIC's so please excuse some of the comments that I have added to the following code.
I have put this together using data that was available earlier in this post. I have got the SMS sending working great whenever I push a button but I am also wanting an LED to be switched on when the GSM modem receives and SMS containing "SWITCH"
I think I have got everything that I require within the program but I am wondering what commands I should use in order to read the GSMBuffer then if it is true then switch on the LED.
I have added the line just to give an idea of what I'm trying to do:
IF GSMBUFFER = "SWITCH" THEN LED = 1
Here is the code:
' Setup PIC tx and rx serial port
DEFINE OSC 8
DEFINE HSER_TXSTA 20h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 9600
DEFINE HSER_CLROERR 1
'Setup the names that will be used throughout the program for the led and switch
PushButton var PORTB.0 ' Setup the name PushButton to mean PortB input 0
LED VAR PORTB.1 ' Setup the name LED to mean PortB output 1
' SMS receive buffer setup:
GSMBUFFER VAR BYTE[16] '16 is used to tell buffer to store max of 16 characters
Caller VAR BYTE[13] '13 is used to tell buffer to store max of 16 characters
GSMTime VAR BYTE[17] '17 is used to tell buffer to store max of 16 characters
' Set all PortB i/o 1 to be an output and all other i/o as inputs
TRISB = %11111101
Main:
IF PushButton = 0 THEN SMS 'If button is pressed then run the SMS routine below
goto main ' however if the button is not pushed then just go back to the Main
' routine to wait for the button to be pressed
SMS: ' this is the SMS commands routine in order to send an SMS
HSEROUT ["AT" ,13,10] ' send AT to modem followed by a CR and line feed
HSERIN 5000, SMS, [WAIT("OK")] ' now wait for 5secs until OK is received however
' if it is not then goto the SMS routine again
HSEROUT ["AT+CMGF=1" ,13,10]
HSERIN 5000, SMS, [WAIT("OK")]
HSEROUT ["AT+CMGS=+447977578999"]
HSEROUT [13,10]
HSERIN 5000, SMS, [WAIT(">")]
HSEROUT ["BUTTON HAS BEEN PRESSED!"]
HSEROUT [26] ' this is ASCII for Ctrl+Z of which completes SMS sending
HSERIN 15000, SMS, [WAIT("+CMG")] ' then PIC should receive +CMG from modem
HSEROUT [10] 'ascii code for a line feed
goto main
READSMS: 'Use this routine to read first 16 characters of new messages and then
' store them in the GSMBUFFER variable above then you are able to add a line at
' the end in order for an led to be switched on whenever the modem receives the
' correct SMS command such as LED ON or SWITCH etc
HSEROUT ["AT+CMGF=1",13,10] 'Instruct modem to use text mode
HSerout ["AT+CMGL",13,10] 'List new Messages
' Below I Read Caller ID, time and 16 CHARs of Message
' The timeout value in the HSERIN statement is important, it takes some time
' before the phone replies to the AT+CMGL command
' skip works like this: skip 4 (skips 4 characters) - this is a sample of the
' message that would be received after the AT+CMGL command is sent:
' +CMGL: 2,"REC UNREAD","+447977578999" Test
' Please note that I can't seem to receive the time in the reply as in this
' example: (of which the line of code is written for below - so maybe I should
' edit the line of code below in order to miss it - also remember to update
' GSMTime variable above i.e. remove it if your going to adit the line below)
' +CMGR: "REC READ","+xx1234567890",,"05/05/26,17:19:23+00" GOOD
' Loop could be setup as a routine such as:
' Loop:
' List new Messages again - as above (think about it)
' HSerout ["AT+CMGL",13,10]
HSerin 5000,loop,[wait("UNREAD"),skip 3,STR Caller\13,skip 4,STR GSMTime\17,skip 6, STR GSMBUFFER\16\13]
' Basically in the above line, \13 - stores 13 characters and \17 - stores 17 characters etc into
' each of the buffers i.e. Caller & GSMTime etc etc
HSerout ["AT+CMGD=1;+CMGD=2",13,10] 'Intruct modem to delete SMS's from location
' 1 & 2 as this is where any new messages will be stored, so its a good idea to
' delete them after we have processed the SMS command above - please note that
' it would be a good idea to wait for an OK after this command but we can add
' this at a later time
' --- Put your code to output the result here i.e. IF gsmbuffer = (your sms command) then goto
' subroutine etc
IF GSMBUFFER = "SWITCH" THEN LED = 1
Thank you for your time.
Kind Regards,
Royce
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
More input would be usefull, like some code, phone type, connection (serial or what?).
Ioannis
Just another question that pops up:Originally posted by stu746
i tried connecting the dlr3p to the pc with all the cables needed, i then tried connection the rx, tx and gnd to the pic leaving the others connected to the pc.
i am just trying to send
Serout portb.5,n9600,["atd 453",13,10]
this sends fine to hyperterminal but noting on the phone
if i send this from hyperterminal the phone screen changes to calling 453 - so i know it is working
i am using a 16f877a at 4hz, it works at 9600 with the pc? i have also tried 2400
the pc works at 2400 with the 6210
i dont seem to be getting anywhere![]()
Assuming you have DB9 connectors at both ends (PIC and PC)
are you using a "Null-Modem" when connecting the the Phone to the PIC?
regards
Ralph
have now changed to a 20mhz xtal and i am using a max232 with hserout, with just connecting rx,tx and gnd i am getting the phone to echo back characters!?
but when i tried hserout["atd 453",13,10]
it does nothing
i figured out with the pc connected to the phone it also needs dtr and rts connected together and to one of the pins that supplies 10v
i tried connecting these to the spare output on the max232 and could not even get it to echo stuff back : (
when i connect the pic to the pc with the max232 it works fine and sends the atd 453 command at 9600
i am not using a null modem cable
although i did measure the voltage from the max232 and it was only 7.6v? rather than 10v? i tried changing the caps with no effect
can anyone please help!? : )
stu,
could you post your code and schematic?
without it all we can do is guessing.
regatds
Ralph
here is the code, it is a bit of a mess, the main thing i want it to do is call the number with the first hersout, then i can see on the phone that it is working
the hardware is just a basic max232 setup with a 16f877 at 20hz.
my cable is an original nokia one, i am thinking of gettin a cheap copy to see if it any better, it might not be so fussy about what voltage it requires?
thanks for try to help, Stu
DEFINE OSC 20
DEFINE HSER_TXSTA 20h
DEFINE HSER_RCSTA 90h
DEFINE HSER_BAUD 9600
DEFINE HSER_CLROERR 1
adCON1 = 7
Include "modedefs.bas" ' Include serial modes
B0 var byte
pause 2000
hserout["atd 453",13,10]
loop:
hserout["at",13,10]
hSerin [b0]
pause 3000
Lcdout b0
Goto loop
Have you tried this code with the PIC connected to your PC running Hyperterm at 9600 Baud?
You should see: atd 453
in the terminal window when you start the PIC.
Once you have got this working you can be sure your Hardware is ok.
You are saying you have already tested the phone and datacable with Hyperterm and it's working.
Are you sure you are connecting
for PIC to PC:
TX from the MAX232 to RX on the PC
RX from the MAX232 to TX on the PC
for PIC to Phone:
TX from the MAX232 to RX on the DataCable
RX from the MAX232 to TX on the DataCable
Before trying to communicate with the phone try to establish a bidirectional communication between PIC and PC.
as long as you haven't got this working there is something wrong in general,
and it doesen't make much sense to connect the PIC to the phone.
regards
Ralph
yes works fine with hyperterminal
stu746
check PM
hi again
finally got this working with the circuit from here
http://www.atrox.at/datacable/dlr3/index.html
i omitted the max232 and just wired the rx and tx to the resistors
the following works great
serout2 portb.5, 396,["atz",cr]
serout2 portb.5, 396,["atd +447890563875;",cr]
but when trying to get a response from the pic with the following it just hangs
serout2 portb.5, 396,["atz",cr]
serin2 portb.4,396,[wait("ok")]
so i tried
serout2 portb.5, 396,["a"]
serin2 portb.4, 396,[b0]
Lcdout b0
and it did echo back the a, so i do have 2 way comms
anyone have any idea how best to get an ok back from the phone?
thanks, Stu
Hello, I am new to this field...
I want the modified schematic you said that worked in the following quoted message. If you can send it to me, it will be a great help..
thanking you
aruran
Originally Posted by stu746
I suppose that serin is slow in response and your phone answers too early to wait for the 'ok'.
Solutions:
1. Use Hserin that has also 2 bytes buffer, or
2. Use numeric response from the phone (ATV0). That way you only have to wait for the 0 but for OK or 4 for error etc.
I 'd use Hserin though.
Ioannis
hi Everybody
is it possible to send an AT command through Hyperterminal using DAU-9P data cable and nokia 5110 or 3310 or 7110
Having gone thru the entire thread , I am now planning to buy a Nokia Which is AT command enabled and experiment with it.
Any site or info which shows me which of the phones are AT Command enabled.
Thank you.
Last edited by charudatt; - 11th February 2005 at 04:22.
I used a nokia 6210 and worked great once i got it workingcould not get it to work with the nokia dlr3p cable but i made my own in the end and it worked fine
i got it to send sms messages but it is alot cheaper to just have the phone make a call and hang up, unless there is a message you need to send or you get free sms.
Originally posted by stu746
I used a nokia 6210 and worked great once i got it workingcould not get it to work with the nokia dlr3p cable but i made my own in the end and it worked fine
i got it to send sms messages but it is alot cheaper to just have the phone make a call and hang up, unless there is a message you need to send or you get free sms.
hi the dlr3p is it used with the pic16f84a or just only max232. see in the web someone make a dlr3p but can't download the hex file
could you share your schematic of the dlr3p
I used the schematic from this site
http://www.atrox.at/datacable/dlr3/index.html
but i did not need the max232 to connect to a pic
yes i know that website but they are not giving the hex file source code for the pic16f84a
how do you get the hex file? copy and paste?
just right click - save as
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?
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 >>>
Bookmarks