hi.....
i use wsndemo with atmega128rfa1...
in c# i write this code to send data over the rs232 to atmega128rfa1..:
serialPort1.WriteLine(txtsend.Text);
and my usartDescriptor configuration like this:
void appStartUsartManager(void)
{
usartDescriptor.tty = USART_CHANNEL;
usartDescriptor.mode = USART_MODE_ASYNC;
usartDescriptor.flowControl = USART_FLOW_CONTROL_NONE;
usartDescriptor.baudrate = USART_SPEED;
usartDescriptor.dataLength = USART_DATA8;
usartDescriptor.parity = USART_PARITY_NONE;
usartDescriptor.stopbits = USART_STOPBIT_1;
usartDescriptor.rxBuffer = rxBuffer;
usartDescriptor.rxBufferLength = USART_RX_BUFFER_LENGTH;
usartDescriptor.txBuffer = NULL;
usartDescriptor.txBufferLength = 0;
usartDescriptor.rxCallback = readByteEvent;
usartDescriptor.txCallback = writeConfirm;
OPEN_USART(&usartDescriptor);
memset(&wsn2usart, 0, sizeof(wsn2usart));
wsn2usart.isFreeUsart = true;
}
but i dont know why in wsndemo app in file wsnuartmanager.c this function
static void readByteEvent(uint16_t readBytesLen);
is not start!!
please guide me how i can fix this?