Discussion in "Project Doubts" started by    anilmm    Mar 24, 2007.
Sat Mar 24 2007, 11:59 am
#1
hello sir,
i want to know how my command from telnet to haaserver(ex-bulb,stat,etc...) is converted to binary values at the serial port so that microcontroller can understand the binaries.
is haserver or telnet doing the task?
plz explain me completetly.
regards
Sun Mar 25 2007, 01:12 am
#2
well its like this..
when you send any data via internet, then it is sent in packets. so whatever you send or receive from telnet it is sent in packets. (for information on how data is packed you can see RFC document or can consult any book of networking protocol and see Telnet protocol and telnet packet format)
So HAserver decodes these packets and get the sent data.. e.g. if you type "bulb" this data is packed in telnet packet format and when it is received, HA Server strip off the headers and take the string or data "bulb" and send it to the serial post as a string.
this string is received by microcontroller and processed (processing is done in strfunc.c file) and then appropriate function is performed. In the same way reply.. from uC is sent as a string and this sting is packed in telnet packet and sent via TCP/IP and on the remote PC the telnet software automatically strip the headers and display the sent data.

Hope this will help you understand how things work. I recommend you to read book on telnet protocol and TCP/IP protocol. also study Ethernet etc. will be helpful to you.
Sun Mar 25 2007, 03:43 am
#3
thanks sir,that was quite helpful.
i hv completed the circuit according to your connection but some problems are coming such as(random ascii characters are coming back to telnet).i am sending you a screen shot of it.plz help me as it is the last stage of the project.


also what should be shown at lcd after any valid command is sent.if invalid then what happens
After we type command at the client side what will appear. Let say we type command " stat " then enter. I mean the reaponse after we enter the stat command. what display the telnet prompt should be displaying. what is the hardware response. etc;
also is the ckt. wrong in the interfacing of MAX232 as in yr ckt (plz check the attachment provided for this purpose i.e. the pin 6 connected with ic ????)
.


note:i hv connected 2 systems through LAN using telnet.
is there any problem due to this.if you could provide screenshots of the working lcd ,telnet response then ever grateful to you.



[ Edited Sun Mar 25 2007, 06:01 pm ]
Sun Mar 25 2007, 05:55 pm
#4
first thing is... No duplicate posts.. ok!?! !n
and the stuff you are getting on the telnet window is not random characters rather, its the inverted characters.
i think the Dallas 275 is inverting the characters.. or if you are using MAX232 then at pin 6 the cap should be inverted. that seems to be the problem
and one last thing.. Please use www.imageshack.us to post your images, don't use site webspace..
see posting rules in the site rule forum. only file <10Kb can be uploaded.
all other files must go offsite.. (www.rapidshare.com etc) please dont mind coz i am less on webspace now. and to keep the site running i must make strict rules.
Tue Mar 27 2007, 07:22 pm
#5
sir,
even after inverting the output is not coming.
i want to know what is to be displayed in telnet window after a command is typed(gv example oe screenshot).
also sir plz tell how to send a message from telnet to lcd(gv example)
can we recompile your given files to generate hex file using keil software or sdcc and match your hex file(to check any inadvertent error)?

HOW DOES IT GET MESSAGE BACK FROM MICROCONTROLLER TO THE CLIENT SIDE


[ Edited Tue Mar 27 2007, 07:24 pm ]
Wed Mar 28 2007, 03:41 pm
#6
try using MAX232 and make the connections as shown in the circuit diagram given in the files you downloaded.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Williamjaf
Tue Apr 16 2024, 12:25 pm
best_yyPa
Tue Apr 16 2024, 09:42 am
ErnestoExpop
Tue Apr 16 2024, 02:57 am
Jamesclepe
Mon Apr 15 2024, 11:10 am
Aliciaelora
Mon Apr 15 2024, 07:59 am
btaletvpcu
Mon Apr 15 2024, 04:36 am
UbvpwcTib
Mon Apr 15 2024, 03:13 am
AmyJow
Sun Apr 14 2024, 11:54 pm