Go to advanced search

by Larsey
Thu Dec 19, 2019 9:39 am
Forum: Advanced users
Topic: [SOLVED] How can I add permission to use serial usb?
Replies: 1
Views: 234

Re: How can I add permission to use serial usb?

Wow... i figured it out. I had to include the full path to the device, not simply ttyUSB0, but /dev/ttyUSB0
by Larsey
Thu Dec 19, 2019 9:28 am
Forum: Advanced users
Topic: [SOLVED] How can I add permission to use serial usb?
Replies: 1
Views: 234

[SOLVED] How can I add permission to use serial usb?

Hi, I've created a small application that reads powermeter via a usb thingy :-). It's .NET Core application, and I have it working on my PC, but that's not practical so I want to use my raspberry pi. Everything is set up, but I get this error: pi@powerpi:~ $ ./powerlogger/app ttyUSB0 Unhandled excep...
by Larsey
Wed Oct 26, 2016 6:38 am
Forum: General discussion
Topic: Help with RPi and mosquitto and MQTT
Replies: 26
Views: 7898

Re: Help with RPi and Musquitto MTQQ

Yes, this works just fine: $ mosquitto_sub -h test.mosquitto.org -t "#" -v I suspect there is no web server running on that host name. The PI runs a webhost yes, it runs node-red on port 1880 and a regular www on 80. Mosquitto uses 1883 so I should be fine? netstat -an | grep LISTEN gives me pi@ras...
by Larsey
Tue Oct 25, 2016 8:32 pm
Forum: General discussion
Topic: Help with RPi and mosquitto and MQTT
Replies: 26
Views: 7898

Re: Help with RPi and Musquitto MTQQ

Curious. I just installed mosquitto to a rapspi 3 with raspbian jessie here. Then I do: $ mosquitto_sub -h raspberrypi3 -t "#" -v from my Debian PC and it connects without problem. So it looks like mosquitto is all setup to be accessed over the net out of the box. Does you paho mqtt client actually...
by Larsey
Tue Oct 25, 2016 6:07 pm
Forum: General discussion
Topic: Help with RPi and mosquitto and MQTT
Replies: 26
Views: 7898

Re: Help with RPi and Musquitto MTQQ

There is mosquitto for Windows: https://mosquitto.org/download/ As ping works I think my next test would be making the subscription to everything as CarlRJ describes above. I cant subscribe if I cant connect. This simple Python script tries to connect and publish: import paho.mqtt.client as mqtt de...
by Larsey
Tue Oct 25, 2016 5:33 pm
Forum: General discussion
Topic: Help with RPi and mosquitto and MQTT
Replies: 26
Views: 7898

Re: Help with RPi and Musquitto MTQQ

So, don't take this the wrong way, but... you are specifying the IP of the host that's running the broker, when you're trying to use it over the network, right? It's not a broadcast protocol. You'd need something like: mosquitto_pub -h raspberrypi.local -d -t test_mqtt -m "Greetings from Terminal w...
by Larsey
Tue Oct 25, 2016 5:20 pm
Forum: General discussion
Topic: Help with RPi and mosquitto and MQTT
Replies: 26
Views: 7898

Re: Help with RPi and Musquitto MTQQ

Heater wrote:From what you say it's almost certain your problem is not with mosquitto. It's with your network connectivity.

First things first, can you ping your raspberry pi from the other machines on your network?
Yep, from my Windows 10 box i can ping both hostname and IP. No problem :D
by Larsey
Tue Oct 25, 2016 12:48 pm
Forum: General discussion
Topic: Help with RPi and mosquitto and MQTT
Replies: 26
Views: 7898

Help with RPi and mosquitto and MQTT

Hello! I need some help getting Musquitto to work properly on the Raspberry Pi. I've installed the broker and clients as running the following command works: pi@raspberrypi ~ $ mosquitto_pub -d -t test_mtqq -m "Greetings from Terminal window" I'm running this command in putty so it runs locally. I'm...
by Larsey
Fri May 20, 2016 12:18 pm
Forum: Python
Topic: Using cheap RF modules
Replies: 9
Views: 2278

