Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access USB Ports #4877

Open
ChaosUntamed opened this issue Nov 9, 2022 · 30 comments
Open

Unable to access USB Ports #4877

ChaosUntamed opened this issue Nov 9, 2022 · 30 comments

Comments

@ChaosUntamed
Copy link

Please paste the output of the following command here: sudo edit-chroot -all

Please describe your issue:

Hello everyone,

I installed Ubuntu Focal Fossa 20.04 on my old chromebook using this site as a guide. Everything seems to have gone just fine. But now, when I plug something into the USB ports, it pops up in the File Directory. But it only lasts a second or two and then disappears.

This only happens in the chroot environment. In the ChromeOS environment, the USB ports work fine. I did not provide the information above because the command returned an error that said it was not found.

Any help would be greatly appreciated. I need the USB ports to work to connect my 3d printer to the chromebook.

If known, describe the steps to reproduce the issue:

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

hello i assume your using the cups printer driver
yes to ports are closed in change root
#143
my suggestion is to print spool in lpr to a file and send it via chome lpr not cups

or open the port
port 631
CUPS uses port 631 (TCP and UDP), which is the standard IPP port, and optionally on port 515 by inetd, launchd, the Solaris Service Management Facility, or xinetd which use the cups-lpd helper program to support LPD printing.

@ChaosUntamed
Copy link
Author

hello i assume your using the cups printer driver
yes to ports are closed in change root

my suggestion is to print spool in lpr to a file and send it via chome lpr not cups

or open the port
port 631
CUPS uses port 631 (TCP and UDP), which is the standard IPP port, and optionally on port 515 by inetd, launchd, the Solaris Service Management Facility, or xinetd which use the cups-lpd helper program to support LPD printing.

Wow. That was way more complicated than I can even comprehend.

What I intended to do was install OctoPrint in the Linux environment and connect the printer via a micro USB (printer) to chromebook (usb).

But I need the USB ports to be accessible from the Linux environment. Would opening Port 631 do that? And how would I do so?

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

it make cups happy
read this
#143
save the output as a file spool later
great
https://github.com/OctoPrint/OctoPrint
octoprint serve --host=127.0.0.1 --port=8080
usb print hub server tcp/ip
https://www.amazon.com/U-S-ROBOTICS-Server-APLTLK-USR7500/dp/B0002VO7HE
open the the port take for CLI read in discussion about it

@ChaosUntamed
Copy link
Author

I'm sorry, I just don't understand what you're saying. Should I be following what they did in the #143 post? Even though that seems to be for a regular printer and not a 3d printer?

Is there something I should be following in the OctoPrint link? I'm very sorry, I'm just very confused...

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

octo print has a tcipip server octoserver use it
the print server is if you need it
you send cmd via a usb port or internet port it the same thing

@ChaosUntamed
Copy link
Author

octo print has a tcipip server octoserver use it

Will this solve my usb port problem?

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

yes i have no idea you have to test it
USB is hardware tcpip is software

@ChaosUntamed
Copy link
Author

yes i have no idea you have to test it

I would love to. If I even knew what "it" is. I know very little about any of this. I've just been trying to figure out how to use OctoPrint on this chromebook I bought and it has led me down a very long, dark tunnel that I know nothing about...

I'm sorry if I'm wasting your time. I just don't understand any of this.

@TomTravis
Copy link

yes i have no idea you have to test it

I would love to. If I even knew what "it" is. I know very little about any of this. I've just been trying to figure out how to use OctoPrint on this chromebook I bought and it has led me down a very long, dark tunnel that I know nothing about...

I'm sorry if I'm wasting your time. I just don't understand any of this.

usb print hub server tcp/ip
https://www.amazon.com/U-S-ROBOTICS-Server-APLTLK-USR7500/dp/B0002VO7HE

this is you plug and play

@ChaosUntamed
Copy link
Author

How will that help when the chromebook won't read from the USB ports in the Ubuntu environment? Wouldn't that have the same problem?

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

forget USB on the CB
octoprint serve is a tcpip serve the connect to the usb print server via the wireless network no usb ubuntu needed
https://www.amazon.com/LOYALTY-SECU-Wireless-Print-Server-Printer/dp/B0994RDC74/ref=dp_fod_1?

@ChaosUntamed
Copy link
Author

