Discussion in "Project Doubts" started by    asim amitav    Mar 27, 2007.
Tue Mar 27 2007, 08:20 pm
#1
Hello sir ,
I am telling u in u plz go through it and clarify the doubts … what we have done so far and where we are facing problem …
We use two pc one is server and another client connected through LAN using telnet .will we connect with lan or through anyother ??? the server pc is connected with the mc through the serial port … we have done all the configuration as in circuit .. 1.capacitor at pin 6 of max 232 is connected as it in circuit in ur website is it ok ??or we make it reverse all other components are connected as it is and first switching on the lcd is also showing “ READ MESSAGE” as u have written in HA.c file ..
2 . then we are first connecting to the server and it is connecting successfully .. now when we are giving command from client it is received at server and showing the command .. but at the mc end it must send an acknowledgement as u have written in cmd.c file
Ex. lets the case of “?” help() will be called .. in help() it is
void help()
{
bit_8 code *help_str[]={"\n\rHome Automation Server Help Menu\n\r",
"\n\rPlease Use the following commands:",
"\n\r-----------------------------------",
"\n\rCommand Description\n\r",
"\n\r\"stat\" - To get tdisplay help menu.\n\r\n\r"};
transmit(help_str[0]);
transmit(help_str[1]);
);
transmit(help_str[9]);
transmit("\n\rPress ENTER to Continue...\n\r");
while(!ri);
ri=0;
} ( sample code ... )
The strings which are written in help_str array should transmit from the mc to server and it is received by server and send to client .. the above message (“Home Automation Server Help Menu” etc. ) is not displayed at the server side … so it is not showing at client ..
3. In “bulb” command it should ask for which bulb .. ?? but it is not asking only it is being received at the sever .. . to make the bulb1 on / off we will type ( which command can u tell about the bulb command .. if we write bulb once then it will be on and if we write bulb again then it will be off .. is that the case I don’t think show .. I think after typing the “ bulb “ command it will show futher message to press 1 to on or off like that) plz clarify it ..
4. in HAarg. File u have initialize the value .. ex. sbit tube1 = 0x90; is this the defult value or u take it like this as “0x90” ..
We are thinking is there any problem with the serialport setting the baudrate it is mismatching or what for which it is not showing anything ..
Can u plz go through the details and clarify the doubts clearly where we have problem .. … …
Wed Mar 28 2007, 06:27 pm
#2
I will put a demo of working of home automation soon, everything is working, please check your circuit carefully.

Regarding the doubt #4 sbit tube = 0x90 is special bit, and we are giving a label to the address 0x90 as tube1, its same like defining a variable at a particular address.

#3 when you type bulb or tube, it will ask you which bulb you want to control, and then after you enter the bulb number (1,2,3) it will ask you if you want to switch it on or off...!

#2 i did not understood, what you are trying to say, if you are sending something it will surely display.
Thu Mar 29 2007, 08:13 pm
#3
hello sir ,
i am trying to say .. i am agree with that if i will send something then it will display .but problem is ->when you type bulb or tube, it will ask you which bulb you want to control, and then after you enter the bulb number (1,2,3) it will ask you if you want to switch it on or off...!
no message is coming like this at the pc .. only what i am sending getting it .. not any message from mc. like u have mentioned asking for which bulb ???
Fri Mar 30 2007, 11:20 pm
#4
So you must check the connectivity, is it ok or not.. coz if you are not getting it, that mens there is no communication going on! check your circuit again

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm