API for configure USB port of beaglebone green wireless board

106 views
Skip to first unread message

Gourav

unread,
Nov 29, 2016, 6:59:45 AM11/29/16
to BeagleBoard
Hello,

I currently using BeagleBone Green Wireless board for transferring the data from host PC to BeagleBone Board using USB. But I unable to find API for USB for this Board.Please help me to know from where I get API for writing a programme to transfer data using USB.

Thanks  

Dennis Lee Bieber

unread,
Nov 29, 2016, 8:14:57 AM11/29/16
to beagl...@googlegroups.com
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/

Gourav

unread,
Nov 29, 2016, 10:41:24 PM11/29/16
to BeagleBoard, wlf...@ix.netcom.com
Data which I want to send is Real Time Data. 

William Hermans

unread,
Nov 29, 2016, 10:51:29 PM11/29/16
to beagl...@googlegroups.com
"Real-time" is a subjective term. But, typically, "real-time", and USB are anti-synonymous.

So how about you start off with a use case. What is it that you wish to do ? Is this some sort of "framework" that can handle missed samples from *something* ? Or is it something that *needs* hard real-time, has to be x-amount timing for some operation ?

When you're using USB typically you're going to want to use some sort of a gadget driver. g_ether, g_serial, g_mass_storage. Unless you're wanting to use the USB interface on a very low level. But maybe this is what you want ? http://libusb.info/

Gourav

unread,
Nov 29, 2016, 11:02:48 PM11/29/16
to BeagleBoard
Thanks for the help, I really want this site.
Reply all
Reply to author
Forward
0 new messages