Re: rs485 ?
hi friends ,
i am using 2 controllers one as transmitter and other as receiver over rs485 network, i mean a pair of twisted pair cable.
i send 5 bytes of data , but the first byte i receive is always 0x00. followed by my desired first 4 bytes.
please suggest how to proceed.
Added after 1 hours 17 minutes:
i figured it out , i was pressing reset of transmitter microcontroller , and it was sending 0x00 to receiver......as the first byte of reception because receiver was in continous reception mode.....
i was mistaken the problem still exists ...the transmission is right all 5 bytes transmitted,
what i am doing is after transmitting through rs485 tx i am putting microcontroller in receiving mode ... so the bytes which i transmitted to other controller i am sending back from it , but i am missing 2 bytes at the receiving end...it is taking 2 bytes as 0x00 0x00;
any solutions...