Go to advanced search

by thagrol
Tue Jan 12, 2021 12:09 am
Forum: General discussion
Topic: Does someone know if one can purchase this cable?
Replies: 15
Views: 427

Re: Does someone know if one can purchase this cable?

Imperf3kt wrote:
Mon Jan 11, 2021 11:22 pm
Shouldn't the white and green wires be swapped?
White to green, green to white.
Don't know. But AIUI D+/D- (the green and white wires, not necessarily in that order) are a differential pair not a tx/rx pair.

I could easily be wrong about that though.
by thagrol
Mon Jan 11, 2021 7:57 pm
Forum: General discussion
Topic: Does someone know if one can purchase this cable?
Replies: 15
Views: 427

Re: Does someone know if one can purchase this cable?

That depends on which driver you're using. dwc only works in host mode. dwc2 will use the ID pin unless forced at load time to be either a host or a device. Without an ID pin or an OTG adapter the dwc2 driver will default to device mode. Could you elaborate on "DWC drivers"? I just use Ra...
by thagrol
Mon Jan 11, 2021 7:27 pm
Forum: General discussion
Topic: Save installed package list to file for rebuild later
Replies: 8
Views: 178

Re: Save installed package list to file for rebuild later

Code: Select all

history | grep apt
Though it might not catch everything depending on the size of your command history (and how many lines you've set it to remember) and whether you always used one use to run apt/apt-get.

Won't help if you've been using the GUI package manager.
by thagrol
Mon Jan 11, 2021 7:24 pm
Forum: General discussion
Topic: Does someone know if one can purchase this cable?
Replies: 15
Views: 427

Re: Does someone know if one can purchase this cable?

Thank you for the link! IMHO The Pi Zero does not sense the OTG pin at all: it uses OTG by default. My cable works well and has no OTG signal That depends on which driver you're using. dwc only works in host mode. dwc2 will use the ID pin unless forced at load time to be either a host or a device. ...
by thagrol
Mon Jan 11, 2021 7:03 pm
Forum: General discussion
Topic: i wish ATX cases exists for the raspberry pi
Replies: 17
Views: 746

Re: i wish ATX cases exists for the raspberry pi

i've been searching for a while and i don't see any miniture ATX cases available for the Pi. all of the other usual types i've seen are matchbox type cases for the pi. anyone feel the same way? Nope. It's trivial to install a Pi into an ATX case. It's trivial to start an ATX PSU. Some Pi will run o...
by thagrol
Mon Jan 11, 2021 4:47 pm
Forum: Advanced users
Topic: Powering Pi 4 from header
Replies: 11
Views: 295

Re: Powering Pi 4 from header

That's very interesting, thanks. I didn't realize the USB-C could be used for data and so hadn't thought of using the USB-C for the touch interface too - I'll try this as soon as my USB-C to micro-USB cable arrives. the usb-c port of a pi4(00) can also run in device mode, like a pi0, ive for exampl...
by thagrol
Mon Jan 11, 2021 2:26 pm
Forum: Troubleshooting
Topic: Automatic login
Replies: 1
Views: 62

Re: Automatic login

Code: Select all

sudo raspi-config
Look under boot options.
but if you have no screen there is litle point.

Doesn't octoprint present its interface as a web page accessed from a browser on a remote computer? When correctly installed that doesn't require a screen or a user to be logged in.
by thagrol
Mon Jan 11, 2021 12:18 pm
Forum: Python
Topic: Andon using PI
Replies: 9
Views: 291

Re: Andon using PI

neilgl wrote:
Mon Jan 11, 2021 11:52 am
Sorry, question was about displaying data, so I would start with python and guizero
I'd start with pencil and paper to design the data display. But that's just me.
by thagrol
Mon Jan 11, 2021 12:01 am
Forum: Python
Topic: Andon using PI
Replies: 9
Views: 291

Re: Andon using PI

neilgl wrote:
Sun Jan 10, 2021 11:46 pm
Connect you Arduino to the pi using a serial cable then use (Arduino) Serial.print to get the data to the pi. Then display it.
Ah the old tail -f /dev/ttySomething approach ;)

Assuming, of course both the Pi and arduino are using the same serial settings.
by thagrol
Sun Jan 10, 2021 11:43 pm
Forum: Beginners
Topic: Why ttylog from crontab is null?
Replies: 2
Views: 65

Re: Why ttylog from crontab is null?

Hi, I have a quick question for you :) I've created a bash script which is doing: #!/bin/bash ttylog -f -b 38400 -d /dev/ttyAMA0 -t 25 > /home/pi/Desktop/test/output_file.txt It works perfectly well, I get data in the file output_file.txt However, if I launch this script from a crontab, I get an em...
by thagrol
Sun Jan 10, 2021 11:34 pm
Forum: Advanced users
Topic: start watchdog timer in kernel and kick it in user space later.
Replies: 5
Views: 148

Re: start watchdog timer in kernel and kick it in user space later.

Which watchdog are you asking about? The hardware watchdog? The linux watchdog daemon? CM4 IO only: the wake/alarm input from the RTC? It's higly likely that the first two of those have come up before so a forum and/or websearch will likely provide the information you're asking for. Edit: You probab...
by thagrol
Sun Jan 10, 2021 11:31 pm
Forum: Python
Topic: Andon using PI
Replies: 9
Views: 291

Re: Andon using PI

Hello ghp, My project is to track the time of the Machine Assembly line in my company where I will connect some switches with my Arduino which will start recording time when manufacturing of a product starts and I will also add some switches which will also track the record of downtime of the machi...
by thagrol
Sun Jan 10, 2021 11:19 pm
Forum: Troubleshooting
Topic: Raspbian emergency mode
Replies: 17
Views: 490

