AGG Software Forums
December 03, 2024, 08:28:51 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Help rq.: Intercept and change data between balance and 3'rd party software.  (Read 22775 times)
Flaps
Jr. Member
**

Karma: +0/-0
Posts: 8


View Profile
« on: April 29, 2021, 01:30:18 PM »

Hi forum
This might be a little lengthy, but please bear with me. I currently have the following setup : 1 balance communicates via the serial port with a piece of software which resides on a virtual machine (WinXp) running in Virtualbox on awin7/win10 machine. The software sends very simple command characters to the balance (on the specific port) and the balance returns a weighing result which the software parses and uses in some further calculations.

This is the setup/flow. :
Software [sends balance Command] -> Balance [sends Result] -> Software [Parses and calculates]

However. I now need to intercept the resultstring from the balance, do some modifications and then pass the edited string to the software

Desired setup :
Software [Sends balance Command] -> Balance [sends Result] -> intercept and Modify Result -> Software [Parses and calculates] .

How can I go about this ? I've looked at the tutorials but seem to come up short. Any assistance would be greatly appreciated.
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: April 29, 2021, 02:00:45 PM »

Hi,

Our software can only receive data from one COM port, transform it and send a new data packet to another COM port. You can use our Virtual Null Modem to create additional COM ports.

Tutorial:
https://www.aggsoft.com/asdl-scale-data-filter.htm

Data flow:
Software [Sends balance Command] -> Virtual COM1 -> Virtual COM2 -> Data Logger (Configuration 1) -> Redirection -> Real COM port -> Balance

Balance -> Real COM port -> Data Logger (Configuration 2) -> Redirection -> Virtual COM2 - Virtual COM1 - Software
Logged
Flaps
Jr. Member
**

Karma: +0/-0
Posts: 8


View Profile
« Reply #2 on: April 29, 2021, 03:18:02 PM »

Arthur,
Thanks for getting back so quickly - I'll have a look at the tutorial you linked. I thought it might be something along those lines so I downloaded the trial version of the Null Modem and I'm currently trying to make these ports show up in windows. Anyway - I'll have an additional lokk.

Thank you again for replying - I appreciate your assistance.
Logged
Flaps
Jr. Member
**

Karma: +0/-0
Posts: 8


View Profile
« Reply #3 on: April 29, 2021, 05:52:49 PM »

Allright, tried the Virtual Ports and that specific part seems to work. Connecting a terminal program (Termite) to each virtual port in the pair (1 terminal prog under the host OS and 1 under a virtual OS) works. If something is entered in the one terminal program (connected to Virtual port COM6 that message immediately shows up in the other terminal prog which is connected to the other paired virtual port COM7. So far so good.   

However, I can't get the redirecting to work : My balance sends/is connected to COM5 which SHOULD redirect the output to the virtual port COM6 and as COM6 and COM7 are a virtual pair the message should be accessible via my terminal prog which is connected to COM7. Problem is : it doesn't. I think I followed the tutorial fairly meticulously, but the best result I can get is just receiving the withing values but appearantly no redirection (to COM6) is happening. Any ideas ?

Thank you for any assistance.
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #4 on: April 30, 2021, 06:55:55 AM »

Please, submit a ticket https://support.aggsoft.com, and we'll schedule a remote support session.
Logged
Flaps
Jr. Member
**

Karma: +0/-0
Posts: 8


View Profile
« Reply #5 on: May 10, 2021, 11:25:37 AM »

Arthur,
I'm so sorry for my late reply but I have unfortunately been away and was completely unaware of your post. I'd be grateful for your assistance so I'll apply for a ticket.

Thanks a lot and again please forgive me my lack of response.

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines