Go to advanced search

by mikluz
Wed Jun 01, 2016 2:52 pm
Forum: General programming discussion
Topic: Dynamic web page - nginx as a server, what CGI to choose?
Replies: 9
Views: 2877

Re: Dynamic web page - nginx as a server, what CGI to choose

Thanks Gavinmc42 for your reply :). Also thanks to others that gave me useful hints. I will try to use websockets and will try both ways, using precompiled programs that get data from the sensors and store it into a some-kind-of-database (as I want to get to know more about databases). And second wa...
by mikluz
Wed Jun 01, 2016 2:44 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: One wire w1-gpio and w1-gpio-custom
Replies: 70
Views: 80069

Re: One wire w1-gpio and w1-gpio-custom

Hi all, I've found a few topics here and on the Internet which instructs how to change 1-wire default pin from pin 4 to another GPIO pin. I put proposed line to my cmdline.txt file (bcm2708.w1_gpio_pin=XX): [email protected]_Home:/boot $ cat cmdline.txt dwc_otg.lpm_enable=0 console=tty1 console=serial0,11520...
by mikluz
Fri May 27, 2016 9:24 pm
Forum: General programming discussion
Topic: Dynamic web page - nginx as a server, what CGI to choose?
Replies: 9
Views: 2877

Re: Dynamic web page - nginx as a server, what CGI to choose

I'm open to anything, that is fancy, and easy-to-learn, as I had never been doing anything with PHP for instance... I know standard old Javascript a bit, and AJAX that comes with it. I also was told that there is something nice called "Web sockets". I will try to learn about it more. What do you thi...
by mikluz
Wed May 25, 2016 11:15 am
Forum: General programming discussion
Topic: Dynamic web page - nginx as a server, what CGI to choose?
Replies: 9
Views: 2877

Dynamic web page - nginx as a server, what CGI to choose?

Hi, I want to publish my sensors' measurement on the web page that will run on my Raspberry Pi 3. I have nginx already installed, and it's working fine. Standard static index.html site is displayed correctly. Now, I want to go a step further and make it dynamic site which will take data from the sen...
by mikluz
Wed May 18, 2016 1:25 pm
Forum: Raspbian
Topic: I've got some problems after new update!
Replies: 40
Views: 6074

Re: I've got some problems after new update!

@ShiftPlusOne sorry for writing in a wrong thread, I didn't want to create redundant topic. The output is, and I think this is not the case: Filesystem Size Used Avail Use% Mounted on /dev/root 8.0G 5.0G 2.6G 66% / devtmpfs 427M 0 427M 0% /dev tmpfs 432M 0 432M 0% /dev/shm tmpfs 432M 6.3M 425M 2% /r...
by mikluz
Wed May 18, 2016 12:40 pm
Forum: Raspbian
Topic: I've got some problems after new update!
Replies: 40
Views: 6074

Re: I've got some problems after new update!

I'm having the same problems after recent RPI update. I used Geany without any problems few days ago, and yesterday I did rpi update and my geany stopped working. I also can't install it, as '$sudo apt-get install geany' gives me this message: Some packages could not be installed. This may mean that...
by mikluz
Wed Apr 27, 2016 10:11 am
Forum: C/C++
Topic: How to get most precise timer or sleep function on Raspberry
Replies: 13
Views: 9292

Re: How to get most precise timer or sleep function on Raspb

Yeah, I've found it, though it wasn't easy using search option here :)

Here it is: https://github.com/danjperron/BitBangin ... 8B20Scan.c

I'll be looking at it today.
Thanks!
by mikluz
Wed Apr 27, 2016 8:25 am
Forum: C/C++
Topic: How to get most precise timer or sleep function on Raspberry
Replies: 13
Views: 9292

Re: How to get most precise timer or sleep function on Raspb

Thanks joan, I've searched for 1 wire code, and what I could only find was python code for reading temperature. This doesn't satisfy my needs, as I know how to use high level api's for reading sensors' values. I'd rather have a glimpse on somebody's C code that implemented 1 wire protocol. Today I w...
by mikluz
Wed Apr 27, 2016 7:08 am
Forum: C/C++
Topic: How to get most precise timer or sleep function on Raspberry
Replies: 13
Views: 9292

Re: How to get most precise timer or sleep function on Raspb