Re: Using cheap RF modules

joan wrote:As you are not doing your own byte protocol you could just use http://abyz.co.uk/rpi/pigpio/examples.h ... on__433_py
Seems a bit overkill if I can use the 433Utils and trigger commands from Python :/. But how do I run a executable in Python with an argument as listed in my earlier post?
by Larsey
Fri May 20, 2016 8:38 am
Forum: Python
Topic: Using cheap RF modules
Replies: 9
Views: 2278

Re: Using cheap RF modules

I got these simple RF links, and got them to work with my Arduino, Attiny and Netduino. But can how can I get them to work with the RPi? I have written my own byte protocol so I need a way in python to write a byte or array of bytes to a GPIO pin to the transmitter. https://www.amazon.co.uk/Wireles...
by Larsey
Thu May 19, 2016 9:06 pm
Forum: Python
Topic: Using cheap RF modules
Replies: 9
Views: 2278

Using cheap RF modules

I got these simple RF links, and got them to work with my Arduino, Attiny and Netduino. But can how can I get them to work with the RPi? I have written my own byte protocol so I need a way in python to write a byte or array of bytes to a GPIO pin to the transmitter. https://www.amazon.co.uk/Wireless...
by Larsey
Mon Nov 02, 2015 9:26 am
Forum: Troubleshooting
Topic: Need help with RFSniffer
Replies: 1
Views: 1253

Need help with RFSniffer

Hello! I'm trying to sniff out the codes for simple rf keychain thingy. It has 2 buttons. One sending "on" and one sending "off". It controls a poweroutlet. I've installed WiringPi and 433Utils, and as I understand it i need to use Wiring Pi PIN2 for the datapin. Printing the pins with gpio readall ...
by Larsey
Sun Mar 15, 2015 8:40 am
Forum: Python
Topic: Serial data from RF link
Replies: 2
Views: 1227

Serial data from RF link

Hello everyone! I'm trying to port an application I made to my Arduino to the raspberry (RPi2) because of its awesome possibilities to work with data in the cloud. I have these cheap RF links (http://www.seeedstudio.com/depot/433Mhz-RF-link-kit-p-127.html), and tried to get 'em to work but I'm unsur...
by Larsey
Tue Feb 12, 2013 11:00 am
Forum: Beginners
Topic: Can I config the ethernet IP post boot?
Replies: 3
Views: 712

Re: Can I config the ethernet IP post boot?

RaTTuS wrote:what OS on your PC?
you shoudl be able to use ICS
My work machine uses Windows 7.
by Larsey
Tue Feb 12, 2013 10:47 am
Forum: Beginners
Topic: Can I config the ethernet IP post boot?
Replies: 3
Views: 712

Can I config the ethernet IP post boot?

Hello! I've just downloaded raspbian and I wonder if it is possible to set static IP before I boot it up? I just brought the Pi to work and I dont have a hdmi cable or svideo cable? Its connected with a crossover cable to my pc. Maybe there is a default IP it uses? I just need to get access to it wi...
by Larsey
Tue Jan 22, 2013 10:11 am
Forum: Advanced users
Topic: Is there a way I can reset my overclocking values?
Replies: 4
Views: 3951

Is there a way I can reset my overclocking values?

I'm trying out overclocking (yeah, warranty void bla bla :P).

But is there a way I can reset og run safe values so it boots? Yesterday I tried openelec at 1000mhz, and it did not boot. Problem solved by installing the SD card all over again, but that is boring and takes time :-/
by Larsey
Wed Aug 15, 2012 6:15 am
Forum: HATs and other add-ons
Topic: Small WiFi adaptor
Replies: 10
Views: 26690

Re: Small WiFi adaptor

