Go to advanced search

by scruss
Sat Aug 08, 2020 4:20 pm
Forum: Beginners
Topic: Is there a Linux text editor that can ... ?
Replies: 11
Views: 466

Re: Is there a Linux text editor that can ... ?

emacs, as trejan noted. The simplest built-in way is to select all, then Meta-|, then type your command. This will put your output in a new temporary buffer called *Shell Command Output* . Note that any subsequent output overwrites this buffer, so save it if you need it. There are myriad options and...
by scruss
Sat Aug 08, 2020 4:00 pm
Forum: Other projects
Topic: USB scanner ->RPi -> PC
Replies: 7
Views: 401

Re: USB scanner ->RPi -> PC

How is the Windows machine expecting the input? If it's expecting the input from a keyboard, your USB TTL serial approach is close but not quite there. If it's expecting input from a serial port, though, it's spot-on.
by scruss
Sat Aug 08, 2020 3:19 pm
Forum: Python
Topic: reading ttyUSB0 device BU-353S4
Replies: 16
Views: 494

Re: reading ttyUSB0 device

TIL SiRF chipsets do have a binary mode. Here's an article on how to get exactly your model out of binary and into NMEA mode: Switch BU-353 to NMEA mode . (Summary: sudo apt install gpsd-clients stty -F /dev/ttyUSB0 4800 gpsctl -n -D 4 /dev/ttyUSB0 ) I don't know if that'll work. Prolific serial ada...
by scruss
Fri Aug 07, 2020 2:54 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial comms to Arduino only work after using screen command
Replies: 8
Views: 294

Re: Serial comms to Arduino only work after using screen command

That's a fortunate discovery. But: the Arduino resets every time I open the serial port Yes, it's part of the design. It can be annoying, or it can be useful. I certainly wouldn't rely on some residual process from screen keeping the connection open for later use, especially if you're collecting dat...
by scruss
Fri Aug 07, 2020 2:42 pm
Forum: Troubleshooting
Topic: Print Server issue
Replies: 1
Views: 72

Re: Print Server issue

Code: Select all

sudo service cups restart
in a terminal after the printer has been turned back on should do it. service cups status and/or lpstat -t should tell you if it's happy or not.
by scruss
Thu Aug 06, 2020 8:18 pm
Forum: Automation, sensing and robotics
Topic: Do I Really Have To Perform Onboard Sensor-Fusion With An RPI?
Replies: 7
Views: 348

Re: Do I Really Have To Perform Onboard Sensor-Fusion With An RPI?

micropython-IMU/micropython-fusion also looks like an option. Despite the name, it's apparently able to calculate sensor fusion on regular Python. It has copious documentation and is regularly maintained. It only uses one of the simpler algorithms, but might be good enough for your applications.
by scruss
Thu Aug 06, 2020 7:56 pm
Forum: Off topic discussion
Topic: Possible sale of ARM
Replies: 64
Views: 4127

Re: Possible sale of ARM

Anyone's a better owner than SoftBank: most of the companies it is selling are being put on the market to stave off SoftBank's collapse. So if ARM isn't sold, it becomes just another distressed asset of SoftBank, to be sold off at ¢ on the $ to whoever wants it. Huawei would, I'm sure, love to have ...
by scruss
Thu Aug 06, 2020 4:47 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial comms to Arduino only work after using screen command
Replies: 8
Views: 294

Re: Serial comms to Arduino only work after using screen command

my mistake: it's timeout = None (or omitting it altogether) that's block forever. Sorry about that. screen does set some defaults in your serial port. After a fresh reboot, try: stty -F /dev/ttyUSB0 and note the results. Run screen, then run the stty command again. Note the differences. stty is horr...
by scruss
Thu Aug 06, 2020 4:38 pm
Forum: Other projects
Topic: Owncloud + cloud printer on the same Raspberry Pi
Replies: 3
Views: 396

Re: Owncloud + cloud printer on the same Raspberry Pi

Welcome to the board!

Why dietpi? It doesn't get much support here (if at all). Raspberry Pi OS (32-bit) Lite is pretty small and at least folks here may be able to help you with it.
by scruss
Thu Aug 06, 2020 4:32 pm
Forum: Other projects
Topic: Peak Tech 8005 IOT Sound Level Meter
Replies: 4
Views: 212

Re: Peak Tech 8005 IOT Sound Level Meter

The device is also supported by sigrok , and they claim that CEM DT-8852 = PeakTech 8005 = VOLTCRAFT SL-451 . While the protocol looks fairly simple, I wouldn't want to roll my own driver. sigrok works quite well as a data acquisition platform on the Raspberry Pi, though I've only used it with one o...
by scruss
Thu Aug 06, 2020 4:09 pm
Forum: Automation, sensing and robotics
Topic: Do I Really Have To Perform Onboard Sensor-Fusion With An RPI?
Replies: 7
Views: 348

Re: Do I Really Have To Perform Onboard Sensor-Fusion With An RPI?

I suspect it's more that the sensor fusion calculation code hasn't been ported to Python/CircuitPython rather than it won't run there. The more advanced code looks like it's a C library that would need considerable work to integrate with a Python library. I have very mixed feelings about CircuitPyth...
by scruss
Mon Aug 03, 2020 3:33 pm
Forum: Beginners
Topic: mixing / matching ..... apps / os-versions
Replies: 5
Views: 219

Re: mixing / matching ..... apps / os-versions

