Programming :: Connect To TtyUSB With C/C++ ?

Apr 16, 2010

On ubuntu I try to access a PIC-controler via the ttyUSB0. I send a few command bytes and get the status from the controler. My C code works without problems on ttyS0 but with the usb-to-serial adapter (I tried two with defferent chipsets pl2303 + ch341-uart) it just sends but can't read from the controller.

With minicom I can communicate with an other computer without problems but in my code there must be something wrong for the ttyUSB.

Here my code for the termios configuration:

Code:

View 1 Replies


ADVERTISEMENT

Ubuntu :: No Ttyusb Showing Up In /dev ?

Mar 6, 2011

I have a usb cardreader that i find if i run lsusb but theres is no ttyusb showing up in /dev. Is there a way to manually add it?

View 1 Replies View Related

General :: No /dev/ttyUSB - In CentOS 5.4

Mar 5, 2010

I'm trying to configure a wireless broadband usb modem on centos but on executing wvdialconf /etc/wvdial.conf

I have allready install usb-modeswitch on system.

wvdial...only checks for ttyS1,2,3 and it doesn't search for /dev/ttyUSB*

When I manually check for ttyUSB's they don't exist at all.

View 1 Replies View Related

Software :: /dev/ttyUSB - Is Getting Locked

Feb 7, 2010

I am using Ubuntu 9.10.When ever i tri minicom i am getting error message as

Code:

I searched in /var/lock/ file. Nothing in that.

Code:

Then i searched /var/tmp/. No file related to ttyUSB*.

Code:

I searched in /tmp/ also. I didnt found any thing related to ttyUSB*

Code:

Sometimes it is working but after sometime it is getting locked.

View 1 Replies View Related

General :: Accessing Ttyusb As A Com4 Running Wine ?

Jan 6, 2011

I have 32 gigabytes of my hard drive wasted with a vistool installation a flaky don't look at me wrong or I will brake and you will have to reinstall me stinking winbloze

simple I want to fly my radio controlled helicopter and both programs that configure the radio transmitter so it talks sense to the model are windoze only almost (the wrong driver for the interface cable came with it the driver crashed and scrambled the configuration of the transmitter) the lesson here is XP drivers DO NOT! work with Vis-Stool

One of them will run on .NET (for windoze) and wine (I have no idea of how to install .net for linux ) it just dose not talk to the interface cable witch has a linux kernel module and connects the cable to /dev/ttyUSB0

Is there a way to make /dev/ttyUSB0 show up as a COM4 in wine.

View 1 Replies View Related

Hardware :: No TtyUSB Appearing When Flash Drive Plugged In

Apr 11, 2010

I am having some problems with the USB ports. Some people said when you hot plug a device into USB port, under /dev will appear a ttyUSB*. But for my laptop, no matter what device I plug into the USB port (say a flash drive). There are only bunch of usbdev1.1_ep00, usbdev1.2_ep00, usbdev1.3_ep00 and usbmon* files, but not any ttyUSB*? I want to know is what is the difference between ttyUSB and usbdev1.1_ep00 files?

View 1 Replies View Related

Hardware :: Huawei EC 1260 To Work On Hardy-Heron - Device Doesn't Create Any Entry In /dev/ttyUSB

Apr 20, 2010

I am having trouble with my new Huawei USB modem. It gets detected and lsusb shows me the vendor id and product id as 12d1 : 140b Huawei Technologies Pvt Ltd but the device does not create any entry in /dev/ttyUSB* am i missing something?

View 2 Replies View Related

Programming :: Socket Programming - Connect To An IRC Server In A C

Mar 16, 2010

I am looking to be able to connect to an IRC server in a C program. I have followed some instructions from an old book I have however it doesn't seem to be working. I've tried connecting to localhost on my ssh port and it still doesn't want to work. This is what I have so far as a piece of skeleton test code:

Code:
#include<sys/types.h>
#include<stdio.h>
#include<stdlib.h>
#include<sys/socket.h>
#include<unistd.h>
#include<netinet/in.h>
#include<arpa/inet.h>
[Code]....

View 1 Replies View Related

Programming :: Connect() Gives Error In C++

Feb 4, 2011

Code:

When i call Connect() in side HandleConnection() it returns -1 and when i set strerror(errno) it returns "No Error" with value 0.

View 12 Replies View Related

Programming :: Connect To Sybase Using FreeTDS?

Jan 26, 2011

My freetds.conf

Code:
# /usr/local/etc/freetds.conf
# $Id: freetds.conf,v 1.12 2007/12/25 06:02:36 jklowden Exp $
#
# This file is installed by FreeTDS if no file by the same
# name is found in the installation directory.

[Code]...

View 2 Replies View Related

Programming :: Create C Programs That Connect With Each Other?

Nov 22, 2010

So I was reading one of the Unix Philosophy rules by Eric Raymond:# Rule of Composition:Design programs to be connected to other programs.How does one achieve that? I know one could several C programs and then use a bash script to feed in the stdin, but how do you do that with just pure C, do you do it with pipelines?

View 2 Replies View Related

Programming :: Connect A GSM Mobile To The Computer?

Feb 4, 2009

I am doing a project to develop a application that sends sms from a GSM mobile connected to the system. But i dont know how to detect a mobile fone and access it.

View 2 Replies View Related

Programming :: Unable To Connect With Java Listener

Sep 26, 2010

I have a centos 5.5 machine. I have forwarded both port 22 and 8080 on my router. I can connect on 22 via telnet ip 22 and even can remotely login into the machine. The problem when I start my java listener program which is listening on 8080 it cant not establish any connection (via telnet ip 8080). I have even add this into the iptables too -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT. I have disabled the SELINUX too.

View 9 Replies View Related

Programming :: Possible To Connect A Signal Handler To A Variable?

Nov 1, 2010

Is it possible to connect a signal handler to a variable?So when the variable changes the signal handler is called.I have a vector containing strings which i want to parse when there are one or more available strings in the vector

View 3 Replies View Related

Programming :: Connect Math.h Library To C Program?

Jun 27, 2010

I've started programming in c recently . following are the details about scene:

* vim is editor and program is compiled in gcc whenever a program involving math function appears it gives error i.though math.h is included in header file compiler complains about it it gives error of unrecognized function that math function like sqrt, etc question is how to connect math.h to a program.

View 14 Replies View Related

Programming :: Connect A Client To A Server In Windwos?

Mar 25, 2010

I am getting this error when i try to connect a client to a server in windwos ,anybody knows why ?

View 3 Replies View Related

Programming :: Memory Leak Whenever Try To Connect The Server Using The ()?

Jun 3, 2010

I am facing problem of Memory leak whenever i try to connect the Server using the ().

View 2 Replies View Related

Programming :: Connect To Remote Unix Server Using Script?

Aug 4, 2010

1)We need to do a clean up a folder in a remote unix server . What is the best option to connect to remote server? how do we use ssh ? Is there any prerequisite to use ssh?

2) We have to SCP few files to another folder in a remote unix server . I formed the below command to use in script. Is it of correct usage? scp -r $POS_HOME/posctl [login nameip address:/home/username/directory]

I have seen public key/private key generation part for SCP. How do we handle this? Does this need to be done as unix admin?

View 7 Replies View Related

Networking :: Socket Programming - Connect To Port Y On IP X With Telnet

Sep 16, 2010

I have a customer who is complaining that they can connect to prt y on IP x with telnet. They are seeing the following:

telnet x.x.x.x y
Trying x.x.x.x...
Connected to x.x.x.x.
Escape character is '^]'.

after some time the connection of course times out. Connection closed by foreign host. There is no telnet service running on this port so they cannot do anything, but they are complaining tht the fact that telnet "connects" is a security risk. I am having difficulty explaining why they are able to connect with telnet. I know it has to do with the socket layer API in Linux but I am having difficulty explaining this sufficiently. I also can't just say "this is the way linux works" to them. I am looking through "UNIX Network Programming" by W.

View 3 Replies View Related

Programming :: Connect To Sourceforge.net And Manage Files Trough Ftp?

Nov 30, 2010

seems that the secret way to manage sourceforge.net files without pain and blood is not revealed yet!I uploaded some files in my sourceforge project named blackwar .I want to connect to my projects folder in sourceforge.net using filezilla or gftp.I want to see my files there and manage them.

View 3 Replies View Related

Programming :: Get Parse Error When Connect The Page With A Database

Jan 27, 2011

I'm creating a comment form for a website but when I try to connect the page with a database it gives me a parse error. here are the codes I wrote:

[Code]....

View 1 Replies View Related

Programming :: Telnet: Connect To Address 127.0.0.1: Connection Refused

Jul 21, 2010

I want to create script wherein it will check the application if its running. The command that I'll be using to check the application is telnet (if you can recommend others, that's ok). I've an application and it is listening to port 1808. If I do telnet localhost 1808, the response is :

Code:

[root@test ~]# telnet localhost 1808
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

What I want to happen is if the response is like to code above, it will execute a commands. Obviously, above code knows that the application is not working so I need to execute a commands. I created a script before using expect but I don't think it will work because I haven't establish a shell yet unlike successful telnet I could spawn expect.

View 5 Replies View Related

Programming :: Apache Configuration To Connect To Network Adapter Via Web Application

Feb 15, 2009

I want to run snort through a web application with exec("snort -v -i eth0 ") php function.for example when start button was pressed snort should be run,but the execution failed with this error:but when I run snort command via command line as root it will execute successfully.I think this problem is for that apache user haven't access to network adapter, is my guess correct? I have no experience with apache, should I change apache configuration? what is the configuration for this problem.I think I should find a way to allow apache to access but I don't know how?

View 2 Replies View Related

Programming :: Connect Multiple Sockets From A Single Client To A Single Server And Keep Them Open?

Oct 13, 2010

I have question about the UNIX sockets. my goal is to connect multiple sockets from a single client to a single server and keep them open...I'm not sure if that is possible to create or not. Do you have any suggestion or an example of code?

View 1 Replies View Related

Programming :: Script - If Telnet Root Hostname Fails Then Try To Ssh In - Error "Unable To Connect To Remote Host: Connection Refused"

May 11, 2010

I'm trying to make an SSH script for my place of employment. This script, I want to go out to the server hostnames we have specified (in another file) and change a users account password. We use Kerberized telnet, so if telnet root hostname fails, I want it to use ssh username hostname and use the old password (specified). If both fail, I want it to ask the user what the port should be and input the port in the ssh command.

But I'm having a issue having it try telnet root hostname and if it fails then, try to ssh in, I have no clue how to have it proceed. Is it an if statement? Here's the telnet failed message: telnet: Unable to connect to remote host: Connection refused

View 7 Replies View Related

Fedora Networking :: Connect Two Pc In Fedora Using C Programming?

Apr 14, 2011

how to connect a server with several client using c programming?I have the program, but how do i use it?setting up network in fedora? i really don't know anything on how to do it

View 4 Replies View Related

Fedora Networking :: Using Putty To Connect To A Machine / Host Name And Port To Connect?

Jul 23, 2010

Right now I have a machine set up running Fedora. I have configured inittab to accept Console Logins, but I am having problems getting my netbook running PuTTY to connect. How would I go about finding the Host Name and Port to connect to?

View 6 Replies View Related

Ubuntu Servers :: Unable To Connect To System Bus: Failed To Connect To Socket

May 29, 2010

I tried to install vsftpd on my server and while the installation went fine, I can't run

Code:
restart vsftpd
As I the get error
Code:

restart: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Though I'm able to restart the service with

sudo /etc/init.d/vsftpd restart with a warning telling me to use the service utility. Not only that, but despite the port being open it won't allow me to log in, it just hangs, and I have local users enabled (I've used the default .conf file). Does dbus not come installed in 10.04, and if I did install it would it make a difference for restarting the service? Are there further steps needed not available in the tutorial on the Ubuntu Server Guide for 10.04 to enabling local user authentication? -edit- Figured it out, dbus wasn't installed, vsftpd is working fine now.

View 4 Replies View Related

Ubuntu Networking :: Wireless Can't Connect - (Toshiba Laptop 10.04 64 Bit) Hanging When Trying To Connect

Jun 12, 2010

My wireless (Toshiba laptop, 10.04 64 bit) is just hanging when trying to connect. It was working fine but now nothing. My Wireless antennae is on and my other laptop can connect with no problems. I have restarted the router and the laptop twice.

View 1 Replies View Related

Fedora Servers :: Getting Error Message When Trying To Connect To Vncserver 'unable Connect To Socket: No Route To Host (113)'

Apr 26, 2011

I install and configure the vncserver following and reading 1000papers, but all of this present the same problem; when i try to connect to my vncserver,recive this mesage: unable connect to socket: No route to host (113) The OS version is Fedora Core 14 and tigervnc-server i try different solutions including:Allow TCP connection modifing files /etc/gdm/custom.conf and /usr/share/gdm/gdm.chemas Disable SELinux removing iptables Here follow the vncserver configuration:

[code].....

The ip address of the vncserver is correct because i can do ssh on it. Where or what can i do?

View 4 Replies View Related







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