Go to advanced search

by P_Monty
Fri Jun 15, 2018 6:09 pm
Forum: Networking and servers
Topic: RTL2832u in Raspberry
Replies: 10
Views: 12100

Re: RTL2832u in Raspberry

Gaghh I'm stuck again... rtl_test finds the device and gives some useful information about it. rtl_tcp -a gives: "Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner [R82XX] PLL not locked! Tuned to 100000000 Hz. listening......
by P_Monty
Fri Jun 01, 2018 11:21 am
Forum: Networking and servers
Topic: RTL2832u in Raspberry
Replies: 10
Views: 12100

Re: RTL2832u in Raspberry

Thanks.
That got the server running - now for the next step :-)
by P_Monty
Fri Jun 01, 2018 9:08 am
Forum: Networking and servers
Topic: RTL2832u in Raspberry
Replies: 10
Views: 12100

Re: RTL2832u in Raspberry

Sorry to dig up an old thread, but this is kind of where I'm at. I went through the process detailed by the OP, but when I run rtl_test, I get: "Found 1 device(s): 0: Realtek, RTL2838UHIDIR, SN: 00000001 Using device 0: Generic RTL2832U OEM Kernel driver is active, or device is claimed by second ins...
by P_Monty
Sat Mar 11, 2017 12:43 pm
Forum: Python
Topic: TkInter Text.insert
Replies: 5
Views: 3143

Re: TkInter Text.insert

Thanks all,
Breaking it over multiple lines did the trick. I don't know why, but it did ...

The missing 'r' is a typo as I copied the code from a VNC window into the main computer :-)
by P_Monty
Fri Mar 10, 2017 7:30 pm
Forum: Python
Topic: TkInter Text.insert
Replies: 5
Views: 3143

Re: TkInter Text.insert

Funny old thing, that's the one I copied.
That's why I don't understand what's wrong with the T.insert...

Thanks for replying
by P_Monty
Fri Mar 10, 2017 7:12 pm
Forum: Python
Topic: TkInter Text.insert
Replies: 5
Views: 3143

TkInter Text.insert

Hi folks - hoping this is a simple one. I'm trying to draw a text box on the screen which I can use to display variable data. I've got: import tkinter from tkinter import * (not sure why I need both these lines ...) . . window=tkinter.Tk() . . T=Text(window, height=2, width=20).grid(ow=6, column=6) ...
by P_Monty
Sun Aug 28, 2016 11:16 am
Forum: Beginners
Topic: Audio transfer between RPis
Replies: 15
Views: 2495

Re: Audio transfer between RPis

There will be a degradation in sound, but not a massive one.
Is the audio output nice and high? It needs to exercise all the bits in the sound card.
by P_Monty
Fri May 13, 2016 4:02 pm
Forum: Python
Topic: Bitwise operaions.
Replies: 6
Views: 992

Re: Bitwise operaions.

I'm being a bit slow here... In your example, is "bits" The name of the byte that is having the individual bits changed? And where you use a"1" does that mean I could use a "2" or "4" for other bits in the byte? Edit: I hadn't seen MarkTFs post when I wrote this. I think I'm understanding now - than...
by P_Monty
Fri May 13, 2016 10:53 am
Forum: Python
Topic: Bitwise operaions.
Replies: 6
Views: 992

Re: Bitwise operaions.

