Networking :: Sending Raw Data To A USB Device From Terminal In Ubuntu?

Jan 25, 2010

I want to send raw data to a usart port of my board connected to linux box. i know the command

echo "abcxyz" > /dev/<usb_dev_file_name>

would write the raw bits for characters abcxyz to the usb device but the problem is how do i know which device file to write to?there are so many in my /dev.

View 1 Replies


ADVERTISEMENT

Programming :: Sending Binary Data To Bluetooth With Terminal

Aug 30, 2010

I am using centos 5, want to send a sets of binary data to other bluetooth device I know how to sent a file but dont know how to sent raw data. My case is like this I have a bluetooth device I need to send data to then after it process I need to get it back, I plan to do this all using terminal is that possible?

View 2 Replies View Related

Networking :: Rsync Sending Data From The Client To The Server?

Jun 29, 2010

shed some light on what I am doing. I am wondering if I just havehings back to front.Server (MESH):Fedora 13Firewall ports open tcp 22(ssh), tcp 873(rsync)sshd service started

View 5 Replies View Related

Networking :: Sending / Receiving Data Simultaneously Using BSD Sockets

Jun 25, 2010

I would like to send a data using one thread and receive a data using other thread by using a same socket connection using USD sockets. The calls i am using for sending and receiving are send(), recv(). let me know is it possible to send and receive the data parallel (Full duplex communication)?

View 2 Replies View Related

Networking :: Sending Test Data From File To Port And IP

Apr 23, 2009

I'm working on testing some software, and I have a question. We have several files of binary data that we need to push through our application to test. It communicates via simple TCP sockets. Is there a way I can send this data to the socket from the command line? I tried doing something like this, but telnet never picked up the data.

View 5 Replies View Related

Networking :: Socat - Sending Binary Data From Client To Server

Apr 15, 2010

I am trying to redirect connection to port 8980 to execute a telnet command to a local machine
by issuing the following command :
In Server 1 :
socat TCP-LISTEN:8980,fork EXEC:/myscript,reuseaddr

My script contains
#!/bin/bash
telnet 192.168.20.12 //local Server 2

I am sending Binary data from the client to Server 2 via Server 1. So it happens that I have some characters in Hex translated to special characters in ASCII like open brackets or Commas etc.. and that closed the socket between the two machines.

View 2 Replies View Related

Networking :: Detecting Broken Connection Before Sending Data With Sockets?

Oct 28, 2010

I am writing a code in Python where a socket client changes data with the server. That works nice if the connection is up. However it is also supposed to work offline. So I need to be able to detect if the connection is up before sending data, but I was not able to do so. A summary of the code is like that:

Code:
try:
socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
socket.connect( (self.host, self.port) )
connected = True
except:
connected = False

if connected:
data = "some data byte"
try:
socket.send(data)
except:
connected=False
socket.close()

If I unplug the cable after the connection is ready then the socket sends data and does not detect the connection failure. What is amazing is that the client detects the connection failure just after the cable has been plugged again. Of course there is a loop in the code above and always that connected==False a new connection is made. How could the program detect the connection failure before sending data and then lead the code to an exception?

View 3 Replies View Related

Programming :: Sending Binary Data Through Sockets In C

Nov 29, 2010

I am coding a http server which has to send the file(s) such as images, .avi files, .mpeg, that the client is going to request. I have been trying of sending files through sockets.

char info [256];
bzero(info, 256);
//memset(&info,0,sizeof(info));
read(socket, info, 255);
write(socket, HTTP, 255);
FILE *fl= fopen(info,"rb");
fseek(fl, 0, SEEK_END);
long len = ftell(fl);
printf("largo: %ld", len);
unsigned char *ret = (char*) malloc(len);
fseek(fl, 0, SEEK_SET);
fread(ret, 1, len, fl);

However, it's supposed to be shown in Mozilla Firefox (as the client). But it is not doing it, so.. It's just not getting the complete file.

