Effacer les filtres
Effacer les filtres

reading messages over serial port

2 vues (au cours des 30 derniers jours)
marleen_ade
marleen_ade le 12 Mar 2020
Commenté : Walter Roberson le 12 Mar 2020
I have a matlab executable program running on a PC, where at the same time an application is running which monitors a UPS device feeding the PC. The communication between this app and the UPS device happens over a serial port. I wish to monitor this communication from within my matlab program to find out when battery mode is activated, so as to shut down all operations on the PC as well as the PC decently in that case. Since the port is already in use, it is not possible to open and configure it in the matlab program. How can I monitor nevertheless the communication?
I did download a separate tool which is capable of doing this. This allowed me to reverse engineer the messages and determine how the battery operation mode is signalled. Question now is how to do this in matlab? If possible of course. Anyone has done this before?
  1 commentaire
Walter Roberson
Walter Roberson le 12 Mar 2020
There just might be a way to use a .NET Assembly to do this, maybe. Not that I could name one at the moment.
I see that https://sourceforge.net/projects/realterm/ mentions having an ActiveX/COM interface for monitoring.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Instrument Control Toolbox Supported Hardware dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by