Thanks joan for replies, and for mentioning pigpio library (I will try that!). The simple answer to your questions is that I want to write my own implementation of 1-wire protocol. That is why I need precise timing to be able to synchronize with slaves. Regarding SPI and I2C I will for sure use exis...
by mikluz
Tue Apr 26, 2016 2:16 pm
Forum: C/C++
Topic: How to get most precise timer or sleep function on Raspberry
Replies: 13
Views: 9292

Re: How to get most precise timer or sleep function on Raspb

Yeah, I want to write my own implementations on the certain protocols using GPIO ports. And you see, Raspbian (Linux) can do the trick in the kernel mode and it's working fine (of course bounded with a certain tolerance). I'm aware of the constraints that operating system has. So, I will probably st...
by mikluz
Tue Apr 26, 2016 1:26 pm
Forum: C/C++
Topic: How to get most precise timer or sleep function on Raspberry
Replies: 13
Views: 9292

How to get most precise timer or sleep function on Raspberry

Hi, I'm using Raspberry Pi 3 @ Raspbian I've been trying to get the most precise timer or sleep function to achieve around 1-2us (micro seconds) resolution. I've tried a few approaches and the best I could achieve was around 100-120us Here is what I tested so far: 1. usleep() const useconds_t usec =...
by mikluz
Mon Apr 11, 2016 11:44 am
Forum: Troubleshooting
Topic: Time does not sync on Pi 3 and with official dongle [Solved]
Replies: 57
Views: 33735

Re: [Solved] Time does not sync on Pi 3 and with official do

I confirm that SR-71 suggestion to manipulate iptables did the trick!
It really seems like RPi3 via WiFi have problems with forwarding packets with ToS = 0xc0 (like ntpd by default queries ntp nodes).
by mikluz
Thu Apr 07, 2016 2:47 pm
Forum: Troubleshooting
Topic: Time does not sync on Pi 3 and with official dongle [Solved]
Replies: 57
Views: 33735

Re: [Solved] Time does not sync on Pi 3 and with official do

Hi all, I've been having problem with NTP sync since I bought my RPi3. The strange situation is that when I connect my RPi at my home wifi network everything works fine. Time is always synced up perfectly. However, when I connect my RPi to my work's wifi network time is out of sync! Like ntpd had pr...
by mikluz
Thu Apr 07, 2016 2:31 pm
Forum: Troubleshooting
Topic: Raspbian screen saver shortcut now available!
Replies: 0
Views: 1095

Raspbian screen saver shortcut now available!

Hi all, I tried to search the possible solution for not existing shortcut to lock the screen in Raspbian but I failed doing so. So, if there was no suggested solution I decided to create one! Here you have the script that defines shortcut for locking the screen: Ctrl + Alt + L (like it is done in Ub...
by mikluz
Fri Apr 01, 2016 8:52 am
Forum: Beginners
Topic: Screen Saver -> Screen OFF instead of Screen black
Replies: 7
Views: 10463

Re: Screen Saver -> Screen OFF instead of Screen black

I know about xscreensaver and am testing it right now, but as someone else stated in this forum, that xscreensaver is using lots of CPU (sic!). I just wondered Raspbian knows how to switch monitor off, so, there is a routine for that. Maybe someone knows how to attach keyboard shortcut for running t...
by mikluz
Thu Mar 31, 2016 1:28 pm
Forum: Beginners
Topic: Screen Saver -> Screen OFF instead of Screen black
Replies: 7
Views: 10463

Re: Screen Saver -> Screen OFF instead of Screen black

Hi, maybe you or someone else would know the answer on the question: "How to trigger locking or blank screen with a keyboard shortcut"? You know, the same as works on M$ when you hit Windows+L, or Ctrl+Alt+L on Ubuntu-like distros? I tried to search the answer on that question, but apparently I coul...
by mikluz
Thu Mar 31, 2016 12:01 pm
Forum: Troubleshooting
Topic: Can't Browse HTTPS Sites?
Replies: 32
Views: 18112

Re: Can't Browse HTTPS Sites?

Sorry for comming back to this topic. I just wanted to write that I had the same problems as the guys here. The reason was that my Raspbian (on RPi 3) couldn't sync date/time properly... (That is very strange, as previous installation worked perfectly. Then I had to reinstall Raspbian and now I've b...

Go to advanced search