AGG Software Forums
September 08, 2024, 07:34:16 AM *
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  
  Show Posts
Pages: [1]
1  Online Help Center / Data loggers and plug-ins / RE: ASDL buffering issues, redirecting serial data with virtual ports? on: February 15, 2022, 07:40:15 PM
Solved - An incomplete <CR><LF> termination of the result/parsed string - balance needs both characters to recognize that a command was received on the port. As it received only "half" of the required line termination characters - it took 2 turns before it invoked the latest received command. Ouch :-).
2  Online Help Center / Data loggers and plug-ins / ASDL buffering issues, redirecting serial data with virtual ports? on: February 15, 2022, 05:45:25 PM
Hi group,
This is a little lengthy but I hope you'll bear with me.
I'm experiencing some command/response issues when redirecting serial communication between 2 virtual ports and a balance.
Following a "Send" command to the balance (issued from a proprietary software) I intercept and modify the balance-response before it is redirected to a port used by the proprietary software which processes the modified data.

The setup works fine except for a detail of which I was initially unaware: When switching between balance commands  it seems as if the previous command is re-sent - not the new command. Could it be some sort of bufferthing I need to set up in ASDL ?.
There is no problem when issuing the commands directly via a terminal program (Termite). switching between commands results in the expected responses every time - no need to resend it.

Communicating directly with the balance (no virtual ports and going directly to COM5) using Termite :
Sending command  : "S"
Response : "S S       0.00 mg"
Switching to new command :
sending command  : "T"
Response : "T S       0.00 mg"

My virtual port setup is the following :
Balance <-> Com5  <->(Com4 <->Com3) <-> Software/Terminal prog.  Com3/4 are the virtual pair.
Sending command  : "S" (to COM3)
Response : "S S       0.00 mg"
Switching to new command :
sending command  : "T"
Response : "S S       0.00 mg" (Which is the response expected from the previous "S"-command). Resending the "T" command will result in the correct (taring) function.

The problem is the same whenever I switch command (from T to S or vice versa) the first response is the response expected from the previous command.

I can physically see on the balance which command it is processing  as it says whether it is "taring" or "capturing wighing data". Therefore I'm quite sure that even if ASDL states that a port is sending a "T" to the port, the balance shows that it is in fact receiving and responding to the previous "S" command.
Could this be related to some sort of buffer-setting or the like?. Any assistance would be greatly appreciated.[/left]
3  Online Help Center / Data loggers and plug-ins / Re: Redirecting input beween (virtual) comports and virtual machine. on: January 13, 2022, 06:04:29 PM
Solution

Created 2 connected virtual ports : COM3 & COM4. Balance is connected to COM5. My program sends the balance command to COM3 (which is paired with COM4). COM4 redirects "FULL_DATA_PACKET" to COM5 where the balance is connected. COM5 receives a response from the balance, parses it and redirects it back to COM4 (paired with COM3).

All serial communication from my virtual machine (the old WinXP in Oracle Virtual Box) happens via linking COM1 on the VM to COM3 on the Win10/win7 boxes.

I had a lot of help on this - hope it might help someone else.

4  Online Help Center / Data loggers and plug-ins / Redirecting input beween (virtual) comports and virtual machine. on: January 05, 2022, 02:05:59 PM
Hi Group
I've previously had a working solution to my problem but unfortunately my setup was deleted and I cannot for the life of me remember how it was done let alone fix i now. I received expert and extensive help from the official aggsoft support who made it work.

Anyway, - I need to communicate with a balance by means of a software which runs in a winXP virtual machine (VM). My balance is connected to a serial port (Currently COM4) well - a usb port emulating a serial port) under Win10 and this serial port is linked to "COM1" in the VM.

Using Termite (under the virtual machine) I can send balance commands and receive responses - no problem here. However, I need to format the data response from the balance before it is passed back to my program.

In order to do that I've tried to set up virtual ports (COM2 and COM5), so that COM2 is linked to "COM1" of the virtual machine and COM2. COM2 is set to redirect whatever it receives  (the balance command) to COM4. COM4 is set up to parse the balance response and redirect the output back to COM2.

However, I can see that the command sent via VM COM1 to COM2 actually arrives on COM2 and that it is also redirected from here to COM4. However, for some reason the balance does not respond to the command (return a value) in this setup. If I link COM4 directly to the VM Com1 the balance responds immediately.

As I said I've had this up and running before so I know it's possible - ANY assistance would be greatly appreciated.
5  Online Help Center / Data loggers and plug-ins / Re: Help rq.: Intercept and change data between balance and 3'rd party software. 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.

6  Online Help Center / Data loggers and plug-ins / Re: Help rq.: Intercept and change data between balance and 3'rd party software. 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.
7  Online Help Center / Data loggers and plug-ins / Re: Help rq.: Intercept and change data between balance and 3'rd party software. 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.
8  Online Help Center / Data loggers and plug-ins / Help rq.: Intercept and change data between balance and 3'rd party software. 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.
Pages: [1]
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines