AGG Software Forums
January 29, 2025, 01:56:53 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  

Pages: [1]
  Print  
Author Topic: COM Emulator  (Read 33352 times)
rherry
Newbie
*

Karma: +0/-0
Posts: 4


View Profile
« on: November 05, 2014, 07:41:11 AM »

Hi,

Sorry, newbie question.

I'm building a text parser for my scale.
However, the location of the scale is on remote position, and there is no internet available.
So, i'm trying to emulate a COM port (my laptop doesn't have serial port) to transmit a certain string data, and the the data is to be captured into my VB application.

Can I do that using the COM port emulator? If so, how?
When I start the emulator, my VB app is unable to open/use the port object, where it said that the port is already opened.

Please help.

Regards,
:rherry
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: November 05, 2014, 08:09:31 AM »

Hello,

Our Virtual Null Modem software can help in this situation.
Logged
rherry
Newbie
*

Karma: +0/-0
Posts: 4


View Profile
« Reply #2 on: November 05, 2014, 03:14:14 PM »

Hi,
Another follow-up question.
I managed to install both the emulator and the virtual null modem.

Basically, I created a virtual COM5, with 2400,8,N,1, and I set it to transmit a string of "as=ale=0023.82(kg)aksj" every second.
Then, I created a virtual null modem to connect COM5 to COM3, no handshaking, with COM5 use enable interference, and about 50% of the bar (I tried 0% - 100%, no difference).

After that, I use hyperterminal to try to capture the data.

The thing is, the transmitted data and received data are different:

- Log from the emulator:
S: ===> Text data begin <===
<-as=ale=0023.82(kg)aksj
S: ===> Text data begin <===
<-as=ale=0023.82(kg)aksj
S: ===> Text data begin <===
<-as=ale=0023.82(kg)aksj

- Captured data from Hyperterminal:
aÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁÁaZZZZZZZZZZZZZZZZZZZZZZZa>>>>>>>>>>>>>
>>>>>>>>>>a#######################
=> here, all received data are 24 chars, and started with the letter a.

Anything I did wrong?

Please help.

Regards,
:rherry
Logged
rherry
Newbie
*

Karma: +0/-0
Posts: 4


View Profile
« Reply #3 on: November 06, 2014, 11:40:21 AM »

Hallo, anybody can help me? Huh
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #4 on: November 06, 2014, 12:53:14 PM »

Please, try to disable the interference and reboot the computer.
Logged
rherry
Newbie
*

Karma: +0/-0
Posts: 4


View Profile
« Reply #5 on: November 06, 2014, 03:11:25 PM »

Hi Arthur,

Thanks a lot. It works.

Sorry, I thought the interference is needed for a port assigned for the input stream.

Regards,
:rherry
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines