Go to advanced search

by scruss
Fri Aug 21, 2020 1:46 pm
Forum: Beginners
Topic: Selecting text automatically copies it - how to stop
Replies: 20
Views: 1232

Re: Selecting text automatically copies it - how to stop

demux4555 wrote:
Fri Aug 21, 2020 11:47 am
This thread could help establishing what the cause of this issue might be
Following your instructions exactly, many of us can't repeat it. Submitting an unrepeatable bug to Debian usually gets closed very quickly
by scruss
Fri Aug 21, 2020 1:37 pm
Forum: General discussion
Topic: RANT: When will the Linux devs get the mess with /dev/ttyUSB fixed?
Replies: 66
Views: 3213

Re: RANT: When will the Linux devs get the mess with /dev/ttyUSB fixed?

rin67630 wrote:
Fri Aug 21, 2020 5:14 am
Not here with Win10.
I believe we are having different experiences on Windows 10.
by scruss
Fri Aug 21, 2020 1:47 am
Forum: General discussion
Topic: RANT: When will the Linux devs get the mess with /dev/ttyUSB fixed?
Replies: 66
Views: 3213

Re: RANT: When will the Linux devs get the mess with /dev/ttyUSB fixed?

rin67630 wrote:
Thu Aug 20, 2020 5:37 am
Windows assigns the COM number according to the combination of device id/vendor/USB port.
Not in my experience. The COM9, COM15 and COM16 cases are all the same Arduino Micro plugged into the same port, just at different times.
by scruss
Fri Aug 21, 2020 1:44 am
Forum: Python
Topic: Issues Printing PDF with pycups (Python 3)
Replies: 1
Views: 120

Re: Issues Printing PDF with pycups (Python 3)

That looks like it's trying to print the PDF as a raw file.

It's also perfectly okay to use the equivalent of system("lp -d MyPrinter " + file) instead of using some random Python module.
by scruss
Wed Aug 19, 2020 11:36 pm
Forum: General discussion
Topic: RANT: When will the Linux devs get the mess with /dev/ttyUSB fixed?
Replies: 66
Views: 3213

Re: RANT: When will the Linux devs get the mess with /dev/ttyUSB fixed?

… When I use 2 different Serial to USB adapters (a CH324 and a CP210) plugged at fixed USB ports , I expect Raspbian to provide consistent /dev/ttyUSBx assignments. Please expect reality: no version of Linux can magically guess how adapters are connected. Windows gets it spectacularly wrong, too: s...
by scruss
Wed Aug 19, 2020 11:28 pm
Forum: Python
Topic: How to send large data over usb serial?
Replies: 14
Views: 522

Re: How to send large data over usb serial?

"The gadget serial driver only provides simple unreliable data communication. It does not yet handle flow control or many other features of normal serial devices". What exactly that means I am not sure but it does suggest to me there can be over-run situations, data loss. So you have to resort to s...
by scruss
Wed Aug 19, 2020 8:14 pm
Forum: Python
Topic: How to send large data over usb serial?
Replies: 14
Views: 522

Re: How to send large data over usb serial?

Is it unusual to send large amount of data without using a protocol? Yes, I'd say so. The problems you were having and had to implement yourself — creating 1K blocks, waiting for the block to finish — are all implemented in the very earliest serial protocols. A protocol like zmodem adds optimal pac...
by scruss
Wed Aug 19, 2020 6:33 pm
Forum: General discussion
Topic: using CUPS to make a printer double sided(duplex)
Replies: 4
Views: 321

Re: using CUPS to make a printer double sided (manual duplex)

Interesting challenge. I don't know the CUPS internals well enough to know if it'll allow a job to be split into pages with a separate job doing page turns in between. Neat use of CircuitPython/MicroPython on an external device to actuate the page flip.
by scruss
Wed Aug 19, 2020 3:06 pm
Forum: Troubleshooting
Topic: NodeMCU ESP32: Arduino IDE installation fails
Replies: 5
Views: 268

Re: NodeMCU ESP32: Arduino IDE installation fails

Everything from those console messages indicates it flashed correctly. The manual may be wrong about hitting the reset button. I have several of these exact modules and they program over serial without hitting reset. Programming a microcontroller remotely may not be the best idea. There are usually ...
by scruss
Wed Aug 19, 2020 2:54 pm
Forum: Python
Topic: Need a method to read Serial coming from an Arduino
Replies: 4
Views: 206

Re: Need a method to read Serial coming from an Arduino

