FuzzySNR
Member level 2
xuartlite_recv
Anyone could give an example in C code for MicroBlaze of how to send these packets through COM1 (RS232), setting up a connection channel between server-client at 9600 baud. A liitle catch here...the server is only allowed to send the next packet after the client has echoed the packet back to server. The latter should listen for the return packets and only issue the next sync. packet after it has received the appropriate echo.
For example,
Sync0: 0xFA, 0xFB, 0x03, 0x00, 0x00, 0x00
Sync1: 0xFA, 0xFB, 0x03, 0x01, 0x00, 0x01
Sync2: 0xFA, 0xFB, 0x03, 0x02, 0x00, 0x02
Cheers!
Anyone could give an example in C code for MicroBlaze of how to send these packets through COM1 (RS232), setting up a connection channel between server-client at 9600 baud. A liitle catch here...the server is only allowed to send the next packet after the client has echoed the packet back to server. The latter should listen for the return packets and only issue the next sync. packet after it has received the appropriate echo.
For example,
Sync0: 0xFA, 0xFB, 0x03, 0x00, 0x00, 0x00
Sync1: 0xFA, 0xFB, 0x03, 0x01, 0x00, 0x01
Sync2: 0xFA, 0xFB, 0x03, 0x02, 0x00, 0x02
Cheers!