Using communication plugins with mcbcom

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Using communication plugins with mcbcom

跳至解决方案
1,363 次查看
Haitham_Ismail
Contributor III

I am trying to develop a 3rd party application that uses the mcbcom library. I am using the TCP plugin for the project. I already tested the setup with TCP plugin using FreeMASTER desktop and FreeMaster lite and it works as intended. However, when I use the mcbcom library in the application I get an "Error occurred" (code 0x80000000). I am using imxrt 1050 board and here is the connection string

"NET;169.254.120.174;type=TCP;port=3344;timeout=500"
 
So I was wondering what are the implementations of the communication plugins in the mcbcom library.

Thanks in advance

PS: I know that it is not from the rest of the code since I tested it on USB CDC & LPUART connections first
0 项奖励
回复
1 解答
1,346 次查看
iulian_stan
NXP Employee
NXP Employee

Hi @Haitham_Ismail,

Are you using the mcbcom.dll from FreeMASTER or FreeMASTER Lite folder. There is slight difference in the way each library handles the plugins.

  • The one located in FreeMASTER uses uses plugin CLSID register in Windows system. You need to use 6D13CD9D-9F2D-4066-B655-45B54CA7494B instead of NET key in the connection string
  • The one located in FreeMASTER Lite folder uses a relative path and a friendly name. Your connection string should work with Fmstr Lite dll, but you need to include plugins folder next to the dll because of the relative path discovery.

Kind regards,
Iulian

在原帖中查看解决方案

1 回复
1,347 次查看
iulian_stan
NXP Employee
NXP Employee

Hi @Haitham_Ismail,

Are you using the mcbcom.dll from FreeMASTER or FreeMASTER Lite folder. There is slight difference in the way each library handles the plugins.

  • The one located in FreeMASTER uses uses plugin CLSID register in Windows system. You need to use 6D13CD9D-9F2D-4066-B655-45B54CA7494B instead of NET key in the connection string
  • The one located in FreeMASTER Lite folder uses a relative path and a friendly name. Your connection string should work with Fmstr Lite dll, but you need to include plugins folder next to the dll because of the relative path discovery.

Kind regards,
Iulian