Serial Driver Sample

I’m using a ConnectCore Wi-9C with an NS9360, and in the NET + OS Sample Projects, there is one called Serial Driver Sample which sends data from Serial Port 1 to Serial Port 0 using hardware handshaking. The readme says that the NS9360 development board does not support hardware handshaking, so it won’t run. How can I reconfigure this Sample to work without hardware handshaking? Also, can I configure it to send and receive to the same serial port (loopback)?

1)You need modification.
“gpio.h”
//#define JUMPER_2 JMP2_SERA_USB //LJS080729
#define JUMPER_2 JMP2_SERA_SERD //LJS080729

//#define BSP_GPIO_MUX_SERIAL_A BSP_GPIO_MUX_SERIAL_8_WIRE_UART //LJS080729
#define BSP_GPIO_MUX_SERIAL_A BSP_GPIO_MUX_SERIAL_2_WIRE_UART //LJS080729

“data.c”
//#define _8BIT_1STOPBIT_NOPARITY_HW { (CREAD | CS8 | CRTSCTS), (0) } //LJS080729
#define _8BIT_1STOPBIT_NOPARITY_NO { (CREAD | CS8 ), (0) } //LJS080729
struct serialParameter SWserlTests[] =
{
{SIO_9600_BAUD, _8BIT_1STOPBIT_NOPARITY_NO, 2000 , O_RDWR},
{0, {0,0}, 0, 0 }
};

“root.c”
//LJS080729 : (TEST_GPIO_MUX_COM0 != BSP_GPIO_MUX_SERIAL_2_WIRE_UART) Added
//LJS080729 : (TEST_GPIO_MUX_COM1 != BSP_GPIO_MUX_SERIAL_2_WIRE_UART) Added
#if ((TEST_GPIO_MUX_COM0 != BSP_GPIO_MUX_SERIAL_2_WIRE_UART) &&
(TEST_GPIO_MUX_COM0 != BSP_GPIO_MUX_SERIAL_4_WIRE_UART) &&
(TEST_GPIO_MUX_COM0 != BSP_GPIO_MUX_SERIAL_6_WIRE_UART) &&
(TEST_GPIO_MUX_COM0 != BSP_GPIO_MUX_SERIAL_8_WIRE_UART)) ||
((TEST_GPIO_MUX_COM1 != BSP_GPIO_MUX_SERIAL_2_WIRE_UART) &&
(TEST_GPIO_MUX_COM1 != BSP_GPIO_MUX_SERIAL_4_WIRE_UART) &&
(TEST_GPIO_MUX_COM1 != BSP_GPIO_MUX_SERIAL_6_WIRE_UART) &&
(TEST_GPIO_MUX_COM1 != BSP_GPIO_MUX_SERIAL_8_WIRE_UART))

“testStart.c”(Optional)
/*#define LOOP_FOREVER_IN_THIS_TEST */
#define LOOP_FOREVER_IN_THIS_TEST//LJS080729

2)Do as “readme” said.

  • You must use cross-cable
    Con.1 : Female D-Sub 9(2:RX, 3:TX, 5:GND)
    Con.2 : Female D-Sub 9(2:RX, 3:TX, 5:GND)

Con.1 Con.2
2 ------ 3
3 ------ 2
5 ------ 5

Message was edited by: seba1004

Hello,

I got the development kit digi connect me a week ago.
I try to run the " serial driver sample", but it didn’t work. I have no clue how to configure?

In readme file, I have this:

“This example should work on all development boards with serial ports that
support hardware handshaking, for instance, this example will not work on
connectme or connectem platforms because the com/1 port on these platforms
don’t have hardware flow control pins connected.”

How and what should I change the configuration to make it work on Digi Connect Me?

Cheers