Running multiple FreeMASTER PC application instances

cancel
Showing results for 
Search instead for 
Did you mean: 

Running multiple FreeMASTER PC application instances

Jump to solution
113 Views
Contributor II

Hi, 

I think it is possible but just to check before trying it in the lab (corona times):

Has anyone tried running multiple instances of the FreeMASTER PC application on the same PC in such a way that each of them can communicate via serial with one embedded board running the FreeMASTER v2 driver?

What limitations did you find?

I'm planning to do so with 6 embedded boards. 

Regards,

Nicolas S.

0 Kudos
1 Solution
104 Views
NXP Employee
NXP Employee

Dear Nicolas,

yes this should be possible. Each FreeMASTER will connect using a different serial port to a different board, so there is going to be no conflict. 

There is even an option to create a dashboard page in HTML/JavaScript which will be able to collect data from all running instances and display them in a single page. 

  • In case of JSON-RPC interface, each instance needs to be started with different JSON-RPC server port. Use /rpcs N command-line option when running the FreeMASTER.
  • When using ActiveX/COM+ interface, you can leverage a special "MultiMaster" object which is able to manage all running instances too.

Let me know if you face any issues when running multiple instances or if you need more details on the JSON-RPC or ActiveX/COM+ control API.

Regards,
Michal

 

View solution in original post

3 Replies
105 Views
NXP Employee
NXP Employee

Dear Nicolas,

yes this should be possible. Each FreeMASTER will connect using a different serial port to a different board, so there is going to be no conflict. 

There is even an option to create a dashboard page in HTML/JavaScript which will be able to collect data from all running instances and display them in a single page. 

  • In case of JSON-RPC interface, each instance needs to be started with different JSON-RPC server port. Use /rpcs N command-line option when running the FreeMASTER.
  • When using ActiveX/COM+ interface, you can leverage a special "MultiMaster" object which is able to manage all running instances too.

Let me know if you face any issues when running multiple instances or if you need more details on the JSON-RPC or ActiveX/COM+ control API.

Regards,
Michal

 

View solution in original post

69 Views
Contributor II

Hi Michal,

Thanks for your reply. I confirm that it is possible to connect to several instances of the FreeMASTER PC app through different serial ports in a single PC. I had the chance to do it with 6 embedded boards and run some manual tests on them.

I will definitely look into creating a common dashboard based on JSON-RPC for automating my tests. Can you suggest an application note/resource for getting started?

Regards,

Nicolas. 

 

0 Kudos
64 Views
NXP Employee
NXP Employee

Dear Nicolas,

to get some introduction on the JSON-RPC interfacing to FreeMASTER, please take a look at two video trainings at our training portal. Just enter "freemaster JSON-RPC" as a search term. One video targets the FreeMASTER desktop application, the other targets the FreeMASTER Lite service. Both should give you some general understanding of FreeMASTERs interfacing from 3rd party applications.

The FreeMASTER installation contains a User Guide with JSON-RPC API reference and also some basic code examples.

Also, plese note that FreeMASTER 3.1 is going to be released soon and it provides additional options for 3rd party NodeJS/JavaScript applications to connect to FreeMASTER.

Thank you for using FreeMASTER.

Regards,
Michal

0 Kudos