Echo data on UART1 and debug on USB?

Hi All,

I am starting a project using the fastrack supreme and it’s been a steep learning curve.

My application will require sending/recieving data on a serial port so to start I am using FCM to send and recieve data on UART1.

I have managed to successfully send data by using

adl_fcmSubscribe and then sending data using
adl_fcmSendData

now in my senddata routine I would like to add some debug printfs - for some reason I am not able to see the trace functioning properly within M2M studio

Anyways I thought I would be able to use

adl_atSendResponse(ADL_AT_PORT_TYPE(ADL_AT_RSP,ADL_PORT_USB),“Data Sent”);

to send debug data to the USB port (I have an IESM USB+GPS card installed) but this does not work
so in my code

  adl_fcmSendData(fcmHandle,rxBuffer,dataLen);  // ---> Works fine
    	  dataLen=0;
    	 adl_atSendResponse(ADL_AT_PORT_TYPE(ADL_AT_RSP,ADL_PORT_USB),"Data Sent"); // --->This does not print to the USB port

When I switch the flow control to AT_STATE by sending the +++ sequence on the hyperterm window connected to COM1 I see the DATA Sent responses being printed.

So how do I send the “Data Sent” strings to the USB port??

  1. Do I need to do an fcmSubscribe on the USB port within my APP and then call atSendResponse??
  2. Does anyone know of an easy way to dedicate a UART port for application purposes and route trace/debug info to a different port?

Thanks
JS

Are you sure this format is correct…??? Just check in ADL User Guide… :smiley:

hope it helps… :stuck_out_tongue: