Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 16, 2024, 07:24:04 19:24


Login with username, password and session length


Pages: [1]
Print
Author Topic: Microcode Serial Communicator Problem!  (Read 7408 times)
0 Members and 1 Guest are viewing this topic.
engr.humair
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 5
-Receive: 2


« on: March 09, 2010, 05:14:59 17:14 »

Dear:

I am trying to interface NokiaGSM 6100 cell with PIC16F877A @ 9600bps.

Problem: Nokia6100 responds OK on AT in Hyperterminal but is not giving any response in Microcode Serial Communicator. Serial Communicator COM, Baudrate,Parity, Bytesize & Stop bits settings are same of that to Hyperterminal Program.

Is there any other settings i need to do? Need ur expert advise?

Thanks in advance.
« Last Edit: March 09, 2010, 07:23:01 19:23 by engr.humair » Logged
king
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 2
-Receive: 21


Jack of All But Master of One


« Reply #1 on: March 10, 2010, 11:58:35 11:58 »

If you have done the same settings on serial comunicator then it should work, but i think the difference is that in serial comunicator you have to place Enter Key to transmit data while in hyperterminal data transmits without placing enter key so check your serial communicator again by unchecking "Transmit  on Carriage return" option.Also give us your feedback
Logged
falcon _bd
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #2 on: March 10, 2010, 09:51:37 21:51 »


Check the flow control settings
Logged

engr.humair
Newbie
*
Offline Offline

Posts: 29

Thank You
-Given: 5
-Receive: 2


« Reply #3 on: March 11, 2010, 04:18:41 04:18 »

Thanks falcon_bd for your response.

Can you please guide me how i can change flow control settings in Microcode Serial Communicator. I am unable to locate it Sad

Waiting for your reply.

Thanks in advance
Logged
falcon _bd
Active Member
***
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #4 on: March 13, 2010, 07:20:42 07:20 »


I think there is no option to settings the flow control. You can used the DOCKLIGHT as serial communicator.
Search in sonsivri for  docklight.
Logged

SpaleKG
Junior Member
**
Offline Offline

Posts: 36

Thank You
-Given: 19
-Receive: 18


« Reply #5 on: April 04, 2010, 03:00:01 15:00 »

I think that you need to use nokia F-bus in your PIC device too. So you can find how to make it with rs232 too.
F-bus uses 2 wires for communication. Otherwise if you are use same HW for communication with your nokia (PC to nokia and PIC to nokia)
then you need to be sure that you sending CL/RF to nokia after AT commands. CL/RF is $20 ascii code.
« Last Edit: April 04, 2010, 03:06:38 15:06 by SpaleKG » Logged
oldvan
Senior Member
****
Offline Offline

Posts: 372

Thank You
-Given: 154
-Receive: 107


If the van is a Rockin'...


WWW
« Reply #6 on: April 04, 2010, 03:43:50 15:43 »

... you need to be sure that you sending CL/RF to nokia after AT commands. CL/RF is $20 ascii code.

ASCII $20 is a space.

Is this "CL/RF" you refer to perhaps correctly known as CR/LF? 
Carriage Return plus Line Feed.  ASCII characters $0D and $0A  ?

Here's an ASCII table in case you need one.
http://www.cs.utk.edu/~pham/ascii_table.jpg

Logged

Give a man a fish and you feed him for a day.
Teach a man to fish and he will sit around in a boat drinking beer all day.
SpaleKG
Junior Member
**
Offline Offline

Posts: 36

Thank You
-Given: 19
-Receive: 18


« Reply #7 on: April 05, 2010, 01:15:32 13:15 »

ASCII $20 is a space.

Is this "CL/RF" you refer to perhaps correctly known as CR/LF?  
Carriage Return plus Line Feed.  ASCII characters $0D and $0A  ?

Here's an ASCII table in case you need one.
http://www.cs.utk.edu/~pham/ascii_table.jpg



Yes it is, I mean CR/LF (sorry for typo because I was sleepy). Also about codes, you are right it is $0D $0A
BTW I will find PHP solution which I made few years ago for using to communicate with Benq GSM/GPRS module via RS232.
I discovered similar problems about end lines, so I will find code today.

Posted on: April 05, 2010, 01:36:39 13:36 - Automerged

Posted on: April 05, 2010, 02:13:29 14:13 - Automerged

]Ok, I find it. In my situation I communicate with device via telnet.

Code:
<?php
require_once "PHPBenq.php";
//ob_implicit_flush();
$comm = new PHPBenq();

$result $comm->Connect();

 if (
$result == 0) {
$comm->DoCommand('module1\n',$result);
// NOTE: $result may contain newlines
echo $result;
//sleep(5);
$comm->DoCommand('ATE0'.chr(0x13),$result); // NOTE 1
echo $result;
//$test = array();
$comm->DoCommand1('AT+CMGL=4'.chr(0x13),$result);   // NOTE 1
$ress explode("\n",$result);

print_r($ress);
echo 
$result;
sleep(3);
$comm->DoCommand('07917373499910F101000B917373096000F800100B7378985D0699D9E1391A'.chr(0x1A).chr(0x1B),$result); // NOTE 2
sleep(10);
echo 
$result;
$comm->DoCommand('^X'$result);
echo 
$result;
sleep(3);
$comm->DoCommand('logout'$result);
echo 
$result;

// say Disconnect(0); to break the connection without explicitly logging out
$comm->Disconnect();
}
?>


Explain notes from code:

NOTE 1 - for ENTER I am sending $13 to device
NOTE 2 - in some cases when device expecting DATA it need to receive SUBSTITUTE ESCAPE  ($1A $1B) as end of data. In my case after AT commands which says to device that next data will be SMS message, then device need to know when you are finished with SMS message.

So you can try to send $13 (ENTER) at the end of line, or CR/LF (mentioned before) or escape sequence ($1A $1B).
Let me know in what case it works Smiley

Regards.
« Last Edit: January 09, 2012, 02:11:42 14:11 by SpaleKG » Logged
king
Junior Member
**
Offline Offline

Posts: 84

Thank You
-Given: 2
-Receive: 21


Jack of All But Master of One


« Reply #8 on: July 13, 2010, 07:06:22 19:06 »

Dear Humair

From where you buy 6100 cable also tell me either it is Serial cable or USB cable and if you have any kind of schematic to interface it with Computer or with PIC-Micro-controller then please provide us
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright © 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC