Go to advanced search

by dgordon42
Sat Oct 12, 2019 3:47 pm
Forum: Troubleshooting
Topic: USB-Serial reading of PI
Replies: 13
Views: 290

Re: USB-Serial reading of PI

If you are trying to read (or write) serial data to a USB attached device, you need to know it's filename in the '/dev' directory. It won't be '/dev/ttyAMA0' as this is one of the Pi's UARTs. Have a look in the '/dev' directory. A plugged in USB Serial device would normally appear as '/dev/ttyUSB0'....
by dgordon42
Sat Oct 12, 2019 2:17 pm
Forum: Beginners
Topic: Raspi-config, Overlay file system question...
Replies: 1
Views: 142

Re: Raspi-config, Overlay file system question...

Some more information on the Overlay File System here.

Hope this helps,
Dave.
by dgordon42
Sat Oct 05, 2019 12:55 pm
Forum: Beginners
Topic: [Pi4] What are config.txt sections ?
Replies: 12
Views: 505

Re: [Pi4] What are config.txt sections ?

There is some good information in the file

Code: Select all

/boot/overlays/README
on your Pi.

Hope this helps,
Dave.
by dgordon42
Thu Sep 26, 2019 10:21 pm
Forum: Troubleshooting
Topic: RP4 - Cannot get bootmessages to UART
Replies: 1
Views: 96

Re: RP4 - Cannot get bootmessages to UART

The 'dtoverlay=pi3-disable-bt" has now been changed to: dtoverlay=disable-bt The 'pi3-disable-bt' remains as an alias, but I don't know if it works on a Pi4. When using 'dtoverlay=disable-bt', it is also necessary to issue the command sudo systemctl disable hciuart once and reboot, otherwise '/dev/t...
by dgordon42
Tue Sep 17, 2019 11:45 am
Forum: General discussion
Topic: New Raspbian Buster and Thonny idle, "hate at first sight"
Replies: 15
Views: 568

Re: New Raspbian Buster and Thonny idle, "hate at first sight"

Code: Select all

sudo apt install idle3
will get your IDLE back for Python3.

Hope this helps,
Dave.
by dgordon42
Sun Aug 11, 2019 1:14 pm
Forum: General discussion
Topic: WiringPi to be deprecated?
Replies: 12
Views: 1678

WiringPi to be deprecated?

Sad to read that Gordon may soon finish with his excellent WiringPi library here. Also sad to read how disappointed the WiringPi project has left him, and how he has been taken advantage off. Instead, he should be proud of his work in supporting the Pi's GPIO pins from the beginnings of the Pi, and ...
by dgordon42
Sun Jul 28, 2019 7:36 pm
Forum: Troubleshooting
Topic: [SOLVED] Pi 4: Red light (but working normally?)
Replies: 3
Views: 212

Re: Pi 4: Red light (but working normally?)

See the file '/boot/overlays/README' on your Pi.

The dtoverlay 'pwr_led_activelow' will allow you to change the action of the red power LED, you can have it off when the power is OK instead of the default on.

Hope this helps,
Dave.
by dgordon42
Sat Jul 27, 2019 9:20 pm
Forum: Raspbian
Topic: Help wanted to Connecting VT320 to a RPi Zero
Replies: 10
Views: 359

Re: Help wanted to Connecting VT320 to a RPi Zero

On your VT320 Terminal, what is the output from: echo $TERM The default terminal is the VT100, some VT320 features may not work unless the system knows you are using a VT320. I have a VT320 terminal which I also connect to my Pi's using a Serial to USB converter. I found it was very usefull to be ab...
by dgordon42
Tue Jul 23, 2019 2:26 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ttyAMA0 Serial on Rasbian Jessie @RPi B+
Replies: 10
Views: 16347

Re: ttyAMA0 Serial on Rasbian Jessie @RPi B+

@hemanth2607, Two things: First, put the following line in as the first line in your Python Code running on the Pi: #!/usr/bin/env python3 This line is not a comment, it's a 'shebang', and it ensures your code runs on Python3, rather than the default Python2 Second, you should replace all instances ...
by dgordon42
Mon Apr 15, 2019 11:47 am
Forum: Beginners
Topic: I need to use I2C1 (GPIO2,3), how can i also use rPi Camera?
Replies: 2
Views: 202

Re: I need to use I2C1 (GPIO2,3), how can i also use rPi Camera?

Unless you are using a very old Pi Model A or B, you can use the I2C Bus 1 (GPIO 2 & 3, physical pins 3 & 5) normally with the RPi Camera attached and working, just enable the I2C in '/boot/config.txt' as normal. I2C Bus 0 is used on some Pi models to control on board functions such as power supply ...
by dgordon42
Thu Nov 29, 2018 9:27 pm
Forum: General discussion
Topic: Current way to disable getty?
Replies: 1
Views: 845

Re: Current way to disable getty?

It you want to stop a getty running on the Serial Port (which is disabled by default these days I believe) then try:

Code: Select all

sudo systemctl stop [email protected]
or

Code: Select all

sudo systemctl stop [email protected]
as required.

Hope this helps,
Dave.
by dgordon42
Mon Oct 29, 2018 4:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [RPi Zero W] UART not working when SPI1 enabled
Replies: 9
Views: 5171

Re: [RPi Zero W] UART not working when SPI1 enabled

I ran the commands you listed. Here is the output: 1. Linux MY_PI'S_NAME 4.14.71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux 2. dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether,g_mass_storage 3. enabl...
by dgordon42
Tue Oct 23, 2018 9:27 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [RPi Zero W] UART not working when SPI1 enabled
Replies: 9
Views: 5171

Re: [RPi Zero W] UART not working when SPI1 enabled

Good catch, thanks.
I've edited my post above.

Dave.
by dgordon42
Tue Oct 23, 2018 9:19 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: [RPi Zero W] UART not working when SPI1 enabled
Replies: 9
Views: 5171

Re: [RPi Zero W] UART not working when SPI1 enabled

As a quick fix, try changing "/dev/ttyAMA0" in your Python3 script to "/dev/serial0" and run it again. Thats SerialZero, not SerialOh.

If that does not help, report the output of the following commands:

Code: Select all

uname -a
cat /boot/cmdline.txt
grep -v -e ^# -e ^$ /boot/config.txt
Thanks,
Dave.
by dgordon42
Sat Oct 06, 2018 4:36 pm
Forum: Troubleshooting
Topic: raspbian stretch lite wpa_supplicant.conf
Replies: 11
Views: 4897

Re: raspbian stretch lite wpa_supplicant.conf

flamner wrote:
Sat Oct 06, 2018 5:30 am

Code: Select all

country=PL
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
    ssid="NAME"
    scan_ssid=1
    psk="PASSWD"
    key_mgmt=WPA-PSK
}
Try it without the "scan_ssid=1" line.

Hope this helps,
Dave.
by dgordon42
Sun Sep 30, 2018 11:18 am
Forum: Python
Topic: Intermediate python and general programming ressources
Replies: 7
Views: 1121

Re: Intermediate python and general programming ressources

After reading the Al Sweigart books you mention, I found a good next step to be the 6.00 series courses on EDx. There are 2 courses in the series, and they get revised from time to time: 6.00.1x 6.00.2x They are available free of charge, and designed for people with just a little programming experie...
by dgordon42
Tue Sep 25, 2018 11:24 am
Forum: Beginners
Topic: Remote desktop connection shows only checkerboard
Replies: 1
Views: 275

Re: Remote desktop connection shows only checkerboard

These days RaspberryPis come with the RealVNC installed by default. More details here. I found it works better than the old xrdp connection. If you want to use xrdp, then you will have to purge RealVNC from your Pi first, then install xrdp on your Pi. RealVNC and xrdp are not compatible (they use th...
by dgordon42
Wed Sep 19, 2018 3:45 pm
Forum: General discussion
Topic: RPI3 RxTx Connection with a weight machine [HELP!]
Replies: 1
Views: 321

Re: RPI3 RxTx Connection with a weight machine [HELP!]

Lots of questions here, I'll have a go at some of them. Actually I wired my raspberry using RxTx with RS232 linked to the weight machine but now I don't really know what to do on my raspberry, I followed some tutorials to use the ports. First of all you must be aware that the RaspberryPi's Serial Po...
by dgordon42
Wed Sep 19, 2018 12:37 pm
Forum: Troubleshooting
Topic: Basic UART loopback communication issues
Replies: 17
Views: 7893

Re: Basic UART loopback communication issues

@mungojerry: The method you have posted will work on all models of Pi releases to date running an up to date Raspbian OS by default. However, @Ennud above was not running his Pi in a default configuration, he was running a Bluetooth equipped model with Bluetooth disabled, hence his need to disable '...
by dgordon42
Mon Sep 10, 2018 10:26 am
Forum: General discussion
Topic: Pi 3 Serial Issues
Replies: 30
Views: 53831

Re: Pi 3 Serial Issues

I have checked with the command rcv.decode('utf-8') after rcv = port.read() but it was giving error as "bytes object has no attribute as encode". That is why I wanted you to try encode . Python2 will print bytes as ASCII characters, but Python3 will not. You need to encode the bytes into UTF-8 char...
by dgordon42
Fri Sep 07, 2018 1:17 pm
Forum: General discussion
Topic: Pi 3 Serial Issues
Replies: 30
Views: 53831

Re: Pi 3 Serial Issues

Python2 and Python3 handle ASCII and Unicode characters differently.
After the line:

Code: Select all

rcv = port.read(400)
in your code, add the line:

Code: Select all

rcv.encode('utf-8')
and see what happens.

Good Luck,
Dave.
by dgordon42
Sat Aug 25, 2018 7:59 pm
Forum: Raspberry Pi Desktop for PC and Mac
Topic: WiFi will not work after install on laptop
Replies: 11
Views: 1882

Re: WiFi will not work after install on laptop

@ Johnd2117, If you are still trying to get your old laptop to load the b43 driver instead of the wl driver, check this : Look in '/etc/modprobe.d/' for a file 'broadcom-sta-dkms.conf'. This file often blacklists the b43 and b44 drivers as they conflict with the 'wl' driver. Blacklist the 'wl' drive...
by dgordon42
Tue Aug 21, 2018 4:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: ttyAMA0 Serial on Rasbian Jessie @RPi B+
Replies: 10
Views: 16347

Re: ttyAMA0 Serial on Rasbian Jessie @RPi B+

gangwar wrote:Why am I not receiving the test_string?
I would need to know your Pi model, your OS, your Python version, your wiring, and see the script you are running before I could even guess.

Dave.
by dgordon42
Mon Jul 09, 2018 8:53 pm
Forum: Beginners
Topic: Stretch, numlockx: where is the file /etc/kbd/config ?
Replies: 2
Views: 622

Re: Stretch, numlockx: where is the file /etc/kbd/config ?

The file '/etc/kbd/config' does not exist by default in Stretch, as you have found out. I'm guessing that you want NumLock on at boot up to the CLI. I managed it by writing a bash script that runs at boot, based on this stackexchange question As for 'numlockx', simply installing it with 'apt-get' se...
by dgordon42
Tue May 15, 2018 9:53 pm
Forum: General discussion
Topic: Pi 3 Serial Issues
Replies: 30
Views: 53831

Re: Pi 3 Serial Issues

@marciokoko, Nice try, but no. The Pi uses one of it's serial ports to communicate with the Bluetooth Controller chip. It sends and receives low level data and instructions to/from the chip. Unfortunately, you can't just fire data at the chip and expect it to communicate it to another device over Bl...

Go to advanced search