Software :: Simulate Serial Device With Pty's ?

Sep 21, 2009

I wrote software which access and reads a serial device. I would like to test this software on my computer without loop-wiring or without a second computer.

How could I use pty's to simulate a serial device?

Actually I would like to temporary replace the /dev/ttyS1 file by one end of the pty. How could I do this? Is there a command to create a pty pair?

View 4 Replies


ADVERTISEMENT

Programming :: Simulate A Serial Protocol In User Space Program To Test Reception Algorithm?

Jul 28, 2010

I want to simulate a serial protocol in user space program to test reception algorithm. The protocol is similar to UART protocol but frame format is different. The duration of 1 bit is 114,46 us. In my main function I'm creating two threads. Tx for simulating transmitting data and Rx for reception data. For measure time I use create_timer() function and signals. Each thread has its own timer and signal handler. Tx timer uses SIGUSR1 and Rx timer uses SIGUSR2. Tx thread sets the global variable and Rx reads it.

The timers are set to sample with 114,46 us period. When they reach this value signal handler should set the flag. Flag is check in thread and some operation are made. When I set the timers period for longer time (100 ms) everything works fine but when I change it to default value (114,46 us) the Rx thread doesn't receive the proper data. I am wondering if the 114,46 timer period is possible to simulate in user space? Whether the time will give me the proper resolution ? Theoretically it should provide 1 ns resolution.

View 3 Replies View Related

Hardware :: Possible To Access An IrDA Device As A Serial Device Such As /dev/ttyUSB0?

May 24, 2011

the message from dmesg for the IrDA device:

[ 3635.194162] usb 3-1: new full speed USB device using uhci_hcd and address 2
[ 3635.338159] usb 3-1: New USB device found, idVendor=066f, idProduct=4200
[ 3635.338165] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[code]...

View 1 Replies View Related

Ubuntu :: USB Serial Device Stops After Sometime?

Nov 4, 2010

I am able to use USB in serial mode for reading using

cu,
screen,
minicom,
jpnevulator,

[Code]....

View 1 Replies View Related

OpenSUSE Hardware :: Cannot Mount USB Serial Device - Not Even As Root

Jul 19, 2010

I want to mount a serial device. To get do the data section in the device and retrieve image files. Not even root can mount.

Code:
# ls -l /dev/ttyU*
crw-rw---- 1 root uucp 188, 0 Jul 20 13:07 /dev/ttyUSB0
# mount -t fuse /dev/ttyUSB0 /media/M65
/bin/sh: /dev/ttyUSB0: Permission denied

[Code]....

View 9 Replies View Related

OpenSUSE Hardware :: Install A TUSB3410 USb To Serial Port Device On Suse 10.3?

Feb 27, 2009

I want to install a TUSB3410 USb to serial port device on suse 10.3.

View 1 Replies View Related

Fedora Networking :: Globetrotter HSDPA Modem - Identified As A Serial Device - Fail To Get It Working

May 7, 2009

I have bought a so-called web'n'walk stick, which identifies itself as a "Globetrotter HSDPA Model". I managed to get it identified as a serial device (initially, it is detected as a USB drive), but I fail to get it working.

Things that might be of interest:

Code:

Code:

View 1 Replies View Related

General :: Windows With Putty Via USB Serial Cable To Serial Port - Output Ok, Input Isn't?

Jan 13, 2010

I am trying to get two way serial communications going between a Windows XP system and a Linux system (RHEL 5).I have /sbin/agetty -L 9600 ttyS0

in /etc/inittab. I am using a generic USB to serial adaptor on Windows (Unitek) and a null modem cable. I have putty configured for 9600 baud, 8 bits, no parity, one stop bit, no flow control.I get the login prompt from agetty in the putty window but input does not work; I see weird characters in the putty screen. I can echo output into the device from windows and see it, but

cat < /dev/ttyS0. just prints out weird characters from what I type.

View 3 Replies View Related

CentOS 5 Hardware :: NetMOS PCI 9835 Dual Serial Card - Can't Use The Serial Ports

Feb 21, 2009

On my CentOS 5.2 install I've installed a dual-port serial card based on the NetMOS 9835 chipset. I've followed the serial instructions, but everything they tell me to do is already done - see setserial outputs below. I've compared these values to the lspci output (below, NetMos card is at the bottom of the output) for the card and it appears right. Problem being, I can't use the serial ports. Oh and I did use search, and looked at every 9835-related article before posting this :)

[Code]....

View 17 Replies View Related

Debian Hardware :: How To Get Old Serial-touchscreen To Work With USB / Serial Adapter

Oct 9, 2015

I am hoping to be able to get an old serial-touchscreen to work with a usb/serial adapter. I had this touchscreen working some years ago on different hardware. I would like to hook it to the machine I am setting up as a multimedia host with mythtv among other things.

