JN-AN-1069 Serial Cable Relacement

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

JN-AN-1069 Serial Cable Relacement

1,592 Views
minhtan_uet
Contributor III

Hi Support team! 

I tried to run this application on 2 JN5169 modules.USB Dongle as a Coordinator. DR1174 board as an End.
Step base on: JN-AN-1069-IEEE-802.15.4-Serial-Cable-Replacement
The LED0,1 flashing together ==> then LED0 (D3) always turn ON. So I think the connection is good.
However, I try to connect cable to both modules on UART0 with baud rate 115200. 

USB Dongle -> COM3 , DR1174 board ->COM 4
Capture.PNG
I tried to send from one module "aaa" but never receive anything from another module.
I don't know if I have to follow any message format.
I'm a new member

Thank you very much!

Labels (1)
0 Kudos
Reply
10 Replies

1,358 Views
minhtan_uet
Contributor III

Dear Sebastian Delrio Employé
Connect to UART1

pastedImage_1.png

pastedImage_2.png Makefile
But nothing happened! Anything wrong?. Please correct me!

0 Kudos
Reply

1,358 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Tran,

 

I think the problem is that DGB_UART is defined as 0xFF, could you please try changing that value to the commented value "E_AHI_UART_1".

That define should look like:

#define DBG_UART                 E_AHI_UART_1          /**< Uart to use */

Could you please try that and tell me if it works now?

 

Best regards,

Sebastian

0 Kudos
Reply

1,358 Views
minhtan_uet
Contributor III

Thank for your help!
Actually. I connect to pin DIO14,DIO15 to get log. It work well :smileygrin:

0 Kudos
Reply

1,358 Views
minhtan_uet
Contributor III

Dear Sebastian Delrio Employ&#233;
As i saw in crd_coordinator.c

pastedImage_2.png

pastedImage_3.png

Log debug will be print to UART1?
For get log. I'm connect cable to pin DIO14,DIO15 and try erasing the "#"(#TRACE ?=1) in make file
But nothing is displayed in terminal.

Please help me!!! Many thank.

0 Kudos
Reply

1,358 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hi Tran Min Tan,

 

To receive the print log in UART 1, you'll have to connect the correct pins for communication, as in the DR1174 carrier board, only UART 0 is connected to the pins in the USB interface. You can check the module's schematic files to see which pins correspond to UART 1 (DIO17 is UART1 Clear to Send, DIO18 is UART1 Request to Send, DIO19 is UART1 TX and DIO20 is UART1 RX).

 

Could you please try that and tell me if it works?

 

Best regards,

Sebastian

0 Kudos
Reply

1,358 Views
minhtan_uet
Contributor III

Dear Sebastian Delrio 
How to show log debug to UART 0?
I have set

#define CRD_TRACE TRUE

#define ED_TRACE TRUE
Thanks :smileygrin:

0 Kudos
Reply

1,358 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hello Tran Min Tan,

 

To get the debug information, you'll also need to make sure the "trace" entry in the Makefile is not commented out of the code.

Could you try erasing the "#" in that line, saving, doing a cleanup, and building again?

 

Please let me know if you have any problems!

 

Best regards,

Sebastian

0 Kudos
Reply

1,358 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

Hello Tran Minh Tan, I hope you’re doing well!

 

I tested the application note with the same devices (USB dongle JN5169 as coordinator, and DR1174 board as End Device) And it seems to be working as intended.  I only changed the channel to 24, re-compiled the program and flashed each JN5169 binary file to its corresponding device.

 

Could you please try using another terminal emulator such as PuTTY or Tera Term and see if they work for you?

 pastedImage_1.png

 

Please let me know if you're still having any problems.

 

Best regards,

Sebastian

0 Kudos
Reply

1,358 Views
minhtan_uet
Contributor III

Dear Sebastian Delrio
Thank for your help. It work well
Capture1PNG.PNG
Just check RST button. Hope you support me in other question :smileygrin:! 

0 Kudos
Reply

1,359 Views
Sebastian_Del_Rio
NXP Employee
NXP Employee

I hope that was helpful to you!

Best regards,

Sebastian

0 Kudos
Reply