Consider using a delay on arduino side. At 9600bd, a char needs prox 1 ms to be transmitted. You send 6 chars each line. Receiving data each 6 ms is not a challenge, but when processing takes some time (more than 6ms, which is very easy to achieve as for example a single print() statement slows dow...
by scruss
Wed Aug 19, 2020 2:45 pm
Forum: Troubleshooting
Topic: Changing the Digital Clock Font Color in Rasbian
Replies: 3
Views: 422

Re: Changing the Digital Clock Font Color in Rasbian

This is what I get using the current Raspberry Pi OS image: clock_text_colour.jpg I found this widget slightly fiddly: you can get the text colour to work if you either: click inside the triangle to pick a colour; or type the #rrggbb hex code into the (hidden under the tooltip) text entry box. Tryin...
by scruss
Wed Aug 19, 2020 2:20 pm
Forum: Python
Topic: How to send large data over usb serial?
Replies: 14
Views: 522

Re: How to send large data over usb serial?

If you're sending files, a protocol like zmodem might be better. The sz (send) and rz (receive) commands are installed this way:

Code: Select all

sudo apt install lrzsz
by scruss
Tue Aug 18, 2020 9:55 pm
Forum: Troubleshooting
Topic: NodeMCU ESP32: Arduino IDE installation fails
Replies: 5
Views: 268

Re: NodeMCU ESP32: Arduino IDE installation fails

the SiLabs serial driver is already in the kernel. That driver was for another system
by scruss
Tue Aug 18, 2020 5:13 pm
Forum: Troubleshooting
Topic: Please check my code - Sound sensor triggering picamera, date time file name.
Replies: 12
Views: 535

Re: Please check my code

Your code, indented: import RPi.GPIO as GPIO import time import picamera from time import sleep import datetime from picamera import PiCamera # GPIO SETUP channel = 17 GPIO.setmode(GPIO.BCM) GPIO.setup(channel, GPIO.IN) camera = picamera.PiCamera() date = datetime.datetime.now().strftime("%Y_%m_%d %...
by scruss
Tue Aug 18, 2020 3:06 pm
Forum: Beginners
Topic: automatically append the input from a serial port to a log file?
Replies: 4
Views: 136

Re: automatically append the input from a serial port to a log file?

grabserial is about the most reliable tool I've used for serial logging. It can now automatically output to a new file every day, if that's the sort of thing you'd need.
by scruss
Sat Aug 15, 2020 6:44 pm
Forum: General discussion
Topic: Active vs inactive stuff in Config - Better or worse?
Replies: 5
Views: 198

Re: Active vs inactive stuff in Config - Better or worse?

Zombeatle wrote:
Sat Aug 15, 2020 4:59 pm
… Also, how can I find out the internal address for a device?
Not quite sure what you could mean. You typically don't access GPIO through any kind of memory-mapped interface
by scruss
Sat Aug 15, 2020 5:15 pm
Forum: General discussion
Topic: I want a rotary switch to be able to activate different programs
Replies: 12
Views: 694

Re: I want a rotary switch to be able to activate different programs

The Raspberry Pi doesn't have an analogue to digital converter, so it can't watch for different voltages on a pin. It can only detect LOW or HIGH. Someone's posted a solution before, at least to the position detection problem: Rotary switch (not encoder) problems [SOLVED] Won't you need an additiona...
by scruss
Sat Aug 15, 2020 2:43 am
Forum: Troubleshooting
Topic: [SOLVED] Arduino Nano refuses to upload sketches when run on Raspberry Pi 4
Replies: 5
Views: 231

Re: Arduino Nano refuses to upload sketches when run on Raspberry Pi 4

Some Nanos ship with an old bootloader. To program them, choose Processor > "ATmega328P (Old Bootloader)".
by scruss
Thu Aug 13, 2020 1:09 am
Forum: Other projects
Topic: Expertise required for Retro computer clone
Replies: 4
Views: 312

Re: Expertise required for Retro computer clone

If you'r emulating the Atari ST, USB floppy drives won't reliably read 720 kB disks. Some mechanisms might, but everything you can buy now can only read/write IBM formatted 1.44 MB HD disks. They have no means of understanding any other format. There's also this, a low-level interface to a Shugart p...
by scruss
Wed Aug 12, 2020 7:26 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 735
Views: 86179

Re: Introduction to BBC BASIC

Okay, so maybe Matrix Brandy is growing new features very fast. At least there is some engagement in trying to keep features common and compatible. It would be terrible if the two of you were just yelling "No, you're wrong!” past one another. Which I've seen developers of a language do with one anot...
by scruss
Wed Aug 12, 2020 5:29 pm
Forum: Beginners
Topic: RPI DHT App
Replies: 7
Views: 272

Re: RPI DHT App

Yes, I think so. Try installing adafruit / Adafruit_CircuitPython_DHT. It might have a different API, but I've tested that it detects a Raspberry Pi 4 (under Raspberry Pi OS, at any rate). The old package you were using doesn't recognize a Raspberry Pi 4 at all.
by scruss
Wed Aug 12, 2020 4:51 pm
Forum: Other programming languages
Topic: Introduction to BBC BASIC
Replies: 735
Views: 86179

Re: Introduction to BBC BASIC

Yes, seconding appreciation for the philosophy and traditions approach. It's very heartening to see you and Michael McC engage on the other forum regarding new features in BBC BASIC or extending conventions that Sophie couldn't have foreseen. Even though the two implementations are very different, y...
by scruss
Tue Aug 11, 2020 2:58 pm
Forum: Beginners
Topic: RPI DHT App
Replies: 7
Views: 272

Re: RPI DHT App

I'm not sure that Adafruit code works any more: the code repo has a DEPRECATED LIBRARY header. The Instructable itself is from 2017. Are you running on a Raspberry Pi 4? There may be a platform detection issue with the code. The fact that the code is trying to run code for a Beaglebone Black (see la...
by scruss
Mon Aug 10, 2020 3:53 pm
Forum: Troubleshooting
Topic: Raspberry Pi 2 Model B keeps dying!
Replies: 13
Views: 436

Re: Raspberry Pi 2 Model B keeps dying!

Maybe it's your power supply. What are you using? Is it the one constant between the old and new card. If you can put a voltmeter across the board's test points and see ≥ 5.0 V, you're probably okay.

No other USB devices which could be drawing current?
by scruss
Mon Aug 10, 2020 2:26 pm
Forum: Troubleshooting
Topic: Remote Desktop From Mac OS Catalina to new Pi OS?
Replies: 6
Views: 291

Re: Remote Desktop From Mac OS Catalina to new Pi OS?

Encryption=PreferOff might not be your blocking point, or ideal.

Go to advanced search