I would rather see if I can get my USB ports to work on the CB. Maybe that sounds dumb and is overly complicated, but I've already invested money and a lot of effort in this route.

That said, if I can't get the USB ports to work, I'll see if I can't figure out how to use the Print Server that you posted as an alternative. Thank you for explaining things to me and taking the time to work with me on this.

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

I would rather see if I can get my USB ports to work on the CB. Maybe that sounds dumb and is overly complicated, but I've already invested money and a lot of effort in this route.

That said, if I can't get the USB ports to work, I'll see if I can't figure out how to use the Print Server that you posted as an alternative. Thank you for explaining things to me and taking the time to work with me on this.

join the club so time is money play with USB drivers in Octoprint that does not use them
or 39$ it works

@ChaosUntamed
Copy link
Author

That's a fair point. If I got that device. How would I use it?

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

That's a fair point. If I got that device. How would I use it?

read octoserver port 8080 send to print server simple config
you use via octoprint octoserver no USB is needed on chromebook(linux)
git clone https://github.com/OctoPrint/OctoPrint.git
build and install

@ChaosUntamed
Copy link
Author

ChaosUntamed commented Nov 9, 2022

I've had a long day and apparently my mind just isn't working with me. I'm utterly confused.
From my limited understanding currently, I get the device and plug it into my 3d printer. Then load octoprint up on my CB and access the wifi signal via the Ubuntu terminal using the commands specified. No idea what the "build and install" part means.

I don't know that that's right, but I'm gonna try to sleep on it and read through this again. Maybe it will click for me. Again, thank you for all your help.

@TomTravis
Copy link

TomTravis commented Nov 9, 2022

Screenshot_2022-11-09_12-09-14

I've had a long day and apparently my mind just isn't working with me. I'm utterly confused. From my limited understanding currently, I get the device and plug it into my 3d printer. Then load octoprint up on my CB and access the wifi signal via the Ubuntu terminal using the commands specified. No idea what the "build and install" part means.

I don't know that that's right, but I'm gonna try to sleep on it and read through this again. Maybe it will click for me. Again, thank you for all your help.

https://wiki.debian.org/CUPSDriverlessPrinting
some reading

Hello I sent you a invite to learn how to build and install you now have a supervised task so if you cannot do this and need more time just ask

The Project is SystemD Chroot
https://github.com/users/TomTravis/projects/3

https://github.com/ChaosUntamed
https://github.com/OctoPrint/OctoPrint.git

https://www.net-usb.com/usb-over-ip/

Screenshot 2022-11-09 6 51 31 AM

@ChaosUntamed
Copy link
Author

hello i assume your using the cups printer driver
yes to ports are closed in change root
#143
my suggestion is to print spool in lpr to a file and send it via chome lpr not cups

or open the port
port 631
CUPS uses port 631 (TCP and UDP), which is the standard IPP port, and optionally on port 515 by inetd, launchd, the Solaris Service Management Facility, or xinetd which use the cups-lpd helper program to support LPD printing.

Reading back through all this. I'd like to try opening port 631 and maybe 515.

CUPS is installed. How do I open a port using it? Specifically, what commands?

@TomTravis
Copy link

yes okay you like tcp then join the team and we go from there you have a invite and task

the command are not cli and you submit a table with command kinda like a print job
man ip-tables

@ChaosUntamed
Copy link
Author

Join the team? What exactly do you want me to do? I don't know enough about this stuff to even understand a single thing you said...

I'd love to help, but I'm drowning in my own inadequacy here. Very much out of my element.

@TomTravis
Copy link

TomTravis commented Nov 12, 2022

you have a invite yes, systemd chroot team you cannot fail it does not work yet ;-0
2ip.txt

here is a IPtable port 22 is open tcp 22 d,s IO sshd init service sort like cups

the service table on a systemd machine
IPservices(1).txt

@supechicken
Copy link

supechicken commented Nov 12, 2022

What is the output of sudo lsusb command (inside chroot) after you connected the 3d printer?

Btw better to not listen to the guy above, I don't think he understand what he said. (it seems that all of his comments were directly copied from results in google)

@ChaosUntamed
Copy link
Author

ChaosUntamed commented Nov 12, 2022

What is the output of sudo lsusb command (inside chroot) after you connected the 3d printer?

