Go to advanced search

by dgordon42
Sat Oct 06, 2018 4:36 pm
Forum: Troubleshooting
Topic: raspbian stretch lite wpa_supplicant.conf
Replies: 9
Views: 244

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: 4
Views: 199

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: 67

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: 89

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: 4184

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: 41289

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: 41289

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: 474

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: 7
Views: 9329

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: 214

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: 41289

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...
by dgordon42
Tue May 01, 2018 1:19 pm
Forum: Troubleshooting
Topic: RPi 3 UART for RS232
Replies: 9
Views: 9002

Re: RPi 3 UART for RS232

There is no problem using both Bluetooth and the Serial Port simultaneously on the model 3, 3+, or Zero W RaspberryPi. Ensure that you do not have the phrase "console=serial0,115200" anywhere in your '/boot/cmdline.txt' file. Ensure that you do have the line "enable_uart=1" in your '/boot/config.txt...
by dgordon42
Wed Apr 11, 2018 5:27 pm
Forum: Python
Topic: Need help using serial port - RPi 3 Model B
Replies: 8
Views: 926

Re: Need help using serial port - RPi 3 Model B

The commands only need to be run once.
You can check the status of the 'hciuart' daemon with:

Code: Select all

systemctl status hciuart
It should report "disabled" if the commands ran successfully, and should be remembered over a reboot or power cycle.

Dave.
by dgordon42
Wed Apr 11, 2018 3:14 pm
Forum: Python
Topic: Need help using serial port - RPi 3 Model B
Replies: 8
Views: 926

Re: Need help using serial port - RPi 3 Model B

@matteochini: You have used the DT Overlay "dtoverlay=pi3-disable-bt" in your '/boot/config.txt' file. When you use this overlay, you also need to run the commands: sudo systemctl stop hciuart sudo systemctl disable hciuart These commands prevent SystemD from attempting to use the UART to talk to th...
by dgordon42
Wed Apr 11, 2018 12:48 pm
Forum: Troubleshooting
Topic: UART port not working properly
Replies: 8
Views: 1907

Re: UART port not working properly

@syed.idris: First, what type of Arduino are you using? Most (but not all) of them work at 5V, the Pi's UART works at 3.3V, and sending it a 5V signal directly from an Arduino can destroy a Pi. while receiving data some times data getting loss or sometimes it is showing as "serial port /dev/serial0 ...
by dgordon42
Tue Apr 10, 2018 12:12 pm
Forum: Troubleshooting
Topic: Power LED on shutdown - Pi3
Replies: 14
Views: 8995

Re: Power LED on shutdown - Pi3

Red LED lights when the supplied 5V power is within specs. It goes out when the power supplied drops below about 4.6V, although the Pi may continue to operate. Note that the fact that the Red LED is on does not mean that the Pi is up and running, only that the power supply is good. Green LED normall...
by dgordon42
Wed Mar 21, 2018 5:18 pm
Forum: General discussion
Topic: HELP! - Why does my program not compile?!
Replies: 6
Views: 381

Re: HELP! - Why does my program not compile?!

as I have done code changes and its still running an old version of the code... It's also worth checking that the new file is correctly written to your SD card. Sometimes SD cards can go "read only", it's one of the first signs of SD card failure, and results in 'old' versions of files appearing, e...
by dgordon42
Mon Mar 12, 2018 11:40 am
Forum: Beginners
Topic: Headless setup: no keyboard, display or frustration
Replies: 50
Views: 278643

Re: Headless setup: no keyboard, display or frustration

@LordOfDucks:
The guide posted at the beginning of this thread was posted in April 2014, and is out of date.
You should have better luck using the current guide.

Hope this helps,
Dave.
by dgordon42
Fri Mar 02, 2018 10:12 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: i2c problem - two slaves with same address
Replies: 2
Views: 428

Re: i2c problem - two slaves with same address

The mlx90615 device stores it's I2c address in it's EEPROM, and so you can change it to allow multiple mlx90615 devices on a single I2c Bus.
Details on page 9 of the datasheet

Hope this helps,
Dave.
by dgordon42
Wed Feb 28, 2018 12:20 pm
Forum: Raspbian
Topic: avahi-deamon causing lockups when network down
Replies: 2
Views: 242

Re: avahi-deamon causing lockups when network down

There are reports of RaspberryPi's locking up running the latest WiFi firmware when reconnecting to a WiFi network.
More here

Hope this helps,
Dave.
by dgordon42
Thu Feb 22, 2018 8:39 pm
Forum: Troubleshooting
Topic: Unable to connect to raspberry pi after windows 10 updates
Replies: 4
Views: 526

Re: Unable to connect to raspberry pi after windows 10 updates

Had a similar problem recently with Windows Update, it turned off Samba on Windows 10. Try: Control Panel -> Programs -> Turn Windows features on or off, wait for the list to populate, then scroll down to "SMB 1.0/CIFS File Sharing Support", and tick the box (if it's been deselected as happened to m...
by dgordon42
Wed Feb 21, 2018 4:36 pm
Forum: Advanced users
Topic: Is it normal to not see linux boot messages when connected to rpi (various versions) via serial cable?
Replies: 4
Views: 493

Re: Is it normal to not see linux boot messages when connected to rpi (various versions) via serial cable?

I am connecting to my pi(s) via a prolific 2303 cable I take it that the USB side is connected to the Pi. If so I don't think you can see the boot messages on a connected terminal as the Pi has to boot before the USB ports are up & running. I have tried adding "console=ttyUSB0,9600" to my '/boot/cm...
by dgordon42
Sat Feb 17, 2018 1:31 pm
Forum: Troubleshooting
Topic: Raspbian Stretch With Desktop - 11/29/2017
Replies: 20
Views: 1247

Re: Raspbian Stretch With Desktop - 11/29/2017

As the OP stated they are using notpad++ you can set the line ending format to be unix (LF) for all new files. by selecting preferences > new document > format line ending. for existing files you can do EOL conversion by selecting Edit>EOL conversion>then selecting unix (LF) >then re-save the file....
by dgordon42
Sat Feb 17, 2018 11:31 am
Forum: Troubleshooting
Topic: Raspbian Stretch With Desktop - 11/29/2017
Replies: 20
Views: 1247

Re: Raspbian Stretch With Desktop - 11/29/2017

@Mary2018: With your 'wpa_supplicant.conf' file open in Notepad++, check the status line at the bottom. Where it says "Windows (CR LF)", right click and select "Unix (LF)" instead. Then re-save your file on the RaspberryPi. Windows and Linux (Unix) store their 'End Of Line' symbols differently in te...

Go to advanced search