8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

Go to page  1 2 [3]
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
IshaG
Sun Apr 20 2008, 07:08PM
 User Offline
Registered Member #5779
Joined: Wed Jan 30 2008, 09:56PM

Posts: 10
Thanked 0 times in 0 posts
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


Back to top


tyagiG
Sun Apr 20 2008, 07:41PM

 User Offline
Registered Member #7349
Joined: Sun Apr 20 2008, 07:30PM

Posts: 1
Thanked 0 times in 0 post
hi, u r using a good concept but can u be nrief abt its apllication.

aditya:
[color]

Back to top


shyam
Sun Apr 20 2008, 08:46PM

 User Offline

Registered Member #2984
Joined: Mon Aug 06 2007, 11:33AM

Posts: 663
Thanked 93 times in 89 posts
Isha


make a struct like
CODE:
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 );

.
.
.
.
.
.
.

}
 



lProgress is not made by early risers or hard workers, but by LAZY people, trying to find easier ways to do the same........
Back to top


IshaG
Mon Apr 21 2008, 08:22PM
 User Offline
Registered Member #5779
Joined: Wed Jan 30 2008, 09:56PM

Posts: 10
Thanked 0 times in 0 posts
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 Mon Apr 21 2008, 08:25PM ]
Back to top


Ajay
Tue Apr 22 2008, 03:03AM
Rickey's World Admin

 User Online

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3296
Thanked 611 times in 578 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top


IshaG
Sun Apr 27 2008, 08:20PM
 User Offline
Registered Member #5779
Joined: Wed Jan 30 2008, 09:56PM

Posts: 10
Thanked 0 times in 0 posts
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?..."
Back to top


sashijoseph
Sun Apr 27 2008, 11:46PM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 471
Thanked 106 times in 101 posts
IshaG wrote ...

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?..."

Think it can be done using the RSSI field......dunno about the resolution though..like how much signal strength variation would register.

Let there be music........
Back to top


Vishay
Tue Apr 29 2008, 07:12PM
 User Offline
Registered Member #7530
Joined: Tue Apr 29 2008, 07:04PM

Posts: 6
Thanked 0 times in 0 posts
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!!
Back to top


sashijoseph
Tue Apr 29 2008, 09:57PM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 471
Thanked 106 times in 101 posts
Your question's already been answered in the thread.Do go through......

Let there be music........
Back to top


Go to page  1 2 [3]  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems