Using communication plugins with mcbcom

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

Using communication plugins with mcbcom

Jump to solution
1,361 Views
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 Kudos
Reply
1 Solution
1,344 Views
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

View solution in original post

1 Reply
1,345 Views
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