Software :: Application Doesn't Distinguish Between Different Input Ports
Feb 26, 2010
I working on a project, where a central unit (we call it System Controller ) should talk to several peripheral units on different input ports. The system controller have 4 RS485 ports, 1 RS232, 1 USB A, 1 USB B and a switch with 2 TCP/IP ports. The problem is that when the peripheral unit that is supposed to be connected to one of the two TCP/IP inputs isn't connected (which the system should be able to handle), the software thinks that data from the unit connected to the RS232 port is from the unit that should be connected to the TCP/IP.
The input peripherals are defined as:
#define CR_DEVICE "/dev/ttyS1" // ttyS1
#define SL_PORT "/dev/ttyUSB0"
#define BO_PORT ""
It is the last one which are supposed to receive from the TCP/IP port, and of course the first one which should receive data from the RS232 port.
I am using a C application which connects to various other C applications at different ports through TCP,sends requests to all of them and then waits for the responses. The problem is that when the requests are fewer it gives a good response but with the increase in load the port at which the master application is listening get hogs and is unable to receive the responses.Can you please suggest the best way to tackle this issue? Is it possible for the master application to listen at multiple ports so that the load gets distributed and how?
I am running an application called QuantiSNP [URL]. The binary file is "quantisnp2", called upon in the "run_quantisnp2.sh" supplied by the authors. I am only able to run the application for single file processing (e.g. 1 input file for 1 sample; I can't run the batch file processing because I don't have the necessary BeadStudio report files, which has different formatting for the input files).
The difficulty is that I have 300 samples (300 unique sample IDs) and 3 input files for each sample for a total of 900 runs of this application. I am wondering how would I be able to automate this process as a shell script instead of basically manually changing the sample ID and respective input files every time a run completes? I bolded the single file processing shell script command line options below that need to be changed for each sample/input single file processing run. The command line option "--sampleid" is for the name given to the processed output files corresponding to the sample of interest and there are 3 input files for each sample.
when I call a windows application with wine I cannot type anything when the application asks for it. The typed keys are displayed in the terminal instead. I use a ubuntu-based distro.
when i enable my ufw it completely shuts me out and closed my internet connection. i installed firewall configuraiton interface and through it defined rules to accept incoming internet connections on port 80, i can see the rules are there but when i enable my firewall it just shuts me out completely again. when i do(with my firewall enabled):
Code: $ sudo ufw status it gives me: Quote: Status: active
[Code].....
I also messed around with fwbuilder and iptables but since then deleted fwbuilder(besides i just compiled firewall policy and never actually installed it because of errors while trying to install it. Iptables I cleared with:
I am trying to use Rosegarden but it does not see any midi ports. If I run LMMS it is able to see 20:UA-4F and 14:Midi Through. Jack sees them too. Furthermore, Rosegarden's transport does not even start, no synths availble. How to set rosegarden? (I am using Ubuntu 10.04 LTS - the Lucid Lynx)
I have an Ubuntu 10.04 installation that I have been using for about a month. However, just recently, at random times for about 5 seconds I can't use my mouse or keyboard.When it does that, the computer isn't frozen, I just can't type.About 5 seconds later, all the text that I was trying to type suddenly appears. I have 4GB or RAM, and even when I barely have any programs running and at 0% of resource usage, the problem still persists. This has just been happening for the past day or so.
I am trying to learn C++.I implemented a simple archive program, and I am in a situation in which the user is prompted by a menu to make a choice.So I have some cout instruction to illustrate the possible choices and then
int choice; cin>>choice;
and everything works fine.I introduced this code in a "while" loop that checks wether the choice made by the user is valid or not:
bool check=true; int choice; while(check) { cin>>choice; if(the choice is valid) {...;check=false} else cout<<"please make an other choice" }
What is happening is that if by mistake the user introduces a character in place of a number, the loop repeats indefinitely because the program, when it get to the "cin" instruction, does not pauses to wait for a new input.
For some reason on any application that uses sound, but doesn't allow me to specify the input/output audio devices I don't get anything. I want all audio to go to my USB Headset, and not the onboard soundcard. To start off with, here's alsamixer: Here's a screenshot from Mumble (voice chat) that shows that I've set the USB headset device in there, and it works 100% fine on Mumble.
[Code]...
As you can see from the alsa-base.conf above I've tried specifying snd_usb_audio as the default device, but it's not working.
Currently the way tabs on the taskbar look (the bar at the bottom) make it a bit hard to distinguish between them. sometimes they all look like one big clump of text. its quite messy. when you look at something like the windows xp taskbar [URL] its much easier to see between them. I guess its also because the buttons look 3D in that they stick out a bit. Plus the choice of colours used for when you are on a tab helps.
suppose in tab separated file with n columns and if in a column i put a value which is space separated .how can i able to find out a specific column..ie
I am running a server at home, and on rare occasion my server will shut down. Is there a logfile I can check to determine whether the server was shutdown due to a script on the computer, a power loss, or someone hitting the power button? I am not by any means a linux guru, but I know enough to get around.
I've tried installing both ibus-anthy and ibus-mozc in Jessie but I still cannot input Japanese.
By contrast, In Wheezy, when using anthy for example, I can see ibus preferences icon where I can configure ibus and anthy. This doesn't show up in Jessie.
I'm playing with apache (and to be quite honest have no idea what I'm doing at this stage!) and currently have a large number of files and folders on the sad little site. One thing that is really bothering me is that files and folders both appear the same. I'm not looking for anything fancy. Something like this is more than adequate. Right now there is simply a dot next to each item.
I'm running Ubuntu Server 9.10. I have two external USB HDDs. I use them each for different backup reasons. So certain data gets stored on one HDD, and different information gets stored on the other HDD.
I want to make a script that can look at the external HDD can determine which HDD it is, so that it can copy the proper information to it. Is there a way for Linux to determine this? Like if I see one HDD as /dev/sdc1, then unplug it and plug in the other HDD, should Linux see it as /dev/sdd1 or will it be /dev/sdc1?
I don't quite understand how it determines the /dev/sdxx values that it assigns to drives.
Just wondering, what happens when you have multiple server softwares listening to the same port? will it be able to distinguish which service to use by the protocol information, or is it setting it up for failure?
I'm writting an app for desktop and embedded linux and I need to get information about the multiserial port, and I need to know which port is been used (by a printer, por example).The multiserial I'm using is an Altera Corporation Device 0004, and I just need to tell how many ports are there and how many is been used.
I've installed fc10 but I got some problem with the audio driver for my Dell Vostro 1700. In particular line input doesn't work correctly neither the built in microphone, neither the line input. Is there a special driver?
I'm running Ubuntu in a virtual machine inside win7. I've installed the game FreeCol, played a bit and when i try to quit the game doesn't close. I can continue playing but i'm basically trap in the application. Is there any keyboard command i can use to force quiting the application? Or any other idea on how to proceed? Could it be a limitation of the virtualization?
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.
I've run into a problem that the combination ALT+F2 doesn't launch Run Application I have Linux Mint 10, the key combination is assigned all right in 'Keyboard shortcuts' and in gconf-editor.
Using F11, when the Rosetta Stone 3 application cd is inserted it is mounted but no files appears. df -h shows it is mounted (/media/RS_App) with 409M but it appears empty when you list it. The cd drive does work on other cds, and the application the cd itself works in Windows. Wine hq says it works but I cannot find the problem and I found one person using Ubuntu with a similar problem but there was no answer on how to fix.
I really liked the new Appmenu included in the netbook version of Ubuntu so I installed it on my desktop. Unfortunately in regular Ubuntu the appmenu doesn't show the application title, just File, Edit, and so on. The old globalmenu package showed the application title in bold, and the netbook version of ubuntu seems to as well. How can I get this in normal Ubuntu?
I've been using kubuntu from time to time, and one thing that i love was the option to install/uninstall as if it was another common windows application. A few days ago, i downloaded the 10.10 release, and after i executed wubi, i just get 2 option: Full demo and install and learn more So, am I doing something wrong? BTW, i also run wubi with an ISO next to it, but it shows the same window. So, is there a way to install kubuntu as a windows appa again? I've tried google, but everything seems to point that that feature still exists, but i cant find it.
My application is developed using GCC and an binary executable created out of it which initializes successfully. By initialization, I meant all the threads in the application are created and I get the required response from the executable. There was a need to create a .so file out of my application instead of binary executable, as it needs to be integrated with another .so file to create a final patch. So we used -fPIC compiler option and created a .so and also an binary executable. But with -fPIC included, the executable fails to initialize at all. It executes some instructions in the main program, before finally haulting down with a " Program received signal SIGSEGV, Segmentation fault." error. And it always fails at the same faulty address which points to nothing in my application code. What is that -fPIC adds to the code, which makes my code fail with strange behaviour.