Following the instructions I left behind when I got this to work way back when does not work. See [URL] ....

This info is a work around to get the xserver to see the touchscreen. [URL] ....

I do know that the touchscreen works as I am able to get garbage on the screen as in the first part of my howto. But I have not had any success getting xorg to see it. I wish I had posted a copy of the xorg.conf at the time, but......

There is an issue with the current xserver in testing that I am hoping the next update (in unstable) will fix when it gets pushed to testing. That is that Code: Select all# X -configure fails with a segfault. So I am not able to generate the xorg.conf needed to get it to work. I was going to post a bugreport, that is when I found out there is an update in unstable, so I am waiting for it to get pushed at the moment.

Anyway I am hoping that I can link /dev/ttyUSB0 to /dev/tty0 and get it to work. I would like some kind of guess as to my chances of success before I go to all the work of getting the monitor hooked to the host.

View 1 Replies View Related

Ubuntu :: Serial MIDI - Doesn't See Any Serial Ports?

Jun 21, 2011

I have a bit of a dilemma. I'm attempting to use a microcontroller to send MIDI messages over a virtual serial port. I want to (eventually) read them with Mixxx. I'm using an FTDI chip, so I get a /dev/ttyUSB0. I've tried spikenzielabs' Serial-Midi program, but it doesn't see any serial ports. NOTEMIDI looks really old and won't compile on my 10.04 LTS machine.

View 2 Replies View Related

Software :: Connect A Serial Cable To The Serial Port?

Mar 23, 2010

We have a new machine with RedHat enterprise 5 on it. I need to connect a serial cable to the serial port and talk to another system (old alpha system) instead of using a VT connected to the alpha.Does RedHat come with anything like Keaterm/hyperterm/etc etc?

View 3 Replies View Related

Fedora :: How To Simulate A Webcam

Mar 27, 2010

I do not have a webcam yet, but would like to set certain video files I have to be played as my 'streaming video content' from a 'virtual' webcam.

View 6 Replies View Related

Fedora :: New Update - Could Not Do Simulate

Jun 26, 2010

Could not do simulate: nautilus-sendto-2.28.4-1.fc13.i686 requires libedataserver-1.2.so.11
gnome-panel-2.30.0-1.fc13.i686 requires libedataserver-1.2.so.11
empathy-2.30.1.1-1.fc13.i686 requires libedataserver-1.2.so.11 : Success - empty transaction

View 14 Replies View Related

Fedora :: Add / Remove Software - Could Not Do Simulate

Sep 2, 2010

How to get rid of the following error I've been receiving from Yum. I'm fairly new to Fedora. The following message appears when Add/Remove Software is launched. It also pops up periodically in the notification window.