I would recommend the one i got, a ZyXEL one. Read all about it at http://blog.fagerbakke.net/2012/7/10/ra ... less!.aspx
by Larsey
Tue Aug 14, 2012 8:36 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi goes mobile, WP7 joins the ride
Replies: 10
Views: 2270

Re: Raspberry Pi goes mobile, WP7 joins the ride

How do you go about it with the GPIO? You might be writing a wrapper or something to python, or is a feature already built in? Some wrappers exists i.e. https://github.com/cypherkey/RaspberryPi.Net Very tempting :D thanks. Ill look into it. In my case the python server (tcp server) was a very strai...
by Larsey
Tue Aug 14, 2012 8:28 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi goes mobile, WP7 joins the ride
Replies: 10
Views: 2270

Re: Raspberry Pi goes mobile, WP7 joins the ride

amigarulez wrote:Well for a first project I'm impressed;)
Under Arch Linux Mono is quiet usable, so you can "share" code with you WP7 app;)
How do you go about it with the GPIO? You might be writing a wrapper or something to python, or is a feature already built in?
by Larsey
Tue Aug 14, 2012 8:02 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi goes mobile, WP7 joins the ride
Replies: 10
Views: 2270

Re: Raspberry Pi goes mobile, WP7 joins the ride

Looks great - can you list the motor controller used, and connections to the pi ? Sure I can :-): Motor controller is http://www.canakit.com/dual-motor-l298-h-bridge-control-ck1122-uk1122.html, it's quite expensive but gets the job done. It's also good for future projects since it very robust and v...
by Larsey
Tue Aug 14, 2012 7:26 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi goes mobile, WP7 joins the ride
Replies: 10
Views: 2270

Re: Raspberry Pi goes mobile, WP7 joins the ride

Thank you! As I mention in the blog this is my first project, I've only done a "turn on a LED"-type of project before. The Raspberry Pi platform is really a rich platform that allows you to do all kind of crazy stuff :D But what I would want would be a distro leaning more towards this kind of work -...
by Larsey
Tue Aug 14, 2012 6:59 am
Forum: Automation, sensing and robotics
Topic: Raspberry Pi goes mobile, WP7 joins the ride
Replies: 10
Views: 2270

Raspberry Pi goes mobile, WP7 joins the ride

Thought I could share with you people my latest project for the Pi :D Read all about it at my blog, http://blog.fagerbakke.net/2012/8/13/raspberry-pi-goes-mobile,-wp7-joins-the-ride.aspx. What I've done is removing the "brains" of a toy car and replaced it with a Pi connected to a motor controller. ...
by Larsey
Mon Aug 13, 2012 7:21 am
Forum: Automation, sensing and robotics
Topic: Battery power
Replies: 20
Views: 11877

Re: Battery power

As I understands it the Pi needs 5v, and atleast 750 mA. So I shopped - 4 x Anseman batteries http://uk.rs-online.com/web/p/aa-rechargeable-batteries/6708741/ - 1x Holder http://uk.rs-online.com/web/p/battery-holders-mounts/0594628/ Tested it with a multimeter and somewhat charged it gives me ~5.1V ...
by Larsey
Wed Aug 08, 2012 6:41 am
Forum: Advanced users
Topic: wlan will not start, unless i plug in the cable :P
Replies: 2
Views: 1682

Re: wlan will not start, unless i plug in the cable :P

FYI

I installed wicd last night and I must say it is MUCH better then the built in crap. Now I enjoy wireless without having to plug in the ethernet cable :P
by Larsey
Mon Aug 06, 2012 7:50 am
Forum: Advanced users
Topic: wlan will not start, unless i plug in the cable :P
Replies: 2
Views: 1682

wlan will not start, unless i plug in the cable :P

I have this ZyXWL NWD2105 usb networkadapter that seems a bit unstable. But something is bugging it and most of the times when I power up my PI it seems at the PI ignores it. BUT (and no joke), if I plug in the ethernet cable the PI starts up both devices. And it is getting silly boring as my curren...

Go to advanced search