Go to advanced search

by jakebpg
Mon Nov 18, 2013 10:42 pm
Forum: Python
Topic: Home-SCADA system
Replies: 8
Views: 3455

Re: Home-SCADA system

bou_ih

It all depends on what you're attempting to do and with what hardware. There are so many different aspects to SCADA programming that without knowing the specifics it would be impossible to give you any advise at all. So please more detail.
by jakebpg
Mon Nov 18, 2013 10:38 pm
Forum: Python
Topic: Home-SCADA system
Replies: 8
Views: 3455

Re: Home-SCADA system

mikegottwald, sorry for the delay. I used the QT Designer to create the interface but here's the code anyway. <?xml version="1.0" encoding="UTF-8"?> <ui version="4.0"> <class>Dialog</class> <widget class="QDialog" name="Dialog"> <property name="geometry"> <rect> <x>0</x> <y>0</y> <width>492</width> ...
by jakebpg
Tue Aug 06, 2013 5:16 pm
Forum: Python
Topic: Continuous loop using threading
Replies: 4
Views: 1246

Re: Continuous loop using threading

Peach, a while loop most likely wont work for what he is doing since it will lock the program from all other input while it is in the loop. He would have to break the loop preform some task restart the loop and break it again to preform another task. A separate thread to preform the counting of a ti...
by jakebpg
Tue Jul 30, 2013 9:20 pm
Forum: Python
Topic: Home-SCADA system
Replies: 8
Views: 3455

Re: Home-SCADA system

Tony, I wrote the software myself, as stated all written in python 3.3. Now I am using the one wire driver for one wire and the I2C drivers native to the RPI. The temperatures displayed are the actual temperatures at my home at the time of the snap shot. I do have other devices I want to add into th...
by jakebpg
Sun Jul 28, 2013 11:42 pm
Forum: Python
Topic: Continuous loop using threading
Replies: 4
Views: 1246

Re: Continuous loop using threading

Here is how you can do it with a separate thread. Not sure if this is what you're looking for but it will give you an idea of how to do it. #!/usr/bin/python3 import sys, time from PyQt4 import QtCore, QtGui from os.path import join from datetime import datetime #used for the date/time in the thread...
by jakebpg
Sun Jul 28, 2013 10:50 pm
Forum: Python
Topic: RASPISTILL on Python
Replies: 6
Views: 6565

Re: RASPISTILL on Python

It appears that you are over writing the file over and over again in your while loop. Try copying these lines into your while loop just before you write the file to disk. s=utc_datetime.strftime("%Y-%m-%d-%H%M%SZ") filename = 'IMG_' + s + '.jpg' By doing this it will give each file a unique filename...
by jakebpg
Sun Jul 28, 2013 9:34 pm
Forum: Python
Topic: Home-SCADA system
Replies: 8
Views: 3455

Home-SCADA system

