??? 04/06/13 18:11 Modified: 04/06/13 18:52 Read: times |
#189619 - PC to 8051 wireless communication problem using Tarang F4. |
hello,
i m trying to establish wireless communication b/w PC and 8051. i m using p89v51rd2 mc & Tarang F4 transceiver module (for wireless transmission of data). i tested tarang wireless module by sending data from one PC to another, it worked fine. i have also established wired communication b/w PC and 8051 successfully (both way, i.e., frm pc to 8051 and also frm 8051 to pc). now, when i introduce wireless module in between, if 8051 sends data to PC i get it exactly as i were getting it with wired communication, but when i send data from PC side something goes wrong, 8051 dos not rcv data send by Computer. i m controlling and LED based on the data rcvd by 8051. but LED does not glow. i don't know whats going wrong. if 8051 can send data to PC, then PC should also be able to send data to 8051, but its not. please help. here is a simple code i have written to send data frm PC to 8051. org 0h ;configuring serial communication-----start----- mov tmod,#20h ;t1mer1 mode2. mov th1,#0fdh ;baud rate=9600bps. mov scon,#50h ;mode1, 8-bit data,1-start & 1-stop bit,REN(reception) enabled. setb tr1 again:clr ri here:jnb ri,here ;wait till the command is received. mov a,sbuf ;copy the command. ;configuring serial communication-----end----- cjne a,#'y',next mov p0,#0aah ;toggle LEDs connected @ port0 next:cjne a,#'n',next1 mov p0,#55h ;toggle LEDs connected @ port0 next1:sjmp again end |
Topic | Author | Date |
PC to 8051 wireless communication problem using Tarang F4. | 01/01/70 00:00 | |
do you suppose it could be a timing issue? | 01/01/70 00:00 | |
i don't think there is any timing issue. | 01/01/70 00:00 | |
maybe it's the timing generated by that USB-to-serial module | 01/01/70 00:00 | |
will check this out | 01/01/70 00:00 | |
RTS, CTS etc | 01/01/70 00:00 | |
Modem Control Lines | 01/01/70 00:00 | |
it says, "Note : CTS and RTS are optional." | 01/01/70 00:00 | |
transmitter is transmitting | 01/01/70 00:00 | |
it didn't work | 01/01/70 00:00 | |
O.K. so what have you learned? | 01/01/70 00:00 | |
problem solved | 01/01/70 00:00 |