Hyperterminal rather than data window of terminal emulator


#1

Good Day,

Is it possible to send ascii data using the hyperterminal? For now i am able to create a simple AT application that make use of the UART1 in data mode. But i can only send data using the data window of the terminal emulator. how to do it in hyperterminal?

Thank you,
Von


#2

Of course you can - hyperterminal is just a terminal emulator!

What, exactly, is the particular problem that you are having?


#3

Hello Awneil,

I subscribe to FCM service and implement a callback functions. Here’s a code snippets:

//declare FCM handler used for subscription
s8 FCMHandler;

//subsribe to FCM service
FCMHandler = adl_fcmSubscribe(ADL_FCM_FLOW_V24_UART1, FCM_ControlHandler, FCM_DataHandler);

//implementation of FCM_ControlHandler
adl_fcmCtrlHdlr_f FCM_ControlHandler(adl_fcmEvent_e Event)
{
s8 s8r;
switch (Event)
{
case ADL_FCM_RET_ERROR_GSM_GPRS_ALREADY_OPENNED :
{
TRACE((1, “Flow GSM already Opened”));
break ;
}
case ADL_RET_ERR_PARAM :
{
TRACE((1, “Open Flow GPRS Parameters Error”));
break ;
}
case ADL_RET_ERR_ALREADY_SUBSCRIBED :
{
TRACE((1, “Flow GPRS already subscribed”));
break ;
}
case ADL_FCM_EVENT_FLOW_OPENNED :
{
TRACE((1, “ADL_FCM_EVENT_FLOW_OPENNED”));
adl_atSendResponse(ADL_AT_UNS,“fcmSubscribe openned\r\n”);
s8r=adl_fcmSwitchV24State(FCMHandler,ADL_FCM_V24_STATE_DATA);
TRACE(( 1, “adl_fcmSwitchV24State Ret= %d”, s8r));
break ;
}
case ADL_FCM_EVENT_FLOW_CLOSED :
{
TRACE((1, “ADL_FCM_EVENT_FLOW_CLOSED”));
break ;
}
case ADL_FCM_EVENT_RESUME :
{
TRACE((1, “ADL_FCM_EVENT_RESUME”));
break ;
}
case ADL_FCM_EVENT_MEM_RELEASE :
{
TRACE((1, “ADL_FCM_EVENT_MEM_RELEASE”));
break ;
}
case ADL_FCM_EVENT_V24_DATA_MODE:
{
TRACE((1, “ADL_FCM_EVENT_V24_DATA_MODE”));
adl_atSendResponse(ADL_AT_UNS,“now be data_mode\r\n”);
s8r=adl_fcmSendData(FCMHandler,“abc”,3);
TRACE(( 1, “adl_fcmSendData Ret= %d”, s8r));
break ;
}
case ADL_FCM_EVENT_V24_AT_MODE:
{
TRACE((1, “ADL_FCM_EVENT_V24_DATA_MODE”));
adl_atSendResponse(ADL_AT_UNS,“now be at_mode\r\n”);
break ;
}
default :
{
TRACE((1, “Embedded : FCM_ControlHandler Event not processed”));
break ;
}
}
return TRUE ;
}

//implementation of FCM_DataHandler
adl_fcmDataHdlr_f FCM_DataHandler(u16 DataLen, u8* Data)
{
TRACE(( 1, “FCM_DataHandler”));
DUMP( 1, Data, DataLen);
return TRUE ;
}

The subscription process was succesfull even the handling of incoming data. My problem is the terminal emulator only accepts AT commands. If i want to send a ascii string to my open at application i have to write it in the data window of the terminal emulator. I would like to do it on the terminal emulator. How to do it? Thank you.


#4

Von,

Thank you very much for your snippet. It helped me a lot… So, I’ll help you too (forgive me for replying so late, but I’ve only saw your post now)…

You can send ascii strings on Data window of Terminal Emulator, but when you want to send simple hexadecimal values, use <0x00>, for example…

I hope I helped!

Cya and good luck!


#5

I was reading this topic and I struck the same problem.

Anybody able to solve this problem, i.e., sending data (string / hexa) without using the data window of the Terminal emulator.

Thank you very much.


#6

It’s simple: you just connect your data source/sink (eg, Hypoterminal, or some custom PC application) directly to the Wavecom device’s serial port.

Otherwise, you need to supply full details of what it is, precisely, that you’re actually trying to achieve…


#7

thanks for your reply mate…

i did try connecting my fastrack supreme to the hyperterminal but it was not able to read/write string data using the serial port…anyway, here is what i want to do with my application:

Steps:

  1. if a call comes in my fastrack supreme, it will send a data string (e.g. “Sending data from fastrack supreme”) in the serial port (i was able to see the string being displayed in the terminal emulator)…
  2. using the hyperterminal, i will send a data string (e.g. “Sending data from apps”)
  3. in this step, i would want my fastrack supreme to be able to receive the data string and in return send another string (e.g. “Data from apps received”).

basically that is the gist of what i want to achieve in my application…but i am stuck in step 2/3…i am hoping you could point me in the right direction…thanks…


#8

I have the same problem… I have to simulate a communication between a device and my Q24, I need to send and receive string on uart1 and at the same time use the target monitor tool for debug,
it’s possible??

Nicola


#9

viewtopic.php?f=53&t=2509&p=11123&hilit=external+com#p11123