Re: Raspbian emergency mode

thagrol: At least it mounts /boot and use it. I have tried grabbing and SD card out and checked /boot partiton in Windows and F2FS partition in Mint, everything was checked a result is "no errors" before I came to post here. Well there is clearly something not right. You should not need t...
by thagrol
Sun Jan 10, 2021 11:12 pm
Forum: Advanced users
Topic: Powering Pi 4 from header
Replies: 11
Views: 295

Re: Powering Pi 4 from header

In principle "yes". How much current does your touchscreen require ? I’m not sure, but the guide says to set max_usb_current=1”. So likely somewhere between 600mA and 1200mA. This is the screen I am using: https://www.waveshare.com/wiki/5inch_HDMI_LCD_(H) The video signal will come from o...
by thagrol
Sun Jan 10, 2021 5:14 pm
Forum: Advanced users
Topic: Powering Pi 4 from header
Replies: 11
Views: 295

Re: Powering Pi 4 from header

DIsplaylink support is notoriously poor on linux, recent chipset are likely not supported at all. If you can get it working it'll be slow as only USB 2 is available on that port. https://www.phoronix.com/scan.php?page=news_item&px=Linux-Generic-USB-Display there is a proper driver for display o...
by thagrol
Sun Jan 10, 2021 4:05 pm
Forum: Advanced users
Topic: Powering Pi 4 from header
Replies: 11
Views: 295

Re: Powering Pi 4 from header

Going a little off topic here but still relevant to USB C screens and the 4B. Even if you can power your touch screen via the 4B's USB C port don't expect it to get its video signal that way. The USB C alternate mode that allows transfer of digital video is not supported. DIsplaylink support is noto...
by thagrol
Sun Jan 10, 2021 3:05 pm
Forum: Compute Module
Topic: Question about raspberry pi computer module file transfer.
Replies: 7
Views: 203

Re: Question about raspberry pi computer module file transfer.

Ethernet over USB? One CM as a USB host the other as a USB device running g_ether. Thank you for replying. But I didn't understand what it was about. Would you explain in detail? Or you can send us a link to the site that explains what you're talking about in detail. Please check it. Thank you. Try...
by thagrol
Sun Jan 10, 2021 1:16 pm
Forum: Troubleshooting
Topic: Raspbian emergency mode
Replies: 17
Views: 490

Re: Raspbian emergency mode

I'm really not sure how that has fixed anything, especially bluetooth. All you've done is disable checking for filesystem problems. Like nofail, all that does is hide the uinderlying problem. Actually it's worse. It doesn't even check to see if there is a problem (there likely is given what you have...
by thagrol
Sun Jan 10, 2021 12:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to use UART0 and UART1 on RPi v1
Replies: 1
Views: 54

Re: How to use UART0 and UART1 on RPi v1

If memory serves, GPIO 32 and 33 are not routed to any external connector on any model Pi (except, perhaps, the CM and CM3).

That makes it a choice between which UART is on GPIO 14 & 15. If you need more that one UART you'll need to add one via I2C, SPI, or USB.
by thagrol
Sun Jan 10, 2021 12:13 am
Forum: General discussion
Topic: Pi zero camera clip
Replies: 7
Views: 184

Re: Pi zero camera clip

TBH, by the time you've tracked down the part number, found a dealer willing to sell it in small quantities, and met their minimum order requirements you'll probably find it would have been easier to have bough another zero(W). Especially as there is no guarantee that you'll be able to swap the latc...
by thagrol
Sun Jan 10, 2021 12:05 am
Forum: Compute Module
Topic: Question about raspberry pi computer module file transfer.
Replies: 7
Views: 203

Re: Question about raspberry pi computer module file transfer.

Ethernet over USB? One CM as a USB host the other as a USB device running g_ether.
by thagrol
Sat Jan 09, 2021 11:58 pm
Forum: Troubleshooting
Topic: Raspbian emergency mode
Replies: 17
Views: 490

Re: Raspbian emergency mode

It wasn't first full reboot, I think some system update does that (nothing more has changed between last reboots). But, if nofail will "solve" this, I could stay with this. nofail doesn't solve the problem it just hides it. It also has the potential to cause problrms later on if there's a...
by thagrol
Sat Jan 09, 2021 9:22 pm
Forum: Python
Topic: Passwordless SSH
Replies: 12
Views: 265

Re: Passwordless SSH

There are two problems with running your script from rc.local, both of which come from the fact that rc.local is run as/by root: 1. The default sshd configuration blocks ssh logins as root. 2. As has been already mentioned, ssh keys are a per user setting. root will have different (actualy probably ...
by thagrol
Sat Jan 09, 2021 9:04 pm
Forum: Troubleshooting
Topic: Raspbian emergency mode
Replies: 17
Views: 490

Re: Raspbian emergency mode

It worked well about a month, this behaviour started after reboot yesterday. In which case, and assuming that was the first reboot since "about a month ago", the thing to do is to work out what changed and undo it. You can view the kernel boot log by running journalctl -b One hackish work...
by thagrol
Sat Jan 09, 2021 1:59 pm
Forum: Troubleshooting
Topic: Raspbian emergency mode
Replies: 17
Views: 490

Re: Raspbian emergency mode

No, I have basic setup with OS on microSD card, no USB boot. No, you don't. That is far from a basic setup. The default RPiOS (formaerly Raspbian) fstab uses PARTUUIDs. RPIOS also uses ext4 not f2fs for the root partition. Please provide the following: The output from cat /etc/os-release The output...

Go to advanced search