View 1 Replies View Related

Ubuntu :: Sending Email From Localhost Via The Terminal?

Jan 21, 2011

How can I send an email from localhost via the terminal? I don't need pop just smtp. I believe this can be done with postfix which I have just installed but what is the command to input via the terminal, on my centos box I use the following to send the contents of some files which works just fine but what about sending through postfix on ubuntu?

Code:

sudo tail -50 /home/user/.bash_history | mail -s "bash history" email@mail.com

View 3 Replies View Related

OpenSUSE :: Bluedevil - Sending Data Failed From Computer?

Apr 13, 2011

I have a question regarding Bluetooth with Bluedevil. Finally I got a connection working in one direction: sending files from my mobile (Google Nexus One with Android 2.3.3) to the computer. But I can not send files from my computer to the phone. I also tried to send files from my desktop to my Laptop and it fails. I also tried it the other way around: from Laptop to Desktop... fail.

What is it? Is it still a bug in Bluedevil and all I can do is wait? Or is there some package missing? The following packages (regarding bluetooth) are installed:

bluedevil
bluez
libbluetooth 3
pulseaudio-module-bluetooth

I don't believe that it is hardware related, because it works one-way... If I should post logfiles or whatever.

View 9 Replies View Related

General :: Find Soundcard Used By Alsa For Sending The Data?

Jun 1, 2011

I have slackware 13.0 installed in my system. how to find soundcard used by alsa for sending the data.

View 1 Replies View Related

Programming :: Extract Data By Sending Queries To A Website?

Dec 17, 2010

What would be the best way to extract data by sending queries to a website?

View 2 Replies View Related

Ubuntu :: Terminal Sending Emails From Invalid Address

Apr 27, 2011

When I am using Mailutils to send messages to myself as a test, I get them but they are from <"ryandward@ryandward"@gmail.com> which is not a valid email address and I have no idea why my system is configured to send them from this address. This is indicative of some problem there is going on in my system.

View 9 Replies View Related

CentOS 5 :: Sending Mail From Terminal?

Aug 24, 2009

cannot find what should I do, which conf should I edit to make it work. I cant send email from command line.

Is it necesary to have mail server setup? Hope not, just want simple txt mail sent. I tried MUTT and MAIL.

View 1 Replies View Related

Fedora :: Finding Out What Processes Sending / Receiving Network Data?

Oct 27, 2010

I have a desklet that, occasionally after toying with network stuff, will tell me that large amounts of data are being sent/received. What's a good way to determine what processes are occupying these resources?!

View 14 Replies View Related

Server :: Postfix And Amavist - Lost Connection While Sending End Of Data

May 24, 2010

Since today morning we are getting this error, could not track down the cause

We are running :
Postfix
Amavist and Clam

70A6C45A1CE: to=<actualemailid@yahoo.com>, relay=none, delay=0, status=deferred (delivery temporarily suspended: lost connection with 127.0.0.1[127.0.0.1] while sending end of data -- message may be sent more than once).

View 6 Replies View Related

Software :: Sending Out A Fax / Take Data In From A Web Form And Fax The Results To A Remote Fax Machine?

May 26, 2009

I want to be able to take data in from a web form and fax the results to a remote fax machine.

Does anyone know of any software for a server that would let me do this?

View 2 Replies View Related

Fedora Security :: Unknown Software Sending Data On Random Ports

Jun 1, 2009

I just discovered that my server is sending huge amount of data out at about 1Mbps. My immediate thought was the deluge bittorrent client, however it is supposedly not running (and a check confirmed its total active torrents was set to 0). I turned off the network and went in to Firestarter to set the outbound traffic to restrictive, turned on network again and no more data was sent. A look in Firestarter / Events showed a long list of random ports being used (see further down). How can I identify what program is sending all the data?

