Tiny Core Base > Raspberry Pi
USB gadget kernel module with RPi zero
Juanito:
With usb modeswitch on the RPi?
creitzel:
--- Quote from: Juanito on October 06, 2022, 01:57:27 AM ---With usb modeswitch on the RPi?
--- End quote ---
I think I see what is going on now. Windows has changed it's usb detection code, and there is more needed on the pi side now. Several people have encountered the problem of g_ether being misidentified as a serial device. Here's a link that describes the problem
https://answers.microsoft.com/en-us/windows/forum/all/windows-10-vs-remote-ndis-ethernet-usbgadget-not/cb30520a-753c-4219-b908-ad3d45590447
one of the answers on there led to a script file using the configfs that supposedly handles this problem (see the comment by dlech). I adapted the script file for piCore, and it did indeed make Windows see the device as an RNDIS device, the first couple of times I plugged it in. Then it went back to recognizing it as a serial device, and at one point actually killed the wifi support on the pi, so I had to go back to using an HDMI/Keyboard setup to access it again.
I think I've had enough fun with this approach. Ultimately, all I'm looking for is an easy way (other than wifi) to access the pi via ssh. I think I'll switch back over to my bluetooth investigations, and see if I can't get something going there. I'd actually prefer to use bluetooth if I can, because when the project is done, I don't want to have to disasseble the case to get access to the usb port on the pi.
curaga:
BT is a huge stack too, with lots that can go wrong. If I may suggest changing the hw, get a regular Pi that has an ethernet port too, would be the simplest solution.
creitzel:
--- Quote from: curaga on October 07, 2022, 02:32:13 AM ---BT is a huge stack too, with lots that can go wrong. If I may suggest changing the hw, get a regular Pi that has an ethernet port too, would be the simplest solution.
--- End quote ---
Yeah, I'm familiar with regular pi's too, I've had a few pi zeros, a few pi 3's and even have a pi 4. I got the pi zero for this project, specifically for it's size.
It's not really a big deal if I can't get some kind of SSH/maintenance interface going through usb/bluetooth. I've done a couple of projects with pi zero's already, but it would just be a nicety for me, if I didn't have to pull the pi out and hook it up to HDMI/keyboard to work on it. On the projects I've already done, I just keep 2 different sets of wifi settings on the zero, one which brings up the AP and allows users to connect, and one that disables the AP and connects to my home wifi, so that I only have to boot it once with HDMI/Keyboard, switch to the settings for my home network, and then I can ssh into it.
Also, it was a chance to explore and learn a bit more about pi's, as I've never done anything with the usb gadget interface or bluetooth before now. :)
Navigation
[0] Message Index
[*] Previous page
Go to full version