Just thought I'd pop in and post where I'm at for the SCADA system I've built for my home through python accessing the GPIOs of the RPI using one wire and I2C buses. I will eventually be adding other buses into the system and am just wondering what every one thinks of the interface. So attached is a...
by jakebpg
Tue Jun 18, 2013 10:51 pm
Forum: Arch
Topic: New file system location!(/bin /sbin /usr/sbin
Replies: 10
Views: 1877

Re: New file system location!(/bin /sbin /usr/sbin

Are you in the uk? Yes, I have had cards burn out but will look If the card seems useless try this parted /dev/sdX mklabel msdos Where X is that card, then run fdisk on it The card is not even recognized by any system. So how can one identify what the system is supposed to address it by? If I could...
by jakebpg
Tue Jun 18, 2013 10:48 pm
Forum: Arch
Topic: New file system location!(/bin /sbin /usr/sbin
Replies: 10
Views: 1877

Re: New file system location!(/bin /sbin /usr/sbin

Yes pepe I realize you pick up what arch does and many people have complained about this mess they created. The same thing happen with glibc. That's why I always read the Arch site for fixes when I have a problem with the alarm system since it is mostly the same thing but for the arm architecture. B...
by jakebpg
Tue Jun 18, 2013 10:32 pm
Forum: Arch
Topic: New file system location!(/bin /sbin /usr/sbin
Replies: 10
Views: 1877

Re: New file system location!(/bin /sbin /usr/sbin

Also if you want the card I'll send it to you so that you can verify what I'm saying it true. Just let me know.
by jakebpg
Tue Jun 18, 2013 10:29 pm
Forum: Arch
Topic: New file system location!(/bin /sbin /usr/sbin
Replies: 10
Views: 1877

Re: New file system location!(/bin /sbin /usr/sbin

Oh and thanks for the links, so that I can start anew with a fresh card.
by jakebpg
Tue Jun 18, 2013 10:26 pm
Forum: Arch
Topic: New file system location!(/bin /sbin /usr/sbin
Replies: 10
Views: 1877

Re: New file system location!(/bin /sbin /usr/sbin

Well pepe, the SD card does not work in any device I've tried it in. It is not recognized by any OS from windows, mas and Linux and the Linux machines I tried it in are Arch 64 bit, Ubuntu. I've even tried it in a digital camera just to see if it could even see the card of which it did not! Now mayb...
by jakebpg
Tue Jun 18, 2013 9:34 pm
Forum: Arch
Topic: New file system location!(/bin /sbin /usr/sbin
Replies: 10
Views: 1877

New file system location!(/bin /sbin /usr/sbin

Is there a new image that already takes care of this huge mess? I've burned one SD card already that can not be read from any device reader at all! I have a backup of all my important data and another SD card with other important data that I don't want to lose either. This is a huge mess, why in the...
by jakebpg
Thu May 16, 2013 8:46 pm
Forum: Python
Topic: Detect GPIO states at program start
Replies: 2
Views: 689

Re: Detect GPIO states at program start

I already thought of that, but it is a huge problem for environmental devices, like air-conditioning, heating not to mention dehumidifiers. With lights it's not a big problem but for the others it is a huge problem if they are running when the program restarts. This program is controlling multiple r...
by jakebpg
Wed May 15, 2013 10:04 pm
Forum: Python
Topic: Detect GPIO states at program start
Replies: 2
Views: 689

Detect GPIO states at program start

OK here's the question: I've built a system to control lights and environmental controls for my cabin. All works fine as currently programmed except for the fact that when I close the app and restart it the app resets all gpios to out with a state value of 0(off). I want the program to detect curren...
by jakebpg
Tue Jan 22, 2013 6:40 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2c problems
Replies: 0
Views: 536

I2c problems

I have a DS1339AU+ RTC connected to my pi and i2cdetect was detecting it. I finally found a driver that works with this chip and was able to read and write to it twice. I've rebooted the system since then and now i2cdetect no longer finds this device. All the i2c mods are loaded and there is power t...
by jakebpg
Sun Jan 06, 2013 9:39 pm
Forum: Linux Kernel
Topic: RTC_ds1339 chip drivers
Replies: 0
Views: 913

RTC_ds1339 chip drivers

Posting this here because I've posted in many other places with no answers to my question. I've designed and built a RTC using the DS1339 chip. I'm planning on releasing the schematic and board design to anyone who wishes to build their own RTC after all that's what the RPI is supposed to be about. ...
by jakebpg
Fri Nov 23, 2012 3:28 am
Forum: Arch
Topic: latest firmware CRASHES RP1
Replies: 11
Views: 2011

Re: latest firmware CRASHES RP1

When I was doing a lot of heavy stuff on my PDA, I was doing tar backups twice a day as I never knew when the system would crash. Are you programming stuff all over the place, so an ls -t wouldn't give you a list of files to tar up more like at least once or twice a week? My plan is to put anything...
by jakebpg
Fri Nov 23, 2012 12:43 am
Forum: Arch
Topic: latest firmware CRASHES RP1
Replies: 11
Views: 2011

Re: latest firmware CRASHES RP1

use dd to make another backup.img of your SD and next time use git; commit and push often. What do you mean use git; commit and push? How's that going to keep the firmware update from crashing the system? Of course you know all system update should be done using pacman. All other forms of updates a...
by jakebpg
Fri Nov 23, 2012 12:39 am
Forum: Arch
Topic: latest firmware CRASHES RP1
Replies: 11
Views: 2011

Re: latest firmware CRASHES RP1

here's the firmware that crashed the system: raspberrypi-firmware-20121120-1 And yes I do use dd for backups once a month, with periodic file backups in between. It takes quit some time to dd a 32GB card, so it's not like it can be done every time an update is available. As I said this is the second...
by jakebpg
Thu Nov 22, 2012 11:38 pm
Forum: Arch
Topic: latest firmware CRASHES RP1
Replies: 11
Views: 2011

latest firmware CRASHES RP1

Anyone else having this problem?? sd card is sandisk ultra 32Gb. Of course the OS is the archHF which was up to date until running the update today! System was working fine until I did an update today. Reboot after the update and massive crash! System wont even boot, as if everything in the .boot di...
by jakebpg
Sun Oct 07, 2012 2:15 am
Forum: Arch
Topic: RPI IO Pinout!!!!
Replies: 1
Views: 6565

RPI IO Pinout!!!!

OK I've been searching all over for the pin-out of the RPI's IO. Yes there are many posts all over the place using different naming conventions. So what is the OFFICIAL pin-out naming convention for the IO header(gpio,spi,I2c & uart) and lets not forget about the camera and other interfaces availabl...
by jakebpg
Tue Oct 02, 2012 12:13 am
Forum: Arch
Topic: motion & usb cam
Replies: 6
Views: 1778

Re: motion & usb cam

pepe, thanks. No I haven't tried another distro. I did check the kernel versions from my laptop to the pi kernel and there is a couple of reversion differences. I don't know how close the two kernels are though as far as functionality goes though. Laptop version: 3.5.4-1-ARCH #1 SMP PREEMPT Sat Sep ...
by jakebpg
Mon Oct 01, 2012 10:12 pm
Forum: Arch
Topic: difference between hard float and soft
Replies: 11
Views: 16365

Re: difference between hard float and soft

Thanks guys.

As I said never heard the term before in my15+ years in the IT industry
by jakebpg
Mon Oct 01, 2012 10:10 pm
Forum: Arch
Topic: motion & usb cam
Replies: 6
Views: 1778

Re: motion & usb cam

Scorp could you please be a little more specific! There are many different topics at your link! Many talking about irrelevant BS. As stated using a powered USB does NOT solve the problem either. So I find it doubtful that power has anything to do with it. My nano wifi nic works great and never falls...

Go to advanced search