Esato

Forum > Sony Ericsson / Sony > Software, Firmware and Drivers > Any Programmers here?

Author Any Programmers here?
runkarn
T610
Joined: May 27, 2003
Posts: 62
PM
Posted: 2004-01-03 07:06
Reply with quoteEdit/Delete This PostPrint this post
I developed an application where (to start with) im sending AT commands via serial connection. I THINK i connect to the T610 succesfully but it doesnt respond to any AT commands.... Does anybody know in which format im supposed to send the AT ? (ordinary String, Bytes, Char???)

yes it works with hyperterminal..

Thank you.

(btw once I got the number 64 and 85 responded. whats that??)
masseur
P910
Joined: Jan 03, 2003
Posts: > 500
From: Sydney, London
PM
Posted: 2004-01-03 07:22
Reply with quoteEdit/Delete This PostPrint this post
you should have a chat with robert_o who is developing something similar in this thread by the sounds of it
runkarn
T610
Joined: May 27, 2003
Posts: 62
PM
Posted: 2004-01-03 14:19
Reply with quoteEdit/Delete This PostPrint this post
Quote:

On 2004-01-03 07:22:39, masseur wrote:
you should have a chat with robert_o who is developing something similar in this thread by the sounds of it




Thx, I will!
simpsons
M600 white
Joined: Jan 30, 2003
Posts: 273
PM
Posted: 2004-01-03 15:50
Reply with quoteEdit/Delete This PostPrint this post
The Modem in T610 should respond with OK when you send the chars AT
You need to create as serial connection say 9600 8 N 1 etc. and send out the chars AT to the serial port and then read back should be OK. If this works move on from there.

If nothing comes back, check port no, speed etc.

[ This Message was edited by: simpsons on 2004-01-03 14:51 ]
runkarn
T610
Joined: May 27, 2003
Posts: 62
PM
Posted: 2004-01-03 15:59
Reply with quoteEdit/Delete This PostPrint this post
Quote:

On 2004-01-03 15:50:07, simpsons wrote:
The Modem in T610 should respond with OK when you send the chars AT
You need to create as serial connection say 9600 8 N 1 etc. and send out the chars AT to the serial port and then read back should be OK. If this works move on from there.

If nothing comes back, check port no, speed etc.

[ This Message was edited by: simpsons on 2004-01-03 14:51 ]



Thank you for your help but you didnt say anything useful. What you said, I already know. I said it works in hyperterminal and I know what it responds when sending "AT". But in WHICH format should I send the command???
simpsons
M600 white
Joined: Jan 30, 2003
Posts: 273
PM
Posted: 2004-01-03 16:04
Reply with quoteEdit/Delete This PostPrint this post
Serial comms is based on "chars" being sent back and forth. Eg. (8 bits = 1 char etc.) It is posible to send strings depending on what level language you are writing in.
At a low level the hardware need 8bits of data that is serialised depending on the 8 N 1 format set etc.

Not sure I understand what you want to know / Can you provide more inform on language or functions you are using ?

[ This Message was edited by: simpsons on 2004-01-03 15:05 ]
runkarn
T610
Joined: May 27, 2003
Posts: 62
PM
Posted: 2004-01-03 16:43
Reply with quoteEdit/Delete This PostPrint this post
hello again!

Ok, so i'll send char[]? Im using C# with a third party serial comm. Thinking of switching to MSComm though cuz I cant make it work now.

Or i'll try JAVA with its javax.comm classes

Its a simple method, mySerialPort.write("AT"); -->nothing happends, I just get a number back (64)..
markgamber
T610
Joined: Apr 16, 2003
Posts: 73
PM
Posted: 2004-01-03 17:30
Reply with quoteEdit/Delete This PostPrint this post
You send a string of 8 bit chars, yes, and end each with an \r\n or at least \n. You should then get back either an OK, ERROR or if it's a status request, the results of that request plus OK. It works just like any other modem.
simpsons
M600 white
Joined: Jan 30, 2003
Posts: 273
PM
Posted: 2004-01-03 18:09
Reply with quoteEdit/Delete This PostPrint this post
OK... Do remember that the function write to serial is probally just that WRITE. (it may return an error code indicating sucess or not etc.)
You must have some form of loop running to read back chars from the UART as it may not read back additonal chars untill you read the char from the UART, hencing indicating that it can take another char from the 610 .
This may be the problem?
runkarn
T610
Joined: May 27, 2003
Posts: 62
PM
Posted: 2004-01-04 19:11
Reply with quoteEdit/Delete This PostPrint this post
thank you all for your help. i still didn't manage to send a d*mn thing to it! lol
I wish someone had a source code for the connection to a mobile... in any language..
simpsons
M600 white
Joined: Jan 30, 2003
Posts: 273
PM
Posted: 2004-01-04 21:01
Reply with quoteEdit/Delete This PostPrint this post
What language do you want ?

How about if I knocked together a serial comms application in C (running under win32 etc.) any good for you ?
Do you have any compilers there ?
Are you trying to do a specific function/application that I could write for you ?
Have you tried VBA or Visual basic (Windows etc.) ? Lots of examples available if required.


runkarn
T610
Joined: May 27, 2003
Posts: 62
PM
Posted: 2004-01-04 22:13
Reply with quoteEdit/Delete This PostPrint this post
woooohoooooo! OK it works now! Man im so pissed...
What was wrong?? Well, I tell you... All the time the fault was not mine, it was that 3rd party serial comm module that didnt work right! *arrrrgghhh*. I tried with JAVA COMM and it worked straight away!

Anyway, thank you for your help!

[ This Message was edited by: runkarn on 2004-01-04 21:36 ]
Access the forum with a mobile phone via esato.mobi