On Tue, 29 Nov 2016 03:59:45 -0800 (PST), Gourav
<
adityag...@gmail.com> declaimed the
following:
You don't say what type of data you are transferring so I have to blast
out lots of ideas.
Presuming the BBGw acts like the BBB, connecting via the USB activates
a TCP/IP (pseudo Ethernet) connection. The BBB (at least) runs an SFTP
server, so /file transfer/ can be done by merely using an SFTP client on
the host computer and logging into the BBB using the IP address on the USB
link.
If you are doing "real time" data transfers -- ie; one device is
collecting some sort of data and sending it to the other as it becomes
available (rather than collecting it into a file and some time later
sending the entire file /as a file/), then regular network "socket"
programming should suffice -- you'll have to impress some protocol on it as
TCP is a streaming protocol, and what you receive may be broken into chunks
of different size than had been sent (if sending text, you have to look for
the line endings; if sending binary data you may need to first send a
byte-count to tell the receiver how much data it needs to collect before it
can declare the record done).
IOWs -- you are not "talking USB"! The drivers to interface "sockets"
to the USB serial port emulation are already in place.
--
Wulfraed Dennis Lee Bieber AF6VN
wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/