Go to advanced search

by dgordon42
Tue Dec 05, 2017 5:03 pm
Forum: The MagPi
Topic: Can't download agc.zip for the Apollo project
Replies: 8
Views: 2843

Re: Can't download agc.zip for the Apollo project

There is a Forum Post which might help you with this.

Good Luck,
Dave.
by dgordon42
Mon Dec 04, 2017 3:37 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Serial Pin & Python
Replies: 1
Views: 392

Re: Serial Pin & Python

Which model of Raspberrypi are you using?
Which Operating System are you running on this Pi?
What have you done (if anything) to configure your Pi for Serial Port operations?

Thanks,
Dave.
by dgordon42
Sun Nov 26, 2017 8:11 pm
Forum: Beginners
Topic: UART(/dev/ttyAMA0) issue on Stretch pi3 B
Replies: 4
Views: 9404

Re: UART(/dev/ttyAMA0) issue on Stretch pi3 B

Post the output of:

Code: Select all

grep -v -e ^$ -e ^# /boot/config.txt
As far as I know, there is no difference in using the Pi's UART's between Jessie and Stretch.

By the way, what does the phrase "rpitestmode=1" in '/boot/cmdline.txt' do for you?

Dave.
by dgordon42
Sat Nov 25, 2017 6:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: RPi3 serial port
Replies: 13
Views: 15987

Re: RPi3 serial port

@sreeuma,
Can you post the output of:

Code: Select all

grep -v -e ^$ -e ^# /boot/config.txt
Thanks,
Dave.
by dgordon42
Mon Nov 20, 2017 12:56 pm
Forum: Python
Topic: Serial port via USB port
Replies: 6
Views: 30685

Re: Serial port via USB port

lupandua wrote:i have configured the serial port ttyS0 to ttyUSB0 as iam using a USB port.
How are you doing this?
Plug in your Serial to USB device to the Pi and report the output of:

Code: Select all

lsusb
Dave.
by dgordon42
Fri Nov 03, 2017 4:40 pm
Forum: General discussion
Topic: How to find python3 path?
Replies: 3
Views: 6423

Re: How to find python3 path?

Run the command: ls -lh /usr/bin/python3 The 'python3' file is a symbolic link to the executable file that runs when you run the 'python3' command. You can change the link to point to your Python3 3.5 file. A better way would be to use Bash Alternatives to point to the new Python3 version, run: man ...
by dgordon42
Tue Oct 10, 2017 1:28 pm
Forum: Troubleshooting
Topic: Missing files after reboot
Replies: 1
Views: 1052

Re: Missing files after reboot

On rebooting the pi (via the GUI - which presumably is a controlled reboot) and logging on again, the file created above disappears :( and the file system seems to revert to a state from about a week ago. So, what's going on? This is generally caused by the SD Card going into "read only" mode. Many...
by dgordon42
Sun Oct 08, 2017 11:28 am
Forum: Raspbian
Topic: /etc/pip.conf is badly broken
Replies: 9
Views: 2460

Re: /etc/pip.conf is badly broken

Have you seen this?

Also, on the piwheels website it states piwheels is only available for Python 3.4, so I guess it won't work too well with Stretch.

Hope this helps,
Dave.
by dgordon42
Sat Oct 07, 2017 4:51 pm
Forum: Troubleshooting
Topic: Can't SSH into Pi Zero (headless)
Replies: 8
Views: 6751

Re: Can't SSH into Pi Zero (headless)

What happens if you run:

Code: Select all

ping raspberrypi.local
on your Windows PC?

Dave.
by dgordon42
Thu Sep 28, 2017 1:09 pm
Forum: Troubleshooting
Topic: Followed the WIFI guide and still not working help?
Replies: 1
Views: 1321

Re: Followed the WIFI guide and still not working help?

I followed the previous instructions according to the wifi troubleshoot thread to no avail. The RaspberryPi Foundation released Raspbian Stretch in August, making the information in that thread largely out of date. The following assumes that your WiFi network uses WPA2 security, not the older and i...
by dgordon42
Sun Sep 24, 2017 9:40 am
Forum: Troubleshooting
Topic: VNC black X cursor
Replies: 3
Views: 1993

Re: VNC black X cursor

I have also had the problem of the 'X' mouse pointer when running the 'vncserver' command on a headless Pi running Stretch. After a bit of searching, I came across this fix: Copy the '/etc/vnc/xstartup' file into a new file '/etc/vnc/xstartup.custom' In the new '/etc/vnc/xstartup.custom' file, find ...
by dgordon42
Sat Sep 23, 2017 8:11 pm
Forum: Troubleshooting
Topic: Raspi Pi 2B every reboot backs in time
Replies: 1
Views: 281

Re: Raspi Pi 2B every reboot backs in time

When some SD Cards fail, they switch themselves into a 'read only' mode to preserve the data that's already on them. This produces symptoms like you are describing, The Pi appears to update, but on a reboot it returns to a previous state as the SD Card is not accepting the new data. Try a new SD Car...
by dgordon42
Thu Sep 21, 2017 6:46 pm
Forum: Troubleshooting
Topic: Remote Desktop Connection using XRDP stopped working
Replies: 11
Views: 10437

Re: Remote Desktop Connection using XRDP stopped working

If you use the command line apt-cache search and apt-get install to see what the issue is, it just does not find XRDP. That is why I think it is blocked not broken It's xrdp, small letters, and it is in the Raspbian repositories. Because it conflicts with RealVNC, you may have to purge the RealVNC ...
by dgordon42
Mon Sep 11, 2017 5:45 pm
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 1998

Re: Trouble using serial via GPIO

If you are using "dtoverlay=pi3-miniuart-bt", then you must add the line: core_freq=250 to the /boot/config.txt file. See the '/boot/overlays/README' file for more details. The rest of the configuration looks correct. You will need to reboot after changing '/boot/config.txt'. Hope this helps, Dave.
by dgordon42
Mon Sep 11, 2017 3:26 pm
Forum: Advanced users
Topic: Trouble using serial via GPIO
Replies: 11
Views: 1998

Re: Trouble using serial via GPIO

If you post the output of the following 2 commands, I can tell if your Serial Port is correctly set up:

Code: Select all

cat /boot/cmdline.txt
grep -v -e ^# /boot/config.txt
Dave.
by dgordon42
Sun Sep 10, 2017 2:32 pm
Forum: Troubleshooting
Topic: Serial connection with dumb terminal
Replies: 5
Views: 1026

Re: Serial connection with dumb terminal

You can read and/or set Serial Port parameters with the 'stty' command. There is a lot of information on it's man page.

Hope this helps,
Dave.
by dgordon42
Sun Sep 10, 2017 11:50 am
Forum: Raspbian
Topic: Re: Booting Stretch to the CLI with NumLock on [Solved]
Replies: 9
Views: 3375

Re: Booting Stretch to the CLI with NumLock on [Solved]

You can add the appliction numlockx and then add "numlockx 0n" to your startup script. I have numlockx installed, but that only works in the X GUI I am now using the script suggested in 'setleds' man page, and calling it with '@reboot' in crontab, and the Pi is booting to the CLI with NumLock on. I...
by dgordon42
Sat Sep 09, 2017 6:25 pm
Forum: Raspbian
Topic: Re: Booting Stretch to the CLI with NumLock on [Solved]
Replies: 9
Views: 3375

Re: Booting Stretch to the CLI with NumLock on

Tried creating the '/etc/kbd/config' file with the line "LEDS=+nums", but the Pi still boots with NumLock off.

Dave.
by dgordon42
Thu Sep 07, 2017 4:17 pm
Forum: Troubleshooting
Topic: Edimax EW-7811Un cannot stay connected
Replies: 2
Views: 602

Re: Edimax EW-7811Un cannot stay connected

I have not tried this in Stretch, but in Jessie (and Wheezy) on the Pi, The Edimax EW-7811Un needs a file, "8912cu.conf" in the "/etc/modprobe.d/" directory containing the line:

Code: Select all

options 8192cu rtw_power_mgnt=0 rtw_enusbss=0
to turn off it's power management and run properly.

Hope this helps,
Dave.
by dgordon42
Thu Sep 07, 2017 3:28 pm
Forum: General discussion
Topic: Pi serial number
Replies: 5
Views: 2474

Re: Pi serial number

Run:

Code: Select all

cat /proc/cpuinfo
The Pi's serial number is on the last line, and no you cannot change it.

Hope this helps,
Dave.
by dgordon42
Wed Sep 06, 2017 5:04 pm
Forum: Python
Topic: for i in range question
Replies: 15
Views: 2221

Re: for i in range question

mirgol wrote:Syntax error while(1).
The syntax error is a missing colon. It should read:

Code: Select all

while(1):
You also have indentation problems, follow @bensimmo's advice above.

Hope this helps,
Dave.
by dgordon42
Wed Sep 06, 2017 11:29 am
Forum: Troubleshooting
Topic: RPI3 Serial Communication in Python
Replies: 1
Views: 2212

Re: RPI3 Serial Communication in Python

You are probably using Python 3, which handles strings as utf-8 characters rather then the ASCII characters of Python 2. Try running this: import serial ser = serial.Serial("/dev/ttyS0",9600,timeout=1) while True: received = ser.readline() print(received.decode('utf-8')) There is more information in...
by dgordon42
Tue Sep 05, 2017 4:32 pm
Forum: Troubleshooting
Topic: Serial connection with dumb terminal
Replies: 5
Views: 1026

Re: Serial connection with dumb terminal

How are you setting the baud value on the Pi? I know nothing about the Minitel, but assuming that the both the Tx and Rx baud is 1200, trying changing the phrase "console=serial0,115200" to "console=serial0,1200" in the '/boot/cmdline.txt' file. Note 1: '/boot/cmdline.txt' must only contain 1 line. ...
by dgordon42
Sun Sep 03, 2017 2:03 pm
Forum: Raspbian
Topic: Re: Booting Stretch to the CLI with NumLock on [Solved]
Replies: 9
Views: 3375

Re: Booting Stretch to the CLI with NumLock on

So, that's a "no", right? Correct. The '/usr/share/doc/kbd/NEWS.Debian.gz' file in Stretch recommends not keeping the '/etc/kbd/' directory in Stretch, but does not ban it. As having the machine boot up with NumLock off is not a major problem, I plan on waiting a day or so to see if there is a "Str...
by dgordon42
Sun Sep 03, 2017 12:48 pm
Forum: Raspbian
Topic: Re: Booting Stretch to the CLI with NumLock on [Solved]
Replies: 9
Views: 3375

Re: Booting Stretch to the CLI with NumLock on

Have you tried creating that directory/file? ... Maybe it was just an oversight on the part of the Stretch-makers - not creating the directory. Thanks for the reply. The 'kbd' package is installed in Stretch by default, but the '/etc/kbd/' directory is deliberately left out. There is some informati...

Go to advanced search