In Firestarter it doesn't really say much more than the port. Not sure if it is some misconfigured program or a malware/virus. I just got my ADSL connected a few days ago, and before that I used a mobile broadband (3G) as I just relocated. During the period I used the 3G the server might have been without firewall for a few days and it was also at this time I discovered an increase in network traffic (but I didn't really pay much attention at that time). I am running Fedora 10.

List of events from firestarter, my server is 192.168.1.100:
Time:Jun 1 16:48:12 Direction: Outbound In: Out:eth1 Port:39435 Source:192.168.1.100 Destination:58.208.xxx.56 Length:129 TOS:0x00 Protocol:UDP Service:Unknown
Time:Jun 1 16:48:12 Direction: Outbound In: Out:eth1 Port:6990 Source:192.168.1.100 Destination:112.94.xxx.212 Length:129 TOS:0x00 Protocol:UDP Service:Unknown
Time:Jun 1 16:48:12 Direction: Outbound In: Out:eth1 Port:2973 Source:192.168.1.100 Destination:118.93.42.xxx Length:129 TOS:0x00 Protocol:UDP Service:Svnetworks .....

View 2 Replies View Related

Ubuntu :: Deleting Folder And Its Contents From Terminal / Sending Permission Error?

Jun 10, 2010

how do i delete a folder and its contents from terminal? when i tried to delete the folder it returns a- permission error,,-

View 2 Replies View Related

Ubuntu Networking :: Can't Communicate Data With "nc 127.0.0.1 3333" In Another Terminal?

Jul 14, 2011

My necat (nc) doesn't listen! It means when I write "nc -l 3333", I can't communicate data with "nc 127.0.0.1 3333" in another terminal! Also after writing "nc -l 333", I don't see port 333 between the ports which are listening, by "netstat -ln | grep 3333".

View 1 Replies View Related

General :: Reading The Manufacturer Data / Device ID On A USB Drive?

Jun 28, 2011

I wish to read the Manufacturer data and other details such as Device ID, Serial number on a USB drive.

1. Could anyone help me out with information on the memory structure of a USB drive? (which location is the mnfr data stored?)

2. Are there are any commands in Linux that will help in reading/accessing this data?

View 3 Replies View Related

General :: Storing Data To An External Device From Aspire One?

Aug 14, 2010

I have an Aspire One with Linux operating system.

I have an external hard drive that I want to save data to from my Aspire One however when I try I get a message that the external hard drive is full.

I know it isn't full and when I use the external hard drive on my other pc with Window 7 it is fine.

I am assuming my problem is something to do with the ACER Aspire One

View 7 Replies View Related

Server :: Mount Raid Device To Recover Data?

Aug 20, 2009

In a nutshell, our RAID 1 array was rendered broken and we were advised that core lib files were missing and the OS needed to be reloaded... a quote from our server host:"The OS is not healthy.This server will need a reinstall.
Libs are missing." This was after having replaced what we though was a faulty /dev/sdb. So they reloaded the OS (Debian 5.0.2 x86_64) on 2 FRESH drives, and installed the old /dev/sda as /dev/sdc once the reload was completed. Here's the output of /etc/fstab on the fresh install so we know what we're working with:

Code:

debian:/BAK# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>

[code]....

The one problem I see myself running into is /dev/md1 and /dev/md2 are currently in use by the new system, so I cannot mount it there. I should also note, reloading the OS is a viable option if needed as we haven't started configuring the server yet. So if we need to reinstall the OS and assign the NEW RAID arrays to something other than /dev/md1 and /dev/md2 then we can do that.

View 3 Replies View Related

Software :: Amount Of Data Passed Through A USB Device (from USB Stick)?

Aug 17, 2010

I have a probably kind of unusual problem - when a USB stick is connected to the PC and data is copied from/to that stick, I need to know how much data has been copied. The data itself if not interesting, just how many bytes. I unfortunately don't have access to the program that does the copying, and most of the data doesn't end up on any drive (it just gets read and discarded), so I can't simply check the size of a target directory or something like that. I have had a look at usbmon, but that seems to produce way too much data - the normal case would be around 10 gig of data being read, and I can't have that blown up by a factor of 10 and lying around on the hard drive

