iyosch
Posts: 19
Joined: Tue Jun 09, 2015 6:40 am
Location: Jakarta, Indonesia

How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 6:48 am

How to use raspberry pi using pc via usb?
I am very new to raspberry and right now I don't have additional keyboard, mouse, and display. I think it will be easier for me if I could control / remote / access my raspberry pi from computer via usb. Anyone knows how?

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5621
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 8:18 am

iyosch wrote:How to use raspberry pi using pc via usb?
I am very new to raspberry and right now I don't have additional keyboard, mouse, and display. I think it will be easier for me if I could control / remote / access my raspberry pi from computer via usb. Anyone knows how?
The most common way to "control / remote / access my raspberry pi from (another) computer" is via an ethernet to ethernet connection, either directly wired or indirectly via a router (in which case either or both could be using WiFi). This is often called running "headless". It is possible to do something similar via USB but you need to have one of these cables or something similar (which are now hard to find, AFAIK):
http://www.cpmspectrepi.webspace.virgin ... Cable.html
Effectively they are a pair of these connected "back to back":
http://www.cpmspectrepi.webspace.virgin ... pters.html
and were originally called "lap(top)link" cables or similar.
TBH, using existing wired networking connections is simpler and cheaper (I'd bought the cable above some years before the Pi existed for "other purposes").
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

fruitoftheloom
Posts: 23337
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 8:23 am

iyosch wrote:How to use raspberry pi using pc via usb?
I am very new to raspberry and right now I don't have additional keyboard, mouse, and display. I think it will be easier for me if I could control / remote / access my raspberry pi from computer via usb. Anyone knows how?
You will need a USB NET Cable, they are like this http://www.maplin.co.uk/p/usb-pc-link-c ... male-tf06g
both Windows and Linux (whatever version installed on RPi) would need drivers.....


It would be easier to install Raspbian on the RPi

https://www.raspberrypi.org/documentati ... /README.md


Then cnnect the Windows Machine to the RPi via Ethernet Cable and use SSH

https://www.raspberrypi.org/documentati ... /README.md
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot)..
Asus ChromeBox 3 Celeron is my other computer...

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5621
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 8:35 am

fruitoftheloom wrote: ...
You will need a USB NET Cable, they are like this http://www.maplin.co.uk/p/usb-pc-link-c ... male-tf06g
both Windows and Linux (whatever version installed on RPi) would need drivers.....
Very similar to the device I've used (and linked to) - good to see they're once again available.
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 8:41 am

There is a way. The Pi has a serial port on it's GPIO header. That port is used, by default, to output kernel messages at boot time, after that there is a login shell running on it. So one could connect that to a PC with a USB/Serial adapter.

But the adapter cannot be connected directly to those pins. The serial side of an adapter uses 12 volt signally (or perhaps 5) so some voltage translation circuit is needed.

Or use a serial adapter like the Prop Plug that works a 3.3volts https://www.parallax.com/product/32201

All in all I would say forget the USB. Just use a network connection. You only need an ethernet cable to your internet router. If you have no such router make a direct ethernet connection to your PC.
Last edited by Heater on Tue Jun 09, 2015 10:08 am, edited 1 time in total.
Memory in C++ is a leaky abstraction .

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5621
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 9:17 am

Heater wrote:There is a way. The Pi has a serial port on it's GPIO header. That port is used, by default, to output kernel messages at put time, after that there is a login shell running on it. So one could connect that to a PC with a USB/Serial adapter.
...
Doh! Thanks for the reminder, forgot to take my "USB to USB hat" off :) .
FWIW, various other examples of USB-to-Serial (TTL, 3.3V) adapters and there use can be found here**:
http://www.cpmspectrepi.webspace.virgin ... pters.html
together with a simple "connecting board" with LED activity monitors etc.:
http://www.cpmspectrepi.webspace.virgin ... ector.html
Trev.
** including one to avoid which doesn't use 3.3V levels!
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Heater
Posts: 15949
Joined: Tue Jul 17, 2012 3:02 pm

Re: How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 10:11 am

The problem with that solution for me is that I like to use that serial port for communicating with other devices.

I would urge use of a regular network connection. Then you get to set up file shares with samba/nfs, copy files in and out of the Pi with scp, set up a web server on the Pi and a thousand other fun things.
Memory in C++ is a leaky abstraction .

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5621
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: How to use raspberry pi using pc via usb?

Tue Jun 09, 2015 10:31 am

Heater wrote:The problem with that solution for me is that I like to use that serial port for communicating with other devices.
I mainly use it with my A or A+, sometimes from another Pi (B+ or P2B), for fairly obvious reasons :)
Heater wrote: ...
I would urge use of a regular network connection. Then you get to set up file shares with samba/nfs, copy files in and out of the Pi with scp, set up a web server on the Pi and a thousand other fun things.
+1
As I've only one (large) monitor, which is shared with my netbook (on its VGA port) most of my Pi's are run headless, with wired ethernet connections to the router which assigns their (pseudo-)static addresses via dhcp. However, in the past, I've also made use of an HDMI 3-port switch to extend the "sharing" of the monitor:
http://www.cpmspectrepi.webspace.virgin ... tcher.html
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

iyosch
Posts: 19
Joined: Tue Jun 09, 2015 6:40 am
Location: Jakarta, Indonesia

Re: How to use raspberry pi using pc via usb?

Mon Jun 29, 2015 9:14 am

Thank you for all of your replies. Now it's about +3weeks for me using the Raspberry Pi. It seems my question is not very detailed. I should have told you that I am using Raspberry Pi A+, Running a custom Raspbian OS from Waveshare. I ended up using wifi donggle since the Raspbian Pi A+ doesn't have ethernet connection. And I ended up buying new keyboard and mouse for this rpi since I have to set the network for my wifi donggle using static internet connection. Again, thank you for all the answers you guys provided.

Return to “General discussion”