could not do simulate: Traceback (most recent call last):
File "/usr/share/PackageKit/helpers/yum/yumBackend.py", line 3270, in __init__
self.repos.confirm_func = self._repo_gpg_confirm
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 823, in <lambda>
repos = property(fget=lambda self: self._getRepos(),
File "/usr/lib/python2.6/site-packages/yum/__init__.py", line 551, in _getRepos
prerepoconf = self.prerepoconf
AttributeError: 'PackageKitYumBase' object has no attribute 'prerepoconf'

View 1 Replies View Related

Networking :: Simulate Mobile Agents With NS2?

Jan 7, 2011

how to simulate mobile agents with NS2 (docs , code ......)

View 2 Replies View Related

Programming :: Simulate Unix Kernel In C++ ?

Jun 2, 2010

How simulate unix kernel in c++..or give me a link....

View 2 Replies View Related

Debian Multimedia :: How To Simulate The Enter Key In X Windows

Dec 16, 2014

When I drink tea, the water splashed on my keyboard. It didn't cause any problems until a few mins ago. Now my Enter and right hand side shift key don't function any more (The new line in this text is copied from other thread).

So I would like to know how can I simulate an enter key press so that e.g. a command can be executed in terminal. Because I have some source code uncommitted, I want them at least get committed first.

View 2 Replies View Related

Debian Programming :: How To Simulate Script Execution

Aug 7, 2015

I'm trying to save the output of the script I wanna run but for some reason I cant manage to do it with "script.sh > Output_4.txt"

The thing is that the script was already run and it extracted some directories so when I try to run it again (to save the log to a Output_4.txt) bash says (see screen-capture) and of course the log's empty!!!!

View 2 Replies View Related

Fedora Servers :: Simulate A VH Through A Localhost With A Dynamic IP?

Nov 16, 2010

For backup and pre-functionality purposes, I need to simulate a VirtualHost in my Fedora (14) machine. I found some interesting links to carry out that process but with an IP fix.So, how can I simulate a VH through a localhost with a dynamic IP?

View 2 Replies View Related

General :: Simulate Ack By Using Grep With The Right Combination Of Options?

Aug 25, 2011

I have ack-grep installed on my local machine, and find it indispensable for quickly 'acking' through a codebase when debugging. However, on my cheap shared hosting, there is no ack-grep. One of the testimonials on betterthangrep.com mentions a

Rube Goldberg mess of find/grep/xargs which sounds like what I need, but coming from the opposite direction.

View 2 Replies View Related

Ubuntu :: Simulate Bad Block Or Sector On Drive?

Feb 15, 2010

I want to simulate a bad block or sector on a drive or even a virtual drive image to test my data recovery distro. I wish I would have bookmarked when I read about it before. It was some type of low level command, I remember something about scsi subsystem or kernel thingabob.

View 3 Replies View Related

Ubuntu :: Simulate Keypress Via Keyboard Shortcut?

Feb 21, 2011

I have a G15v1. After going through hoops and loops to get it working only to discover that you only needed to install g15daemon through the Ubuntu Software Center, I found myself with one big problem. I migrated from windows just now, and there, I had my macro keys(the extra ones) bound to CTRL+W, CTRL+T and to a simulated mouse-wheel scroll so I could navigate the web more easily. How would I go about doing that? I figured, if I used the System->Preferences->Keyboard Shortcuts thingy and bound my key, in my case XF86Launch5, to a command similar to "simulate keypress CTRL+W"(I know it's totally wrong, just to give you an idea), I might be able to get it working again. Only problem is, I can't find anything like that. Any of you has any clue about it? I googled but I only find C++/Java/coding related results, which are not exactly what I need to do.

View 4 Replies View Related

Hardware :: Simulate Unplug And Replug Of USB Devices?

Jul 1, 2010

After some tests I found that some USB Bluetooth Dongles errors, only are recoverable if the USB is unplugged an then plugged again. Is there some way to simulate that a USB device is unplugged and re-plugged?

View 5 Replies View Related

Networking :: Simulate A 500Mbps Link On A 1000Mbps?

Mar 31, 2010

I need to simulate a 500Mbps link with a 100ms delay and a loss probability of 0.0001% on an ethernet link between two gigabit ethernet cards...I tryed to use these commands:

# tc qdisc add dev lo root handle 1:0 netem delay 100ms loss 0.0001
# tc qdisc add dev lo parent 1:1 handle 10: tbf rate 500Mbit buffer XXXX limit YYYYY

But during some simulation throughputs are very low ( 190Kbps....210Kbps....) for different values of XXXX and YYYY.... (I don't want that the loss probability is caused by the buffer and the limit value but only by the loss probability setted on netem...)

View 2 Replies View Related

Software :: Simulate Cron With Screen Manager?

Nov 10, 2010

I can't use cron on server. But on the same server i can use screen. Is there any way (any program) to run something like cron in the screen session? Or any solution for that problem.

View 3 Replies View Related

Programming :: Simulate Key Strokes Events In Other Processes In System?

Feb 3, 2011

I have a program that receive user input.
I want to run this program automatically without user interaction, and in order to do that I need to simulate key events.
How can I do such a thing?

The program I am running is partly java and partly shell.

The shell part is easily done by using:
./prog.sh <parameters (Parameters being a file containing parameters)
But the java doesn't work similarly.

View 7 Replies View Related

Programming :: Simulate Dijsktra's Algorithm Using Network Animator Of Ns2?

May 3, 2011

I need to simulate dijsktra's algorithm using network animator of ns2. how to write a tcl script for my code. This tcl script runs the dijsktra code and simulates its running on network animator.

View 1 Replies View Related

Ubuntu :: Simulate A Floppy Drive With User Read Write

Sep 17, 2010

I have a computer with no floppy drive (x64 ubuntu lucid installed) I have a program (wine windows xp) that will only save data and export data from/to a floppy drive. I found information on setting up an emulated floppy drive. i.e.

sudo dd bs=512 count=2880 if=/dev/zero of=imagefile.img
sudo mkfs.msdos imagefile.img
sudo mount imagefile.img /media/floppy -o loop

I modified the winecfg to include under the drive section A: /media/floppy. Problem is I cannot write to the drive as a normal user. I have tried everything I know but only root can read write to the drive. Is there someway to set up this emulated floppy to allow me as a user to write and read contents.

View 1 Replies View Related

Ubuntu :: Simulate Analogue And Digital(DVB) Cards During Development With MythTV?

Feb 13, 2011

Is there any way to simulate analogue and digital(DVB) cards during development with MythTV so I am able to do some basic testing on a separate computer without disturbing my real MythTV server ?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved