M40 Starter Kit COM-Port Transport Path

Hi,
We are using the starterkit with the example appliaction, the one via Visual Studio.
Some info:
ABCC Starter Kit version 3.07.02 (2020-12-09)
Delivered with:
ABP 7.76.01 (2020-10-19)
ABCC Driver 5.07.01 (2020-10-12)

At this point, if we run main.c and select the transport path provider as “HMS Development Board 2” using using the selector, and when control switch #4 is in position 1, communication seems succesful, as expected. The terminal writes out:

ANB_STATUS: ABP_ANB_STATE_SETUP
RSP MSG_DATA_FORMAT: 1
RSP MSG_GET_PARAM_SUPPORT: 1
RSP MSG_GET_MODULE_ID: 0x403
RSP MSG_GET_NETWORK_ID: 0x89
RSP MSG_GET_FW_VERSION: 1.53.1
RSP MSG_MAP_IO_****
RSP MSG_MAP_IO_****
RSP MSG_SETUP_COMPLETE
Mapped PD size, RdPd 2 WrPd: 2
ANB_STATUS: ABP_ANB_STATE_NW_INIT
ANB_STATUS: ABP_ANB_STATE_WAIT_PROCESS

However, when “COM-Port Transport Provider” is selected and the RS-232 port on the starter kit is connected to the computer using this connector (which is tested and functioning properly), the app terminal writes

Transport provider error 1
Severity  : ABCC_SEV_WARNING
Error code: ABCC_EC_SYS_ADAPTION_ERR (ErrNo: 31)
Add info  : (UINT32)eStatus (0x1)
File      : C:\Users\mobirob\Desktop\host-application-example-code-(for-compactcom-30-and-40-series)\Projects\Windows\abcc_adapt\abcc_sys_adapt.c (Line:108)

APPL_HandleAbcc() returned status code: 6
Press any key to quit.

The error does not change if the control switch #4 is in position 1 or 2.

Are we misusing the COM-Port Transport Provider? Is this normal? Thanks.

Hi @engiz ,

Are you trying to test a serial connection just to the starter kit or for the host processor/applications connection to the Compactcom?

The errors seem to indicate there could be an issue with the transport provider. I generally just recommend using the USB connection. There isn’t an advantage to connect to the starter kit over a comport rather then USB. The different host connections can be tested over usb.

Is there a particular reason you are trying to use the COM port?

Deryck

Thanks Deryck.
Indeed, we are trying to test the host application using the provided example.
Actually, we are planning to design our own carrier board, and it may use the COM port. In that case, the structure we will implement may be similar to the starter kit.
Of course, we can just copy the ftdi part from the starter kit and use it in our application. However, if we would like to use serial, then it isn’t clear to me what the situation would be. This is why we are trying to use the COM port.

Does the Serial Comport option work over usb?

The rs232 Serial port make should work with rotary switch 4 is set to 2 and a serial com port transport provider is configured for the connected com port.

Deryck