USB-Ethernet/Ethernet-USB


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users USB-Ethernet/Ethernet-USB
# 1  
Old 05-28-2014
USB-Ethernet/Ethernet-USB

Hi,

I have posted several times regarding my application.

In a nutshell, I have a server application that logs attached instrument data over USB and Ethernet. My restriction here is having two wires or more to plug all instrumentation in - at least one for USB and at least one for ethernet.

The solution for the USB instrumentation is to route them through a hub into one wire to plug into the computer.

I have seen several low-cost Ethernet->USB as well as USB->Ethernet adapters. I understand that they both get data to your computer but thinking from a lower-level point of view, how does the computer see the data?

For the Ethernet->USB adapter does this mean that data that was initially sent from an instrument in TCP protocol arrives at a /dev/ttyUSB* port in USB fashion? Would I connect to it in my program via accessing the USB port?

I am sure the answer is quite simple but i'd like to know before I order anything up.

An example of one of the units I am looking at is:

http://www.thesource.ca/estore/produ...2b1IULx3PD_BwE

Thanks in advance for your help.
# 2  
Old 05-28-2014
Think of it this way -- a serial cable is like a composite television cable. You plug it in and it shows up on the TV, more or less. There's not a whole lot of fiddling.

A network cable is more like an antenna cable. If you plug it in and see nothing, maybe you're on the wrong channel, band, protocol.... It can carry lots of different things at the same time, you have to select what you want.

This is why you can't just 'cat /dev/ethernetdevice' and see the raw data from your data logger. You need to know what IP address and protocol you want to get data from, and have to have your computer configured correctly to read it.

Is there a way it's supposed to be used? Absolutely but we don't know what it is yet since all the information we need to know is missing. You've refused to answer all our questions.

You've been asked repeatedly for information about the device you're trying to log from. What is it? What model is it? Chances are the device will not log information until you make a TCP connection to it. It might use telnet or it might use http or it might use something else. The information may be in its manual.

When you tried to make a network, presumably to talk to this device on, we asked you repeatedly what information you had for the various things on your network. Several working, cooperating pieces all correctly configured are are required for a working network; knowing one computer's settings is less than half the story.

Moderator's Comments:
Mod Comment We cannot help you if you don't start answering questions. We are not being mean. These questions are essential.

Last edited by Corona688; 05-28-2014 at 04:56 PM..
This User Gave Thanks to Corona688 For This Post:
# 3  
Old 05-28-2014
I already wrote a program using your advice last week to log the Ethernet (TCP) data. Works fine. Thanks for the help. I opened a socket and connecte to the instruments IP and Port (as provided by manufacturer). Packet data is logged to MicroSD.

Given my new knowledge of these different data trasmition protocols I was just wondering how these Ethernet->USB devices work that's all.

Sorry for being a pain.
This User Gave Thanks to fedora18 For This Post:
# 4  
Old 05-28-2014
The lack of feedback on your topics, and your fixation on turning eth0 into a ttyUSB device, gives the impression you're still fighting the same problem.

USB ethernet adaptors are nothing less than an external network "card". It will act just like your other ethernet devices. It will not make a TTY device. How could it? It's not going to have the correct port for your data logger built into the hardware.

There may be a raw USB device to read, but its data won't make much sense to you unless you spend some years studying USB protocol and reverse-engineering your USB network card's driver.
This User Gave Thanks to Corona688 For This Post:
# 5  
Old 05-28-2014
Okay, so the card would just have its own IP and port of transmission then?
# 6  
Old 05-28-2014
Yes, it'd need an IP address to talk over an IP network just like your other ethernet devices.

The "port" has more to do with the program you're connecting with. Consider it like a telephone branch office. The IP address is the "building", the port is the "extension number". Opening 1.2.3.4 port 80 would get you its web server, 1.2.3.4 port 21 would get its ssh server, etc.
# 7  
Old 05-28-2014
Does your data logging program absolutely require a serial port? You might be able to emulate that, running an external program to read from TCP/IP and write to a pretend serial device, or perhaps a FIFO.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

vio server ethernet to vio client ethernet(concepts confusing)

Hi In the vio server when I do # lsattr -El hdisk*, I get a PVID. The same PVID is also seen when I put the lspv command on the vio client partition. This way Im able to confirm the lun using the PVID. Similarly how does the vio client partition gets the virtual ethernet scsi client adapter... (1 Reply)
Discussion started by: newtoaixos
1 Replies

2. UNIX for Dummies Questions & Answers

USB-USB cable between linux and windows computers

Is there an easy way to setup a cross-over cable (USB-USB) between a linux box and a windows PC? My 2 machines are next to each other but I really do not want to keep transfering my files using my USB drive. Thanks! (4 Replies)
Discussion started by: Xterra
4 Replies

3. Solaris

solaris ethernet card and mounting usb drives

I had installed soalris 10 on my dell vostro 1400.It had installed succefully. If i type ifconfig -a it is showing only my loop back adpater. So how to tell me how to mount my usb drive and how to configure my lan ethernet card,My lan ethernet card is Broadcom. Tell me step... (1 Reply)
Discussion started by: testerindia25
1 Replies

4. Solaris

ethernet

my solris box network is unreachable how to solve this ipaddress assiagning and entry in vi /etc/host how to solve network is unreachable (2 Replies)
Discussion started by: tirupathi
2 Replies

5. Solaris

Ethernet Port Name

I have a new Sun 440 and I am trying to configure it. Non of the Ethernet ports are enabled; when I issue "ifconfig -a" it returns nothing. Is there a way to know the available port name (e.g. ce, bge, etc.) by running a command or so ? (4 Replies)
Discussion started by: StarSol
4 Replies

6. AIX

ethernet down

Hello everyone I have a problem with one server, has Aix 5.3 in the errpt has this message IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION F3931284 0105133009 I H ent0 ETHERNET NETWORK RECOVERY MODE EC0BCCD4 0105133009 T H ent0 ETHERNET DOWN F3931284 ... (4 Replies)
Discussion started by: lo-lp-kl
4 Replies

7. Solaris

Quad Ethernet

I have a Quad Ethernet card in a 220R. 2 ports activated. Each has its own hostname file and both hostnames are in the hosts file. I want both ports to have the same IP address so we can use the 2nd port in case we lose communication on the port. On bootup, the box gives me: SIOCSLIFFLAGS:... (5 Replies)
Discussion started by: hshapiro
5 Replies

8. UNIX for Dummies Questions & Answers

Ethernet

We are trying to Establish Network using Linux.Now we are facing the problem in configring Ethernet.In out network we are giving eth0 in server and activating it at the boot time,so it is activating as it is but when we define the Ethernet of node on server and allowing it to activate at boot time... (5 Replies)
Discussion started by: at_renai2001
5 Replies
Login or Register to Ask a Question