Thanks for the reply. Where I'm really stuck is how to change an individual bit in a byte. Suppose I've got a byte which is currently 00000000 in binary, if I want a particular button (either GPIO or screen-press it doesn't matter) to change the byte to 00000100, I'm not sure how to do that. In this...
by P_Monty
Mon May 09, 2016 6:57 pm
Forum: Python
Topic: Bitwise operaions.
Replies: 6
Views: 992

Bitwise operaions.

Hi folks - I hope thats a suitable subject - not totally sure how to describe what I'm aiming for - but here goes... I've got a little application I'm working on where a logic variable changes state when a button is pressed. I can do this quite simply with: new_state=1-old_state Now, I wanted to do ...
by P_Monty
Sun Oct 25, 2015 7:44 pm
Forum: Troubleshooting
Topic: button multipress with long cable - lamp interference!
Replies: 16
Views: 3145

Re: button multipress with long cable - lamp interference!

I took that to mean two separate cases - one had a 1k resistor in series with the switch, the other had a 10k.

Can't draw it on my tablet to demonstrate...
by P_Monty
Sat Oct 10, 2015 6:58 pm
Forum: Troubleshooting
Topic: Unable to access internet but Pi2 has IP address
Replies: 8
Views: 1291

Re: Unable to access internet but Pi2 has IP address

It sounds as if the network gateway isn't setup properly. However, as a Linux newbie, I don't know how to sort this...
by P_Monty
Thu Oct 08, 2015 8:55 pm
Forum: Troubleshooting
Topic: network connection lost after reboot
Replies: 2
Views: 899

Re: network connection lost after reboot

Have you got another computer connected to the network? If so, running wire shark on that will allow you to debug network messages.
by P_Monty
Fri Oct 02, 2015 5:14 pm
Forum: Beginners
Topic: GPIO/Electronics question
Replies: 5
Views: 753

Re: GPIO/Electronics question

The gpio pins a 3.3v. You can't change to 5v, if you need 5v then you'll have to use the gpio pin to drive a transistor or relay...
by P_Monty
Mon Sep 28, 2015 6:08 pm
Forum: Python
Topic: threading
Replies: 17
Views: 5117

Re: threading

I do try to pay attention is someone is being good enough to explain things to me :D
I've got a 'quit' button which calls a routine which does some tidying up, so I guess I can stop any threads in there...

Cheers.
by P_Monty
Sun Sep 27, 2015 9:58 pm
Forum: Python
Topic: threading
Replies: 17
Views: 5117

Re: threading

Thanks for the reply. Initially, 'go' is just going to read the serial port and display the data - later versions will do a bit more - write to the port too and perform calculations on the received data. Your example appears to make sense - except should the button command now call start_go instead?...
by P_Monty
Sun Sep 27, 2015 5:13 pm
Forum: Python
Topic: threading
Replies: 17
Views: 5117

Re: threading

OK I wonder if someone could give me a push in the right direction. I want a routine in python3 which when I press the 'go' button it will sit and read data from the serial port (and do other stuff with it) until the program is exited. I started off with something like: def go(): while true: do all ...
by P_Monty
Sun Sep 27, 2015 7:59 am
Forum: Troubleshooting
Topic: hot USB port
Replies: 14
Views: 5574

Re: hot USB port

That's great - thanks
by P_Monty
Sat Sep 26, 2015 8:51 pm
Forum: Beginners
Topic: LED questions
Replies: 3
Views: 624

Re: LED questions

You could drive plenty of LEDs by using the gpio pins to drive a transistor or relay and then using that to drive the LEDs.
by P_Monty
Sat Sep 26, 2015 8:05 pm
Forum: Troubleshooting
Topic: hot USB port
Replies: 14
Views: 5574

Re: hot USB port

A connector itself doesn't dissipate power, so it won't get hot. Also, the PI's USB ports are designed for low power devices (max 100mA), and WiFi transponders are not low power devices, so what also happens is that you are heating up the fuses. A WiFi adapter on an unmodified PI can only be run fr...
by P_Monty
Sat Sep 26, 2015 6:07 pm
Forum: Automation, sensing and robotics
Topic: High Current Stepper Control
Replies: 3
Views: 883

Re: High Current Stepper Control

You could use a suitably rated power transistor between the output and the motors...
by P_Monty
Sat Sep 26, 2015 4:20 pm
Forum: Python
Topic: threading
Replies: 17
Views: 5117

Re: threading

Thanks - I'm using a piB+, so the multicore bit doesn't bother me.
Time to crack on with the threading module then :D
by P_Monty
Sat Sep 26, 2015 3:31 pm
Forum: Python
Topic: threading
Replies: 17
Views: 5117

Re: threading

paddyg is correct again; 'thread' has been deprecated, and removed (hidden, actually) from Python3. Here's that (not very good) example updated for Python3 from threading import Thread import time import random def runOften(threadName, sleepTime): while True: time.sleep(sleepTime) print (threadName...
by P_Monty
Thu Sep 17, 2015 7:53 pm
Forum: Networking and servers
Topic: unable to connect to internet via wifi dongle
Replies: 10
Views: 2177

Re: unable to connect to internet via wifi dongle

Some of those errors at the beginning look as though you've not got a DNS server configured. Can you access any web sites via a browser?
by P_Monty
Thu Sep 10, 2015 9:07 pm
Forum: Beginners
Topic: Remote Desktop Help
Replies: 9
Views: 1454

Re: Remote Desktop Help

I assume you're creating the PowerPoint on a remote PC and then copying it to the pi? If so, can you set up a shared area on the pi card that both profiles can access (ie the profile that uses the PowerPoint and the one that logs in remotely)?

Go to advanced search