When programming with Serial Ports, is often useful to have 2 Virtual Serial Ports communicating each other for debugging, without the need of a Null Modem serial cable connected to phisical serial ports of the same Pc, or connected to a second Pc.
What you need is VSPD!
Download the RPM or tar.gz packet from http://www.tibbo.com/vspdl.php
Install it following the instructions, then you should find the vspd.conf file in /usr/local/vspd/etc/ folder.
Open it and edit as follow (modify the IP 192.168.1.3 with your IP address):
<!-- **** VIRTUAL SERIAL PORT DRIVER FOR LINUX (VSPDL) CONFIGURATION FILE **** -->
<!-- Copyright (C) 2003-2004, Tibbo Technology Inc. -->
<vspdconfig>
<root dir="/usr/local/vspd"/>
<devprefix value="/dev/vspd"/>
<bind host="192.168.1.3"/>
<timeout exec="10000" priority="10"/>
<log type="file" level="EMR" path="var/vspd.log"/>
<log type="file" level="ALR" path="var/vspd.log"/>
<log type="file" level="CRT" path="var/vspd.log"/>
<log type="file" level="ERR" path="var/vspd.log"/>
<log type="file" level="WRN" path="var/vspd.log"/>
<log type="file" level="NTC" path="var/vspd.log"/>
<log type="file" level="INF" path="var/vspd.log"/>
<log type="file" level="DBG" path="var/vspd.log"/>
<vsp num="0">
<bind host="" port="3500"/>
<connection rmode="server/client" proto="tcp" conmode="ondata" timeout="5" onthefly="outofband"/>
<destination ip="192.168.1.3" port="3501" cport="65535"/>
<packets maxlen="255" maxdelay="0" starton="any"/>
<log type="file" level="EMR" path="var/dev.0.log"/>
<log type="file" level="ALR" path="var/dev.0.log"/>
<log type="file" level="CRT" path="var/dev.0.log"/>
<log type="file" level="ERR" path="var/dev.0.log"/>
<log type="file" level="WRN" path="var/dev.0.log"/>
<log type="file" level="NTC" path="var/dev.0.log"/>
<log type="file" level="INF" path="var/dev.0.log"/>
</vsp>
<vsp num="1">
<bind host="192.168.1.3" port="3501"/>
<connection rmode="server/client" proto="tcp" conmode="ondata" timeout="5" onthefly="outofband"/>
<destination ip="192.168.1.3" port="3500" cport="65535"/>
<packets maxlen="255" maxdelay="0" starton="any"/>
<log type="file" level="EMR" path="var/dev.1.log"/>
<log type="file" level="ALR" path="var/dev.1.log"/>
<log type="file" level="CRT" path="var/dev.1.log"/>
<log type="file" level="ERR" path="var/dev.1.log"/>
<log type="file" level="WRN" path="var/dev.1.log"/>
<log type="file" level="NTC" path="var/dev.1.log"/>
<log type="file" level="INF" path="var/dev.1.log"/>
</vsp>
</vspdconfig>
Now you can start the service with
#/etc/rc.d/init.d/vspd start
or, if the service was already running:
#/etc/rc.d/init.d/vspd reloadconf
To test the communication I used minicom on two different consoles, setting first to the port /dev/vsps0, and second to /dev/vsps1
Subscribe to:
Post Comments (Atom)
8 comments:
excuse, may i ask you questions about the VSPD
what version of driver did you use?
did /dev/vsps0 appear automatically atfer the driver installed?
i have installed driver (ver 1.30)
the /dev/vsp0 doesn't appear
and the log file describes
can't open device file: No such file or directory(2)
/dev/vspd0 number of errors
what shoud i do?
thanks
I'm using version 1.37.
The devices appeared after started the service with:
#/etc/rc.d/init.d/vspd start
I suggest you to use 1.37 version, insted 1.30, and check that installation script success and creates all the file as described in the installation manual:
http://docs.tibbo.com/index.html?vspl_installation.htm
I'm using v1.37 and was only able to start up vspm. When I try to run vspd, it just gave me a failure message. No logs in /usr/local/vspd/var but the /dev/vspd# and /dev/vsps# all appear. Did you run into a problem with starting vspd?
I did not run into a similar problem.
All I get when I start the service is:
[root@localhost ~]# /etc/rc.d/init.d/vspd start
starting vspd... [ OK ]
[root@localhost ~]#
What is the failure message?
I am running Ubuntu linux and had the same problem with a file /dev/vspd0 (dont apear) I ran sudo /etc/init.d/vspm start and the file was created after vspd restart
Can anyone recommend the robust Endpoint Security software for a small IT service company like mine? Does anyone use Kaseya.com or GFI.com? How do they compare to these guys I found recently: N-able N-central configuration management
? What is your best take in cost vs performance among those three? I need a good advice please... Thanks in advance!
Welche Wörter... Toll, der ausgezeichnete Gedanke levitra bestellen cialis bestellen ohne rezept [url=http//t7-isis.org]levitra vs viagra dosage[/url]
hey
when i run /etc/init.d/vspm start i get "installing vspm.ko module to kernel...insmod: error inserting '/usr/local/vspd/lib/vspm.ko': -1 Invalid module format
[FAILURE]
"
i run Suse 11.1
any idea?!
thx, david
Post a Comment