hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Control device and usb problem

Sat Jun 16, 2018 6:18 pm

I have problem with controling device Raspberry Pi version W with wifi and bt, i installed raspbian stretch on sd card, device booting up normal, but when i pluging mouse on keyboard by micro usb converter to normal usb (mouse or keyboard) then that device instantly shutting off, i dont know how to controll that device, is there posiblity to connect mouse by wifi? or operate device by pluging up to laptop? i readed much instructions on internet but i dont find nothing special, in they videos they talking i must write command on raspberry to connect it to controll that device, how to write command? i dont have keyboard or mouse on raspberry i cant write command

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

Re: Control device and usb problem

Sat Jun 16, 2018 6:34 pm

Does it work if you plug in the mouse and keyboard before connecting the power?

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Sat Jun 16, 2018 6:46 pm

cant boot with connected mouse before enabling device

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

Re: Control device and usb problem

Sat Jun 16, 2018 6:58 pm

Look for instructions in the forum for "headless setup". That will let you connect to the Pi from a PC, without a keyboard or monitor.

Also you might get more specific help if you post the make and model of your mouse/keyboard, and what power supply you are using.

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Sat Jun 16, 2018 7:05 pm

i have powered raspberry by usb pluged to my laptop, i dont have special charger for that, keyboard name is Hama Wireless Keyboard / Mouse set RF2300

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Sat Jun 16, 2018 7:11 pm

i look for headless setup and find it

viewtopic.php?t=74176

but this is instruction for mac, not windows

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

Re: Control device and usb problem

Sat Jun 16, 2018 8:23 pm

hardman73 wrote:
Sat Jun 16, 2018 7:05 pm
i have powered raspberry by usb pluged to my laptop, i dont have special charger for that, keyboard name is Hama Wireless Keyboard / Mouse set RF2300

Quite possibly your Laptop USB can not supply enough power, try a decent PSU:

https://www.raspberrypi.org/help/faqs/#topPower
Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Tue Jun 19, 2018 2:49 pm

so i bought 5v 1.2A micro usb power supply, when i connect mouse or keyboard that was still disable device, then i bought usb 4x usb separator for this, i conected this by micro usb -> normal usb adapter, now it looks that device didnt disable when i connect mouse, keyboard and more like 4g dongle at once by this separator, but mouse or keyboard still not working on my monitor, where is problem?

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Tue Jun 19, 2018 5:07 pm

how to enable pluged mouse or keyboard when i enabled raspbery zero w?

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Tue Jun 19, 2018 7:44 pm

do i must buy micro usb adapter to usb version OTG?

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Tue Jun 19, 2018 8:03 pm

maybe i must change something in txt files on raspbian inside card like cmdline.txt or something?

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Thu Jun 21, 2018 11:29 am

nothing works, I checked everything, is this device broken? can anyone help me?

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

Re: Control device and usb problem

Thu Jun 21, 2018 1:37 pm

If I understand your posts:
You have a Raspberry Pi Zero W, connected with an HDMI monitor and USB wireless keyboard and mouse?
You are using a 5V 1.2A micro USB power supply.
When you power it up, you see output on the monitor but the keyboard and mouse don't work?

I have no experience of using wireless keyboards on the Pi Zero W so I think you should try to get it working headless first of all:

On your PC you will need the following programs - they are all free.
Etcher https://etcher.io/
Advanced IP Scanner http://www.advanced-ip-scanner.com/ or Angry IP Scanner https://angryip.org/
Notepad++ https://notepad-plus-plus.org/
Putty https://putty.org/

Download the latest Raspbian image from https://www.raspberrypi.org/downloads/raspbian/ Use the desktop versioon, not Lite.
With Etcher, burn Raspbian to your SD card. There is no need to unzip Raspbian, and if/when Windows says you have to format the disk in drive whatever, click Cancel.
When it finishes writing and checking the SD card, close Etcher.
Eject the SD card from your PC then reinsert it. Don't let Windows format it!
In Windows Explorer, open the small "boot" drive on the SD card. Create a new text file "ssh".
Open Notepad++. Make a new file and copy and paste this into it

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
   ssid="yourssid"
   psk="yourpassword"
}
Change "yourssid" and "yourpassword" to match your wifi settings. They need to be enclosed in quotes.
NB if your wifi uses anything except WPA/WPA2 encryption, the file will need different contents.
Click Edit, EOL Conversion and choose "Unix (LF)"
Click File, Save As. Save it in the boot partition as wpa_supplicant.conf.
Close Notepad++.
In Windows Explorer, check that wpa_supplicant.conf is shown as a "CONF File" not a "Text Document".
Eject the SD card and put it in your Pi. Don't connect monitor or any USB device.
Connect your USB power supply.
Allow the Pi a couple of minutes for the first boot and to connect to Wifi.
Open Advanced IP Scanner or Angry IP Scanner and click Scan. If the Pi is connected there will be a line something like this

Code: Select all

Ok	raspberrypi	192.168.1.145	Raspberry Pi Foundation	B8:27:EB:C7:70:C7
Make a note of the IP address.
Open Putty and put the IP address in the "Host Name (or IP Address)" box. Click Open
A terminal window should open. Login as pi, password raspberry.

Congratulations, you have command line access to your Pi!
Next step is to get access to the Raspbian desktop. You can do that headless from your PC too but this post is long enough already!

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Sun Jun 24, 2018 12:54 am

i do all like on instruction you wrote, wifi is working on raspberry, but its problem at end, i putting 2 screens, its fatal error here
Attachments
2.png
2.png (126.72 KiB) Viewed 1317 times
1.png
1.png (133.97 KiB) Viewed 1317 times

jbudd
Posts: 1446
Joined: Mon Dec 16, 2013 10:23 am

Re: Control device and usb problem

Sun Jun 24, 2018 8:01 am

The most common cause for the "Network error: Connection refused" popup is that SSH is not enabled on the Pi.

When Raspbian boots, if it finds a file "ssh" or "ssh.txt" or "SSH.txt" in the boot partition. If it finds one, it enables ssh and deletes the file.

Put the sd card back in your PC card reader and look in the bit that Windows calls boot. On my PC it's the D: drive. There should be a folder "Overlays" and 20 or so files including config.txt and cmdline.txt.
Is this where you put your "ssh" (or "ssh.txt") file? Is it still there?

If the file has gone, SSH should be working on the Pi. But try once more making an ssh.txt file and boot the Pi.

If you still get the "Network error: Connection refused" popup, click OK then hold down CTRL and right click in the Putty window. From the popup menu select "Event log". There may be useful information in there.


Another possible cause of "Network error: Connection refused" is your router not allowing ssh traffic on port 22.
I see that ipscan24 detects/scans two IP ranges 192.168.137.1-254 and 192.168.8.1-254, though both your PC ("Admin"?) and the Pi are on the 192.168.8.n network. Is there something unusual about your network setup?

There is a tool Nmap available from https://nmap.org/download.html. I've never used it before but it allows you to check if port 22 is open on a network. It installs as Nmap - Zenmap GUI. Run the command nmap -p 22 192.168.8.102. Hopefully you will see "22/tcp open ssh"
nmap.jpg
nmap.jpg (55.97 KiB) Viewed 1299 times

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Sun Jun 24, 2018 8:51 pm

i have this (photo under post)

so now from what to starting identify problem of inputing usb or solve keyboard problem?
Attachments
3.png
3.png (116.62 KiB) Viewed 1272 times

hardman73
Posts: 17
Joined: Sat Jun 16, 2018 5:31 pm

Re: Control device and usb problem

Wed Jun 27, 2018 4:29 pm

working! :)

Return to “Beginners”