Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 08, 2016, 01:05:04 01:05


Login with username, password and session length


Pages: [1]
Print
Author Topic: Microcode Serial Communicator Problem!  (Read 4214 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, 06:14:59 18: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, 08:23:01 20: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, 12:58:35 12: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
V.I.P
Active Member
*****
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #2 on: March 10, 2010, 10:51:37 22: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, 05:18:41 05: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
V.I.P
Active Member
*****
Offline Offline

Posts: 139

Thank You
-Given: 66
-Receive: 117


falconbd.com


WWW
« Reply #4 on: March 13, 2010, 08:20:42 08: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
**
 Muted
Offline Offline

Posts: 38

Thank You
-Given: 16
-Receive: 15


« Reply #5 on: April 04, 2010, 04:00:01 16: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, 04:06:38 16:06 by SpaleKG » Logged
oldvan
V.I.P
Senior Member
*****
Offline Offline

Posts: 375

Thank You
-Given: 152
-Receive: 106


If the van is a Rockin'...


WWW
« Reply #6 on: April 04, 2010, 04:43:50 16: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
**
 Muted
Offline Offline

Posts: 38

Thank You
-Given: 16
-Receive: 15


« Reply #7 on: April 05, 2010, 02:15:32 14: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, 03:11:42 15: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, 08:06:22 20: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