Btw better to not listen to the guy above, I don't think he understand what he said. (it seems that all of his comments were directly copied from results in google)

20221111_225200.jpg

This is what I get from that command.

Oh, wait. I missed the 'connect the printer' part until just now. One second.

@ChaosUntamed
Copy link
Author

What is the output of sudo lsusb command (inside chroot) after you connected the 3d printer?

Btw better to not listen to the guy above, I don't think he understand what he said. (it seems that all of his comments were directly copied from results in google)

20221111_225521.jpg

This is what I get running that command with the printer connected.

@TomTravis
Copy link

TomTravis commented Nov 12, 2022

tcp is the way octoprint is not usb

(bull)z@localhost:$ sudo apt install usbutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
usbutils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 75.9 kB of archives.
After this operation, 325 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 usbutils arm64 1:013-3 [75.9 kB]
Fetched 75.9 kB in 0s (239 kB/s)
Selecting previously unselected package usbutils.
(Reading database ... 162659 files and directories currently installed.)
Preparing to unpack .../usbutils_1%3a013-3_arm64.deb ...
Unpacking usbutils (1:013-3) ...
Setting up usbutils (1:013-3) ...
Processing triggers for man-db (2.9.4-2) ...
(bull)z@localhost:
$ lsusb -v
lsusb.txt

(bull)z@localhost:~$ lsusb -v -s 2:2

Bus 002 Device 002: ID 0bda:0416 Realtek Semiconductor Corp
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 3
bMaxPacketSize0 9
idVendor 0x0bda Realtek Semiconductor Corp.
idProduct 0x0416
bcdDevice 1.32
iManufacturer 1 Generic
iProduct 2 4-Port USB 3.0 Hub
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x001f
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 4 USB3.0 Hub
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0 Full speed (or root) hub
iInterface 5 Interrupt In Interface
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 19
Transfer Type Interrupt
Synch Type None
Usage Type Feedback
wMaxPacketSize 0x0002 1x 2 bytes
bInterval 8
bMaxBurst 0
Hub Descriptor:
bLength 12
bDescriptorType 42
nNbrPorts 2
wHubCharacteristic 0x000d
Per-port power switching
Compound device
Per-port overcurrent protection
bPwrOn2PwrGood 0 * 2 milli seconds
bHubContrCurrent 8 milli Ampere
bHubDecLat 0.2 micro seconds
wHubDelay 3202 nano seconds
DeviceRemovable 0x10
Hub Port Status:
Port 1: 0000.02a0 5Gbps power Rx.Detect
Port 2: 0000.02a0 5Gbps power Rx.Detect
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x002a
bNumDeviceCaps 3
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x0000f41e
BESL Link Power Management (LPM) Supported
BESL value 1024 us
Deep BESL value 61440 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (1
bU1DevExitLat 10 micro seconds
bU2DevExitLat 1023 micro seconds
Container ID Device Capability:
bLength 20
bDescriptorType 16
bDevCapabilityType 4
bReserved 0
ContainerID {ecf5adf1-5011-4005-91ec-71ca71
can't get debug descriptor: Resource temporarily unavailabl
Device Status: 0x0001
Self Powered
(bull)z@localhost:~$

@TomTravis
Copy link

Screenshot_2022-11-12_03-30-37

@ChaosUntamed
Copy link
Author

tcp is the way octoprint is not usb

Even beyond this, I'd like to get my usb ports working just to use other things that connect via USB. Such as memory drives, USB cd drives, and such.

@TomTravis
Copy link

well run in /usr/local/bin
yes my camera does not automnt like usb memory, so octoprint does not use usb also you have to make it us this

@Superchicken provided and wonderful solution lsusb, this is why i use the shared drive with chromeOS

@TomTravis
Copy link

ok i believe the USB ports devices and not shareable between chromeOS and chroot linux
if one has cmd the other does not

the idea is to get get chrome to stop Automount devices if you wish to use them in chroot
i do not use USB ports that much no need i dont have a cd drive or usb printer only mount phones and use the share folder with chromeOS

@TomTravis
Copy link

What is the output of sudo lsusb command (inside chroot) after you connected the 3d printer?

Btw better to not listen to the guy above, I don't think he understand what he said. (it seems that all of his comments were directly copied from results in google)

you do not have any idea, what have you done nothing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants