Discussion in "PIC Microcontroller Discussion" started by    monika    Apr 9, 2008.
Mon Apr 21 2008, 07:38 am
#21
AJAY
data between PC and micro will not be CONSTANT it will be changing at regular intervals.
It contains 4 fields of information..each of approximate 10 bytes....this information can be sent in packet format or individually one aftr the other...which one u think is reliable????....
PC is the one generating the information and a copy of this information will be transferred in a cascaded manner to each uc in the chain....till the the last uc....and ACK generated by each uc is tranferred to the PC again in a cascaded manner....
Thanks for ur help :-)
Mon Apr 21 2008, 08:11 am
#22
hi, u r using a good concept but can u be nrief abt its apllication. !dance
Mon Apr 21 2008, 09:16 am
#23
Isha


make a struct like
struct Packet_Send
{
      char destination_Add[4];//any code say "s4b2"  that wiill be rcver address
      char My_Add[4];             //  senders address
      char Packet[10];             //this is the exact data
      unsigned char Packet_Index;                //packet no
                                                                  //this is index to check if a data has been  
                                                                  //missed
}Packet_Send1;
main()
{
Packet_Send1.Packet_Index =1;  
strcpy(Packet_Send1.MyAdd,"SK");
strcpy(Packet_Send1.destination_Add,"IG");
strcpy(Packet_Send1.Packet_Add,"Hello IG"); 
send_RTS_Packet( Packet_Send1.destination_Add);
while( Rcv_ACK(Packet_Send1.destination_Add));

Send_Data_Packet(Packet_Send1.Packet,Packet_Send1.Packet_Index );

Packet_Send1.Packet_Index++;
strcpy(Packet_Send1.Packet_Add,"BYE  :bye "); 
Send_Data_Packet(Packet_Send1.Packet,Packet_Send1.Packet_Index );

.
.
.
.
.
.
.

}

Tue Apr 22 2008, 08:52 am
#24
Thanks shyam..this will help will go through it and consult u for queries....i am working on the code now...and will seek for ur guidance in future also...thanks a ton... :-)


[ Edited Tue Apr 22 2008, 08:55 am ]
Tue Apr 22 2008, 03:33 pm
#25
isha one more thing as you know there is data in 4 fields with 10 bytes each, so i was asking if those 10 bytes are constant or they can vary? And you can send in single frame only, specifying number of bytes in each of 4 sections. This way it will be easy to extract on the other end. Reason for sending in one frame is making the communication protocol simple to implement.
Mon Apr 28 2008, 08:50 am
#26
The length of the data in the packet will vary and so does the information also.i was wrong wen i quoted that it'll be 10 bytes each.infact the fields can also vary.
or may be i can keep the length of packet large enuf to accommodate information accordingly..can i do dat i.e. i can put small information also as well as large info also in the same packet may be by separating the information in the packet by some special characters like % in the data part of the packet.

also can u tell me that "Can a bluetooth master differentiate btw the slaves on the basis of distance i.e. can it tell wich one of the slave is near to him and wich 1's far?..."
Mon Apr 28 2008, 12:16 pm
#27


also can u tell me that "Can a bluetooth master differentiate btw the slaves on the basis of distance i.e. can it tell wich one of the slave is near to him and wich 1's far?..."

IshaG


Think it can be done using the RSSI field......dunno about the resolution though..like how much signal strength variation would register.
Wed Apr 30 2008, 07:42 am
#28
Hi,
I would like to do something similar like Monica mentions. I want my PC to to talk to the PIC using wireless..but i don't know which communication to use..rf, zigbee, bluetooth..am quite new to communications thingy..could you guys gimme some ideas please?. I would really appreciate that..

thanks a lot!!
Wed Apr 30 2008, 10:27 am
#29
Your question's already been answered in the thread.Do go through......

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Bobbyerilar
Thu Mar 28 2024, 08:08 am
pb58
Thu Mar 28 2024, 05:54 am
Clarazkafup
Thu Mar 28 2024, 02:24 am
Walterkic
Thu Mar 28 2024, 01:19 am
Davidusawn
Wed Mar 27 2024, 08:30 pm
Richardsop
Tue Mar 26 2024, 10:33 pm
Stevencog
Tue Mar 26 2024, 04:26 pm
Bernardwarge
Tue Mar 26 2024, 11:15 am