It doesn't look that difficult to build from source — though that's somewhat skating over the whole ffmpeg build issue, so it might be a horrible mess. I no longer have any recent Raspberry Pi running an older OS to try it. It's this package, yes? Imagination, a lightweight and simple slide show mak...
by scruss
Sun Aug 02, 2020 5:39 pm
Forum: Networking and servers
Topic: Pi WiFi with ESP8266?
Replies: 23
Views: 1037

Re: Pi WiFi with ESP8266?

My information about the ESP32 toolchain was out of date. Last year, it wouldn't build on Raspberry Pi, but now it does. Yay!
by scruss
Sun Aug 02, 2020 5:16 pm
Forum: Off topic discussion
Topic: Suggestion: Locked down, moderated HOWTO sub group
Replies: 6
Views: 895

Re: Suggestion: Locked down, moderated HOWTO sub group

You've seen this, though? raspberrypi.org/documentation ? Which all lives on github and has Issues and pull requests and all the moderated community input you could want: raspberrypi / documentation … and it's one extra click from the Help link on this page. Books in print aren't useful for the Rasp...
by scruss
Sat Aug 01, 2020 4:04 pm
Forum: Beginners
Topic: Adafruit Project - Networked Thermal Printer CUPS with Raspberry Pi - Jessie or latestest Rasbian?
Replies: 11
Views: 1598

Re: Adafruit Project - Networked Thermal Printer CUPS with Raspberry Pi - Jessie or latestest Rasbian?

Linux is case sensitive, like traditional Unix. Mac OS is not (generally) case sensitive. So ZJ58 ≠ zj58 on Linux. Since Adafruit knocked off most of their tutorial from me, and I haven't been interested in tiny thermal printers for a while, don't expect too many updates from The Big A ☺ OP: No reas...
by scruss
Sat Aug 01, 2020 3:54 pm
Forum: Networking and servers
Topic: Pi WiFi with ESP8266?
Replies: 23
Views: 1037

Re: Pi WiFi with ESP8266?

One remaining question though: if the Pi is connected to the ESP and the ESP is connected to the internet, how do we get the Pi to look to the ESP to access the internet? By using the esp_slip_router firmware and running slattach on the Raspberry Pi to create a network connection over a serial port...
by scruss
Sat Aug 01, 2020 3:12 pm
Forum: Beginners
Topic: I have an idea but not sure if it’s possible... help? (use an E ink display)
Replies: 4
Views: 303

Re: I have an idea but not sure if it’s possible... help?

Yup - one of the first e-ink projects I heard of was from Prof Chris Tyler at Seneca College interfacing a WaveShare e-paper display to a Raspberry Pi to make an office door sign.. It's very doable. I'd maybe rethink the recycled screen use, though. The displays come with a dazzling array of incompa...
by scruss
Sat Aug 01, 2020 2:50 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Arduino IDE won't open on Laptop
Replies: 5
Views: 235

Re: Arduino won't open on Raspberry Pi

I installed Arduino on my Raspberry pi 3. Hi - and welcome to the board. This sounds like you installed the 'arduino' package from the Raspberry Pi repositories. For some reason, they're stuck on a very old version that basically doesn't work. I don't know how users are supposed to know this, but y...
by scruss
Sat Aug 01, 2020 1:57 pm
Forum: Other
Topic: Raspberry Pi 3 B+ No video output on a VGA monitor. [KALI Linux]
Replies: 6
Views: 476

Re: Raspberry Pi 3 B+ No video output on a VGA monitor. [KALI Linux]

There are also some HDMI-VGA adapters that Just Don't Work with the Raspberry Pi. Maybe you have one of those.
by scruss
Fri Jul 31, 2020 8:48 pm
Forum: Networking and servers
Topic: Pi WiFi with ESP8266?
Replies: 23
Views: 1037

Re: Pi WiFi with ESP8266?

But doesn't that RTOS do most of what we're asking it to do here? No, it's pretty low-level. It sits between your code and the hardware. You still have to write the TCP/IP code and manage connections. Tools like MicroPython or Arduino make it fairly easy, but you'd still have to implement something...
by scruss
Fri Jul 31, 2020 3:27 pm
Forum: Networking and servers
Topic: Pi WiFi with ESP8266?
Replies: 23
Views: 1037

Re: Pi WiFi with ESP8266?

Ah kids these days: 4MB is "just enough", when I were a lad we thought the 48KB of the ZX Spectrum was a lot... The largest chunk of executable program memory on an ESP8266 is only 32 KB. The 4 MB is for program and data storage: you can't run code directly from it. The chip has a similarly small a...
by scruss
Fri Jul 31, 2020 1:21 am
Forum: Advanced users
Topic: Enscript Woes....
Replies: 7
Views: 486

Re: Enscript Woes....[Solved]

Imightbejerry wrote:
Wed Jul 29, 2020 7:50 pm
1) The default install leaves the paper size to A4.

Code: Select all

sudo paperconfig -p letter
fixes this. Enscript picks up the paper size correctly after that.
by scruss
Thu Jul 30, 2020 11:11 pm
Forum: Troubleshooting
Topic: In LXDE, saving Weather Preferences?
Replies: 25
Views: 3411

Re: In LXDE, saving Weather Preferences?

Just use the "X' close widget. That fixes it. It still doesn't save preferences, seemingly, but I can get a weather feed that's local on it.
by scruss
Thu Jul 30, 2020 11:00 pm
Forum: Advanced users
Topic: Enscript Woes....
Replies: 7
Views: 486

Re: Enscript Woes....

I thought the right place for it was the locale system Maybe, but it's about the only place that the user explicitly sets the country. Maybe the timezone setting should have rolled that through. It is 297x210 in every locale except en_US, where it is 279x216. Except in Canada — a metric country, wh...

Go to advanced search