Go to advanced search

by jixin
Wed Nov 25, 2015 5:03 pm
Forum: Python
Topic: subprocess.pOpen
Replies: 13
Views: 4799

Re: subprocess.pOpen

Thank you very much for your help, and sorry for not fully understanding your instructions in the beginning. I follow your instruction below in the link and put every needed file at /home/pi, instead of any subfolder. then the Pi camera works. Hmm, would be nice to be familiar with these... I don't ...
by jixin
Tue Nov 24, 2015 9:43 pm
Forum: Python
Topic: subprocess.pOpen
Replies: 13
Views: 4799

Re: subprocess.pOpen

I tried again, there is error showed this time as below: === OpenCV Error: Image step is wrong (The matrix is not continuous, thus its number of rows can not be changed) in reshape, file /home/pi/OpenCV-2.3.1/modules/core/src/matrix.cpp, line 750 terminate called after throwing an instance of 'cv::E...
by jixin
Tue Nov 24, 2015 7:07 pm
Forum: Python
Topic: subprocess.pOpen
Replies: 13
Views: 4799

Re: subprocess.pOpen

I tried and found camcv2 was running and there was no error report, because all the print notes I write in camcv2 is logged in the output file, but still there is no video window show up, and the Pi camera light is not on, which means Pi camera is not working. To me, I think camcv2 is running after ...
by jixin
Sun Nov 22, 2015 8:43 pm
Forum: Python
Topic: subprocess.pOpen
Replies: 13
Views: 4799

Re: subprocess.pOpen

Thank you for all your help, my problem is not fixed yet. When I open a terminal, and input the command line "sudo python cron.py", it video window show up when button is pressed. While if I set a reboot and want it start automatically, after press the button, LED is on, which means the script is ru...
by jixin
Fri Nov 13, 2015 5:27 pm
Forum: Python
Topic: subprocess.pOpen
Replies: 13
Views: 4799

Re: subprocess.pOpen

It could be because X is not up and running yet when crontab executes the script, so no video. Instead of crontab try adding it to " /home/pi/.config/lxsession/LXDE-pi/autostart ", so the script is run when the desktop comes up. I tried again, add "@sudo python /home/pi/cron.py" in /home/pi/.config...
by jixin
Fri Nov 13, 2015 2:05 pm
Forum: Python
Topic: subprocess.pOpen
Replies: 13
Views: 4799

Re: subprocess.pOpen

I suspect the problem is that when your code is run by the root users crontab entry the working directory is not /home/pi. Which makes sense when you think about it, as root should start in its own home directory (/root). change: subprocess.Popen("./excutable_file data.csv 1 5000", shell=True) to: ...
by jixin
Fri Nov 13, 2015 9:02 am
Forum: Python
Topic: subprocess.pOpen
Replies: 13
Views: 4799

subprocess.pOpen

I call a child program by using subprocess.Popen("./excutable_file data.csv 1 5000", shell=True) in my script cron.py. It works very well, and a window with video is shown on screen after run cron.py. (the excutable_file is used to show a video on screen) Now I want to run cron.py automatically when...
by jixin
Wed Oct 21, 2015 11:07 pm
Forum: Troubleshooting
Topic: Raspberry Pi 2 can not work
Replies: 5
Views: 751

Re: Raspberry Pi 2 can not work

drgeoff wrote:The next guess (somewhat better informed) is that the card is filled with saved video. If you can run:

Code: Select all

df -h
what does it return?
Thanks for your information.
This problem is solved by connecting the SD card on Linux system computer and deleting some of the recorded videos.
by jixin
Wed Oct 21, 2015 6:00 pm
Forum: Troubleshooting
Topic: Raspberry Pi 2 can not work
Replies: 5
Views: 751

Re: Raspberry Pi 2 can not work

No-one can know how to solve the problem because you have not given enough information. What is on the (micro-)SD card and how did it get there? We might guess that you loaded Raspbian but did not do the step of expanding the file system to use the whole card. But there are many other possibilities...
by jixin
Wed Oct 21, 2015 5:41 pm
Forum: Troubleshooting
Topic: Raspberry Pi 2 can not work
Replies: 5
Views: 751

Re: Raspberry Pi 2 can not work

No-one can know how to solve the problem because you have not given enough information. What is on the (micro-)SD card and how did it get there? I installed Raspbian with NOOBS installer, and have OpenCV installed, too. I have two separate scripts to realize two functions: one is video recording an...
by jixin
Wed Oct 21, 2015 5:16 pm
Forum: Troubleshooting
Topic: Raspberry Pi 2 can not work
Replies: 5
Views: 751

Raspberry Pi 2 can not work

My Raspberry Pi 2 can not start. When I plug in power, there is some message scrolling on screen as normal in the beginning, then there is one line warning 'no sufficient free space', while the message scroll so fast that I can not see clearly the whole message. After that, the screen just turn blac...
by jixin
Thu Jul 02, 2015 3:27 pm
Forum: Troubleshooting
Topic: 26 pin add on board fit 40 pin Pi board?
Replies: 6
Views: 1552

Re: 26 pin add on board fit 40 pin Pi board?

DougieLawson wrote:The DNC pin is a GND pin on all B rev2 and later RPis
Thank you for your information. it helps.
by jixin
Thu Jul 02, 2015 3:18 pm
Forum: Troubleshooting
Topic: 26 pin add on board fit 40 pin Pi board?
Replies: 6
Views: 1552

Re: 26 pin add on board fit 40 pin Pi board?

it should work on a B+/2B as the first 26pins remain the same across all models of raspberry pi While I see there is a little difference between the two board : Pin 4 : in old version it should be 'DNC', while in new version, it is "DC power 5V". The similar question on pin 9, 14,17, 20 and 25 . Do...
by jixin
Thu Jul 02, 2015 2:53 pm
Forum: Troubleshooting
Topic: 26 pin add on board fit 40 pin Pi board?
Replies: 6
Views: 1552

26 pin add on board fit 40 pin Pi board?

BerryClip 6 LED Buzzer Board, with the link here : http://www.raspberrypi-spy.co.uk/berryc ... -on-board/
It was compatible with the old version Raspberry Pi with 26 pins. Does it also compatible with the new version Raspberry Pi 2 Model B?

Can any one help me with this question?
Thank you.

Go to advanced search