Go to advanced search

by bertlea
Mon Aug 24, 2020 10:39 am
Forum: Advanced users
Topic: USB3 heat
Replies: 5
Views: 280

Re: USB3 heat

I remember there was a description of the P3B+ when it was released that the board was designed to allow more heat to be transferred to all parts including most connectors. The goal is to help to dissipate heat faster. May be Pi-4 inherited a similar design? :roll:
by bertlea
Mon Aug 24, 2020 10:32 am
Forum: General programming discussion
Topic: Interactive SVG - Looking for Help with Performance Improvements
Replies: 2
Views: 340

Re: Interactive SVG - Looking for Help with Performance Improvements

Did you checked if the Chromium you are running got some hardware accelerated graphics? i.e. what is showing when you type in the URL as:

Code: Select all

chrome://gpu
?
by bertlea
Thu Jul 30, 2020 8:06 am
Forum: Beginners
Topic: Have a web browser openend on server side without display
Replies: 17
Views: 641

Re: Have a web browser openend on server side without display

@Spartacus75, If you mean running a browser in "headless" mode, then the Google puppeteer is a powerful tool. It can run the Chrome (or Chromium) in headless mode and let you have full control using javascript.

https://github.com/puppeteer/puppeteer
by bertlea
Thu Jun 18, 2020 7:29 am
Forum: Off topic discussion
Topic: One year with fail2ban with port 22 open to the internet
Replies: 16
Views: 2633

Re: One year with fail2ban with port 22 open to the internet

I do not think fail2ban’s default method works nowadays as I found the brute-force attack are from a large pool of computers from different locations globally. They try to login in different time intervals. Since it is just for me to ssh to the system, I use white list instead of blacklist. I only a...
by bertlea
Thu Jun 18, 2020 4:56 am
Forum: Python
Topic: converting chat program from PC to RPI
Replies: 7
Views: 518

Re: converting chat program from PC to RPI

s.sendto(data.encode('utf-8'),c)

Where is the variable c defined in your code? Maybe try change it to the code below?

Code: Select all

s.sendto(bytes(data, 'utf-8'), (host, port))
by bertlea
Tue Jun 02, 2020 8:33 am
Forum: General discussion
Topic: Thinking of writing a technical FAQ
Replies: 55
Views: 5574

Re: Thinking of writing a technical FAQ

Looks like the FAQ is updated with the OS name to "Raspberry Pi OS", but it didn't update various places for the addition of 8G RAM model and it still contains the description: "The Raspberry Pi 4 supports up to 4GB of RAM". Also the list of models missed 8G and the text above the table missed Pi4 c...
by bertlea
Sat May 09, 2020 12:20 pm
Forum: Raspberry Pi OS
Topic: quick fix for armv6l node support when installing software dependent on it on a pi zero W(adafruit webIDE etc)
Replies: 1
Views: 512

Re: quick fix for armv6l node support when installing software dependent on it on a pi zero W(adafruit webIDE etc)

There are "unofficial" releases of Node.js for arm6l from the Nodejs.org official site. For example, I see the latest version 14.2.0 is already available there: https://unofficial-builds.nodejs.org/download/release/v14.2.0/ I always use these "unofficial builds" for my Pi-Zero W and they work fine. ...
by bertlea
Wed Jan 29, 2020 3:23 am
Forum: General programming discussion
Topic: Socket Programming
Replies: 5
Views: 2942

Re: Socket Programming

It seems you are just doing a tight loop (while True) for your network tasks. Sometimes network calls may block the code (not returning fast) due to the network status. Generally, network API (both TCP/IP and serial) in Python are synchronized API calls, that should be handled by a separate thread. ...
by bertlea
Mon Jan 27, 2020 11:08 am
Forum: Raspberry Pi OS
Topic: Accessing fat32 from ext4
Replies: 4
Views: 434

Re: Accessing fat32 from ext4

The file accessing speed is mainly limited by the SD card specification and may be some other things like bus speed rather than the file system type. You should not need to worry about the file systems types if your concern is only the speed.
by bertlea
Thu Nov 28, 2019 5:27 am
Forum: Python
Topic: Difficulties with first python script (user input yes/no)
Replies: 19
Views: 1287

Re: Difficulties with first python script (user input yes/no)

added comments to your code: #!/pi/bin/python <--- that looks not right, it is likely #!/usr/bin/python3 if you are using Python3. answer = input("Is the ili9341 attached?") if answer == "yes": sudo /home/pi/fbcp-ili9341/build/fbcp-ili9341 <--- you need to use os.system("...") to call your external ...
by bertlea
Thu Nov 21, 2019 2:50 am
Forum: General discussion
Topic: quality sound card and speaker for Pi 3/Pi Zero
Replies: 12
Views: 1072

Re: quality sound card and speaker for Pi 3/Pi Zero

@miky94, Pimoroni got some new audio stuff you may be interested in (see the link below). One of them have a 3W (per channel) audio output but I am not sure if it can output 70dB as I am not familiar with audio stuff.

https://shop.pimoroni.com/collections/pirate-audio
by bertlea
Mon Nov 11, 2019 5:00 am
Forum: Advanced users
Topic: How safe is it to use Pins 5 and 6 as a poweroff/poweron system
Replies: 22
Views: 12723

Re: How safe is it to use Pins 5 and 6 as a poweroff/poweron system

...This overlay only handles shutdown. After shutdown, the system can be powered up again by driving GPIO3 low. The default configuration uses GPIO3 with a pullup, so if you connect a button between GPIO3 and GND (pin 5 and 6 on the 40-pin header), you get a shutdown and power-up button. Source: ht...
by bertlea
Fri Nov 08, 2019 7:45 am
Forum: General discussion
Topic: Charger vs PSU
Replies: 12
Views: 1202

Re: Charger vs PSU

No, I think the "fix" is referring to the issue that a high-end USB-C charger such as the one from Apple, do not able to power the Pi-4 currently available on the market. It is not about how "smart" of the charger can charge quicker or not.
by bertlea
Mon Nov 04, 2019 7:17 am
Forum: Raspberry Pi OS
Topic: Sending keystrokes to console process?
Replies: 8
Views: 3118

Re: Sending keystrokes to console process?

Thank you @HermannSW for your sample C code! It works great on my Debian with Raspberry Pi Desktop laptop too. I didn’t aware of this post. Now I have potentially better remote control of my Pi connecting the TV in living room remotely. :D
by bertlea
Sat Oct 12, 2019 2:46 pm
Forum: General discussion
Topic: Raspberry Pi 3B and 3B+ Headless
Replies: 6
Views: 844

Re: Raspberry Pi 3B and 3B+ Headless

Did you tried to put the SD card that was working on the 3B+ to the 3B to see if that solve the issue? If the same SD card works on the 3B+ but not on the 3B, it is likely your 3B board's wifi module is faulty.
by bertlea
Wed Oct 09, 2019 6:42 am
Forum: General discussion
Topic: Pi on SD card: about 9MB writes every 3 hours
Replies: 10
Views: 1109

Re: Pi on SD card: about 9MB writes every 3 hours

... not sure if what I have installed is the lite version of Raspbian Buster or not. How would I go about finding out?
You can type the command:

Code: Select all

which startx
If you don't have this "startx" command, then you should installed the Lite version of the Raspbian.
by bertlea
Thu Oct 03, 2019 7:18 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: Debian with RPI desktop/x386 live USB issues
Replies: 14
Views: 2262

Re: Debian with RPI desktop/x386 live USB issues

Just report on my testing of the newly available Buster live USB: The status about installing 64-bit packages is the same as before. At least for Node.js. i.e. We still cannot use the X64 version of the Node.js. We have to use the 32-bit version (X86). If you need to use version 12 of Node.js, you n...
by bertlea
Thu Oct 03, 2019 2:18 am
Forum: Raspberry Pi OS
Topic: New Raspbian Buster image (Sep. 2019)
Replies: 21
Views: 10974

Re: New Raspbian Buster image (Sep. 2019)

Edit: I did not understand it correctly, please ignore my message earlier below. @HermannSW, I guess your observation is related to ShiftPlusOne's message: The kernel in that image has been removed from the repo for now. There's a new 64 bit kernel file and some people have partitions that it won't...
by bertlea
Wed Oct 02, 2019 9:45 am
Forum: Raspberry Pi OS
Topic: New Raspbian Buster image (Sep. 2019)
Replies: 21
Views: 10974

Re: New Raspbian Buster image (Sep. 2019)

Thank you both for the feedbacks. I will install the new image and start from scratch then.
by bertlea
Wed Oct 02, 2019 8:52 am
Forum: Raspberry Pi OS
Topic: New Raspbian Buster image (Sep. 2019)
Replies: 21
Views: 10974

New Raspbian Buster image (Sep. 2019)

I see a newer version of Raspbian Buster is available for download. Am I correct that, I can just do the "sudo apt-get update; sudo apt-get upgrade" on my existing Raspbian Buster and that can make system reach the same level of updateness, including the latest SPI EEPROM after a reboot? i.e. the ne...
by bertlea
Mon Sep 30, 2019 4:23 am
Forum: Python
Topic: Using UDP to start Streaming
Replies: 1
Views: 705

Re: Using UDP to start Streaming

UDP does not have the “connection” concept as the TCP. UDP server just listen to the port opened and it will accept whatever UDP packet sent to that port regardless the source. If you need to maintain the state of the socket between your server and a specific client, you need to code that yourself. ...
by bertlea
Mon Sep 30, 2019 3:44 am
Forum: General discussion
Topic: Does installing Raspbian with desktop and recommended software make my Pi slower?
Replies: 2
Views: 367

Re: Does installing Raspbian with desktop and recommended software make my Pi slower?

It should not make your Pi slower if you do not start the GUI (startx). I did what you described for the same reason, and I do not observer any slowdown compare to a pure Lite (no GUI) version. Actually, even running the GUI, it is not that much difference in terms of speed as long as memory usage i...
by bertlea
Thu Sep 26, 2019 4:00 am
Forum: Beginners
Topic: Wireless Stock Counter
Replies: 1
Views: 236

Re: Wireless Stock Counter

You can definitely build such "remote counter". I assume your computer that receiving the counter results is connected to your home or office network. Then you can use Raspberry Pi connected to a small screen and a USB keypad connected to the same network using wifi (hence, wireless) your computer c...
by bertlea
Tue Sep 24, 2019 6:40 am
Forum: Other projects
Topic: Website auto login
Replies: 2
Views: 1064

Re: Website auto login

Have you tried Google Puppeteer (interactive mode) using the wrapper “puppeteer-extra” on the Chromium already installed? It is my understanding that Puppeteer can just control the Chromium as if actual user interactions and the cookie renewed should not be removed/invalidated. It is just my underst...
by bertlea
Fri Sep 20, 2019 5:37 am
Forum: Bare metal, Assembly language
Topic: mmap() fails
Replies: 9
Views: 2710

Re: mmap() fails

@TonySterrett, I believe Akane is trying to point out that the base address is passed incorrectly to the C program as 0XFE000000 is not 0X00000000 (number in Hex). As you mentioned that you are calling the C program from Node.js. I guess you may just passed the number as the parameter directly. Mayb...

Go to advanced search