Go to advanced search

by honda4life
Wed Dec 26, 2018 9:40 am
Forum: C/C++
Topic: Share GPIO between multiple programs triggers interrupt
Replies: 0
Views: 547

Share GPIO between multiple programs triggers interrupt

Hello All, I'm running a few scripts on the RPI, but suddenly I got an issue. First script creates an interrupt if the doorbell rings and triggers the wireless telephones to ring. (We don't hear the doorbell when outside etc.) Second scripts reads out energy consumption at 21 o'clock, 0 o'clock, and...
by honda4life
Sat May 14, 2016 7:25 am
Forum: General discussion
Topic: Getting selenium python to work on Raspberry Pi Model B
Replies: 12
Views: 31458

Re: Getting selenium python to work on Raspberry Pi Model B

This does not work anymore, It works when you change the code, not the timeout value because it is a default value when no argument is given. The real timeout comes from : /usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py class WebDriver(RemoteWebDriver): # There is no n...
by honda4life
Sun Mar 13, 2016 6:06 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading UART registers
Replies: 4
Views: 2135

Re: Reading UART registers

I was not aware of that functio, will try it but i'm not sure it will work.
by honda4life
Sun Mar 13, 2016 10:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading UART registers
Replies: 4
Views: 2135

Re: Reading UART registers

Thanks, This is new to me, maybe try this offsets. #define UART0_BASE (piPeriphBase + 0x201000) #define UART1_BASE (piPeriphBase + 0x215000) Not sure if it is using UART0 or UART1. I think we are using PL011. Mini: offset = 0x7E 215000 PL011: 0x7E 20100 , see page 177 Typo in the code or datasheet?
by honda4life
Sun Mar 13, 2016 8:34 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Reading UART registers
Replies: 4
Views: 2135

Reading UART registers

Hello, I have a RPi2 and want to have access to the UART registers. I've made my own PCB with as an interface board suited for my needs. On this board there is a RS485 IC (MAX3485), but this needs an additional output to switch between RX/TX mode (half duplex communication). So I have to check the T...
by honda4life
Fri Oct 25, 2013 4:18 pm
Forum: Networking and servers
Topic: OpenVpn performance
Replies: 0
Views: 4651

OpenVpn performance

Hello, I'm running OpenVPN on a RPi in a datacenter, I got 100 mbit up and 100 mbit down, this speed is verified with a speedtest. I'm running OpenVPN for access my shares, browsing the internet. The configuration works as expected. Now... The speed is very slow. I've tried a lot but I can't improve...
by honda4life
Sun Oct 20, 2013 5:20 pm
Forum: General discussion
Topic: Doing somethin useful in idle time
Replies: 23
Views: 6042

Re: Doing somethin useful in idle time

I agree.

But I am responsible for the data that's being received or sent over the internet.
Setting up a VPN and doing very bad "anonymous" things on the internet... that's a big personal risk.
by honda4life
Sun Oct 20, 2013 11:01 am
Forum: General discussion
Topic: Doing somethin useful in idle time
Replies: 23
Views: 6042

Re: Doing somethin useful in idle time

Okay, hosting the images of the raspberry pi seems one thing as long as I have storage enough.
But what's the benefit, I think there are quite a lot seeds of the images.

The pi isn't very fast, I know, the connectivity is the real deal ;)
by honda4life
Sat Oct 19, 2013 11:34 am
Forum: General discussion
Topic: Doing somethin useful in idle time
Replies: 23
Views: 6042

Doing somethin useful in idle time

Hi, I have a raspberry pi in colocation, so it's always on. Very useful to me, but quite a lot idle time, so that could be better. I'm searching for some suggestions, how to get the most out of it. I was thinking on a bitcoin miner, or something like that, but I guess it's not worth it. Maybe there ...
by honda4life
Sun Sep 29, 2013 10:06 am
Forum: General discussion
Topic: Automated form filling
Replies: 4
Views: 826

Re: Automated form filling

reposting "bargains" on website ;)
So need some data to extract before completing the post request ;)
by honda4life
Sun Sep 29, 2013 9:13 am
Forum: General discussion
Topic: Automated form filling
Replies: 4
Views: 826

Automated form filling

Hello,

I want to use automated form filling on a webpage with a Pi.
Something like iMacros addon for firefox.
I'm using Python Curl and Beatiful Soup to do the necessary things, but I'm hoping there is a better way.
Any suggestions, because it's very difficult this way.


Thank you!
by honda4life
Sat Sep 07, 2013 12:09 pm
Forum: Networking and servers
Topic: pptp very bad performance for browsing
Replies: 0
Views: 1656

pptp very bad performance for browsing

Hello, I've tried to set up a VPN-server for someone's business trips. Because too much normal things are blocked now. I did a dual config with PPTP and OpenVPN PPTP works very slow on my own computer and his computer. OpenVPN works great on my computer, but there is still a problem on his computer ...
by honda4life
Sun Aug 25, 2013 11:55 am
Forum: Other programming languages
Topic: Bash, append \n to a string
Replies: 5
Views: 3314

Re: Bash, append \n to a string

if [ ${#data} -gt 0 ]; then
data="$data\n"
fi
data="$data$sensor,$temp"
done

echo -e $data
data=$(echo -e $data)
works :mrgreen:
by honda4life
Sun Aug 25, 2013 11:40 am
Forum: Other programming languages
Topic: Bash, append \n to a string
Replies: 5
Views: 3314

Re: Bash, append \n to a string

This is where it happens, echo is OK Echo to the data variable is the solution? if [ ${#data} -gt 0 ]; then data="$data\n" fi data="$data$sensor,$temp" done echo -e $data When looking at the data received at xively: 28-000004eef0d4,28.062\n28-000004eec74b,31.062 Maybe it's better to append a CrLf as...
by honda4life
Sun Aug 25, 2013 9:02 am
Forum: General discussion
Topic: Read/Write cycles of a SD card
Replies: 27
Views: 62723

Re: Read/Write cycles of a SD card

Think that isn't an issue.
40.000 and counting... very good card I suppose :mrgreen:
by honda4life
Sun Aug 25, 2013 8:32 am
Forum: Other programming languages
Topic: Bash, append \n to a string
Replies: 5
Views: 3314

Bash, append \n to a string

Hello, I can't figure out how to add a \n to the end of a string. The purpose is to build a very simple csv string. I did some research on the net but it isn't clear. I've read some things with 'echo -e' but bash isn't that simple as python etc. If the variable > 0 (has data), add a \n before adding...
by honda4life
Fri Aug 23, 2013 5:57 pm
Forum: Python
Topic: Nokia Pi LCD
Replies: 253
Views: 106498

Re: Nokia Pi LCD

I've used this tutorial as a starting point: http://binerry.de/post/25787954149/pcd8544-library-for-raspberry-pi#disqus_thread It works, after some try and error, but I have a strange reset issue. When the reset is connected, the display works very short as is should be, and is blank afterwards. Whe...
by honda4life
Sat Aug 10, 2013 9:55 am
Forum: Other projects
Topic: ST7920 serial mode not working
Replies: 0
Views: 1566

ST7920 serial mode not working

Hello. I'm trying to get a ST7920 display (12864ZW) working in serial mode. This is a 128x64 display, so quite a lot of information can be displayed. I'm using serial mode, so number of GPIO's are limited to the minimum. A fist try was with SPI, but that didn't work, so I'm trying to bitbang the ser...
by honda4life
Wed Aug 07, 2013 7:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Best all round IO library for C
Replies: 0
Views: 465

Best all round IO library for C

Hello, I was wondering what's the best all round GPIO library for C. The basic idea is writing one "background" handler to handle a 128x64 display. with some general information about te pi, and some various program inputs. It's a ST7920 display, not the most easy job to interface, but that's part o...
by honda4life
Wed Jul 24, 2013 6:16 pm
Forum: C/C++
Topic: Sending data between seperate programs
Replies: 3
Views: 1064

Sending data between seperate programs

Hello, I'm planning to using a 128x64 LCD display, I want to show some data from other programs. I was thinking to run this task in the background with some different screens. For example: Screen 1: CPU load, memory usage, disk usage, network usage. Since this is general information, this is polled ...
by honda4life
Mon May 27, 2013 9:15 pm
Forum: General discussion
Topic: Read/Write cycles of a SD card
Replies: 27
Views: 62723

Re: Read/Write cycles of a SD card

I'm trying (1500 cycles atm)
https://xively.com/feeds/127941/
by honda4life
Fri May 17, 2013 9:20 pm
Forum: General discussion
Topic: RaspBerry Pi(e) Model C (imaginations & wants)
Replies: 431
Views: 149033

Re: RaspBerry Pi(e) Model C (imaginations & wants)

The suppliers aren't paying your power bill, so that is of no benefit to the Foundation (at least, not for that reason). This is a small thing you can to to help "saving" the environment just a little bit more without personal drawbacks. Run command: sudo ifdown eth0 Chip is still a bit hot. Where ...
by honda4life
Fri May 17, 2013 9:09 pm
Forum: General discussion
Topic: My story about Farnell warranty
Replies: 0
Views: 823

My story about Farnell warranty

My Pi was broken, not the whole pi but the ethernet part. It was one of the first pi's, ordered in the UK, shipped to Belgium. I contacted the Belgium distributor, but they said I should contact the UK distributor. Very kind people and quick responses. They sent UPS to pick up my raspberry pi for fr...
by honda4life
Wed May 15, 2013 8:17 pm
Forum: General discussion
Topic: RaspBerry Pi(e) Model C (imaginations & wants)
Replies: 431
Views: 149033

Re: RaspBerry Pi(e) Model C (imaginations & wants)

Cheap improvements:
- More efficient power regulators, when always on the cost is earned back quite fast.
- Possibility to shut off ethernet.
- RTC

More expensive improvements.
- Wifi / Bluetooth chip
by honda4life
Sun Apr 28, 2013 11:57 am
Forum: Other projects
Topic: Just for fun: trying to reach the write limit of old SD card
Replies: 0
Views: 439

Just for fun: trying to reach the write limit of old SD card

Hello everyone, I'm trying just for fun to reach the write limit of an old SD card (256MB) since it has no longer any use. I can't find a brand on the card, and it's an old card that was used in an old GPS. I hope this wil show that write limit of SD cards aren't the issue. I've made a batch script ...

Go to advanced search