View 4 Replies View Related

Software :: Raw Device Data Integrity Test Tool?

Jan 6, 2010

I've been looking for a good data integrity test tool for linux, but I'm having trouble finding one. Basically I'm looking for an application that will generate a heavy I/O load to a raw device and then perform some kind of data verification on the device. I my case the raw device will be md raid5 array.

View 1 Replies View Related

Ubuntu :: Output Data To Running Process In Terminal?

Jul 10, 2011

There is text based game in the Ubuntu repos called gomoku (just 5 in a row) it comes with the package bsdgames. The manual page [URL] lists an option (-b) to run it in the background. I want to try that and if I know how it works create a simple graphical front-end. When I start the program with:

Code:
gomoku -b

it starts and remains active, the terminal does not return to prompt which is OK as the command is not finished. The manual says the program reads from stdin, and this might sound stupid but how to get anything there?

I've tried to pipe an echo command to gomoku which works but ends the program after is receives input.

Code:
echo "black" | gomoku -b

just finishes. After that when you type another command like:

Code:
echo "justsometext" | gomoku -b

gomoku tells it expects either black or white as input. So it forgot the previous "black" because it is a new instance.

How do I pass text to an already running gomoku?

View 2 Replies View Related

Networking :: Serial Port : Read Data, Not Reading Complete Data?

Mar 5, 2010

I have an application where I am sending data via serial port from PC1 (Java App) and reading that data in PC2 (C++ App). The problem that I am facing is that my PC2 (C++ App) is not able to read complete data sent by PC1 i.e. from my PC1 I am sending 190 bytes but PC2 is able to read close to 140 bytes though I am trying to read in a loop.Below is code snippet of my C++ AppOpen the connection to serial port

Code:
serialfd = open( serialPortName.c_str(), O_RDWR | O_NOCTTY | O_NDELAY);
if (serialfd == -1)

[code]...

View 5 Replies View Related

Hardware :: EV-DO Wireless Data Terminal In Red Hat 6?

Feb 18, 2011

less data terminal to access the internet (make: ZTE CDMA2000V-DO Wireless Data Terminal).I can use it Windows 7 properly but the device doesn't show up in my Linux OS. I have a dual boot computer with Red Hat 6 Linux and Windows 7. Both the operating systems are working fine but I can't access internet through my Linux OS. Please help me find a solution so that I can use my wireless data terminal in my Linux OS.

View 3 Replies View Related

Fedora :: Recover Data From EXT2 Device (Card Or Image)

Dec 25, 2009

I was testing a bug in F12+Acer Aspire One and its 'suspend' feature (you can probably find the thread) and I ended with my SDHC card messed up. I formatted it as ext2 (or ext3, don't remember exactly) and apparently its superblock got corrupted. For one thing there is a single file I want to recover from the card (I don't mind formatting it afterwards). I am no expert using e2fsck or fsck, that's why I am asking here. In addition I used the "dd" command to create a backup of the drive in a file (so I can start tinkering with it). What is the best course of action to recover my files? Either from the card or from the image?

View 3 Replies View Related

Programming :: Monitor Temps And Values Fed In From A Data Acquisition Device

Feb 7, 2010

I'm thinking of a web based app that will monitor temps and values fed in from a data acquisition device but am seeking advice on what to use to produce the web page would php be powerful enough? The app will also have to have access to a shell for scripting, I know thats a security risk but it will not be in an exposed env. The web page will have a series of lcd readouts displaying the aquired data refresh rates will probably be around 5 seconds along with control buttons to turn on and off values. Storing data in a mysql database for statistical reports would be needed eventually. Ubuntu 9.10 will be the os. Is python easily integrated into apache?

View 2 Replies View Related







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