theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

How to run PiScope?

Tue Dec 20, 2016 10:28 pm

After doing some research, mamy people suggested using piscope on forums to record rf signals, as ./RFSniffer doesn't detect anything. However, I cannot find any documentation on it as to how to run it. I have started the pigpiod daemon by:

Code: Select all

sudo pigpiod -a1
and then ran piscope by:

Code: Select all

gksudo piscope
But nothing happened even though I got no errors.

Sorry, if I am missing something obvious as I am new to this.
Any help or advice would be great. Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Tue Dec 20, 2016 10:57 pm

Nothing will happen on screen unless some GPIO change level.

To generate activity you try the following commands (from the command line).

pigs p 4 128
pigs p 4 64
pigs p 4 32
pigs p 4 0

There are only a few piscope controls. See http://abyz.co.uk/rpi/pigpio/piscope.html

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Wed Dec 21, 2016 6:34 am

Thanks for the reply. I wil try the commands out as soon as possible and let you know what happens.
Here is my blog: https://thereallycoolstuff.wordpress.com

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Wed Dec 21, 2016 2:44 pm

When I run these commands in the command line, nothing happens but I get no errors either. It just goes onto the next line. Am I missing something?
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Wed Dec 21, 2016 3:22 pm

The commands start/stop PWM on GPIO 4. Activity should be seen in piscope.

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Wed Dec 21, 2016 7:24 pm

I am sorry I don't understand. I have my RF transmitter wired to GPIO 27 with an led wired to it, as suggested by many tutorials. I used WiringPi and ./RFSniffer but it didn't detect any signals so I turned to Piscope, which was recommended by many users.

I am sure it is working as the led gets brighter when I press buttons on my remote. When piscope is run, I have seen a display with the waves being detected and the gpio pins on the left hand side online, but I can't seem to get that.

When I run,

Code: Select all

sudo pigpiod
as stated I get an error so I have to use:

Code: Select all

sudo pigpiod -a1
I have heard that PiScope is a great program but I cannot seem to run it.

Code: Select all

gksudo piscope
This does nothing at all either. I can't open the display box for Piscope which I have seen in many images. I am not sure what to do. Thanks dor your help.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Wed Dec 21, 2016 8:17 pm

It might be quickest if you reboot and report the result of the following commands with cut&paste from the command line.

uname -a

cat /etc/os-release

sudo pigpiod

sudo pigpiod -a1

pigs pigpv

pigs hwver

piscope

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Wed Dec 21, 2016 9:16 pm

Thanks for your reply. I actually reinstalled piscope, following the website's instructions carefully and now it works! :D
However, there is a lot of noise so I cannot see the signal of the remote. I can see the pattern changing when I press a button but I am not sure how to reduce the noise. When zoomed out, its just a green block. Any advice? Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Wed Dec 21, 2016 10:04 pm

theraspberryguy wrote:Thanks for your reply. I actually reinstalled piscope, following the website's instructions carefully and now it works! :D
However, there is a lot of noise so I cannot see the signal of the remote. I can see the pattern changing when I press a button but I am not sure how to reduce the noise. When zoomed out, its just a green block. Any advice? Thanks.
You can use the pigs fg command to filter out noise.

Try pigs fg X 150, where X is the GPIO connected to the receiver.

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Wed Dec 21, 2016 10:14 pm

When I do this, it says

Code: Select all

fg? unknown command
. I started piscope first and then on another terminal I entered that command.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Wed Dec 21, 2016 10:48 pm

theraspberryguy wrote:When I do this, it says

Code: Select all

fg? unknown command
. I started piscope first and then on another terminal I entered that command.
It does that when you enter an unknown command.

Enter the command which was suggested.

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Thu Dec 22, 2016 6:27 pm

I am not sure if I am doing something wrong. After booting up the pi, I started the pigpiod by

Code: Select all

sudo pigpiod -a1
. Then I ran piscope by

Code: Select all

piscope
. In another terminal, I typed in

Code: Select all

pigs fg 27 150
exactly, but I got the error

Code: Select all

fg? unknown command, pigs h for help
. I also entered the command in the same terminal after running piscope but nothing happened.

Am I doing something wrong?
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Thu Dec 22, 2016 6:34 pm

The likeliest explanation is you have an old version of pigpio.

pigs pigpv

The lastest version is 59.

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Thu Dec 22, 2016 6:54 pm

Yes, when I run that command, I get 31. So how would I get the latest version of PiScope? I followed the instructions on the website.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Thu Dec 22, 2016 8:03 pm

theraspberryguy wrote:Yes, when I run that command, I get 31. So how would I get the latest version of PiScope? I followed the instructions on the website.
piscope hasn't changed. It's pigpio you need to update.

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Thu Dec 22, 2016 8:17 pm

Ok, thanks. I haven't updated my Pi for while now. I have set it to update and I will see what happens... :D
Here is my blog: https://thereallycoolstuff.wordpress.com

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Thu Dec 22, 2016 10:07 pm

Thanks for the help! It is working well now as a lot of the noise has been reduced. I can clearly see the signal transmitted by the remote. Is there anyway record the signal into a code which can then be transmitted with an RF transmitter? Does piscope have this functionality? Thanks.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Thu Dec 22, 2016 10:17 pm

theraspberryguy wrote:Thanks for the help! It is working well now as a lot of the noise has been reduced. I can clearly see the signal transmitted by the remote. Is there anyway record the signal into a code which can then be transmitted with an RF transmitter? Does piscope have this functionality? Thanks.
If it's the right sort of signal try http://abyz.co.uk/rpi/pigpio/examples.html#pdif2__433D
Last edited by joan on Fri Dec 23, 2016 5:56 pm, edited 1 time in total.

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Fri Dec 23, 2016 5:34 pm

The link is invalid butI tried the _433.py scrpt from the website but no codes are shown. Is it possible to read the code from the signal shown in piscope? Or do I need to use a scipt? Thanks for thw help.
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Fri Dec 23, 2016 6:01 pm

I have corrected the link.

You could capture the signal in piscope. You could then save a portion in pause mode (press 1 at the start, 2 at the end, then File -> Save Selected Samples as text). If you post that file as text I'll have a look.

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Fri Dec 23, 2016 6:16 pm

Ok, I tried to attach the file as .py and then .txt but it said extension not allowed so here it is:

Code: Select all

#piscope
#date 2016-12-23 17:40:29
1478277227 BC00C1EF
1478278211 B400C1EF
1478281576 BC00C1EF
1478283151 B400C1EF
1478301164 B400D1EF
1478301317 B400C1EF
1478316691 BC00C1EF
1478316846 B400C1EF
1478317421 BC00C1EF
1478317576 B400C1EF
1478318146 BC00C1EF
1478318303 B400C1EF
1478319596 BC00C1EF
1478319751 B400C1EF
1478321776 BC00C1EF
1478322127 B400C1EF
1478323233 BC00C1EF
1478323571 B400C1EF
1478324676 BC00C1EF
1478325016 B400C1EF
1478326127 BC00C1EF
1478326456 B400C1EF
1478327581 BC00C1EF
1478327921 B400C1EF
1478329751 BC00C1EF
1478330102 B400C1EF
1478330492 BC00C1EF
1478330711 B400C1EF
1478331217 BC00C1EF
1478331466 B400C1EF
1478331941 BC00C1EF
1478332161 B400C1EF
1478334106 BC00C1EF
1478334263 B400C1EF
1478335366 BC00C1EF
1478337646 B400C1EF
1478339876 BC00C1EF
1478340057 B400C1EF
1478342077 BC00C1EF
1478342236 B400C1EF
1478344982 BC00C1EF
1478345336 B400C1EF
1478346436 BC00C1EF
1478346766 B400C1EF
1478347881 BC00C1EF
1478348206 B400C1EF
1478349336 BC00C1EF
1478349676 B400C1EF
1478350786 BC00C1EF
1478351121 B400C1EF
1478352961 BC00C1EF
1478353306 B400C1EF
1478353691 BC00C1EF
1478353921 B400C1EF
1478354416 BC00C1EF
1478354701 B400C1EF
1478355141 BC00C1EF
1478355376 B400C1EF
1478356586 BC00C1EF
1478356741 B400C1EF
1478358411 BC00C1EF
1478360206 B400C1EF
1478363091 BC00C1EF
1478363263 B400C1EF
1478368191 BC00C1EF
1478368522 B400C1EF
1478369636 BC00C1EF
1478369966 B400C1EF
1478371091 BC00C1EF
1478371426 B400C1EF
1478372542 BC00C1EF
1478372886 B400C1EF
1478373991 BC00C1EF
1478374333 B400C1EF
1478375442 BC00C1EF
1478375601 B400C1EF
1478376167 BC00C1EF
1478376506 B400C1EF
1478376901 BC00C1EF
1478377126 B400C1EF
1478377626 BC00C1EF
1478377847 B400C1EF
1478378352 BC00C1EF
1478378587 B400C1EF
1478381697 BC00C1EF
1478383667 B400C1EF
1478386308 BC00C1EF
1478386471 B400C1EF
1478387042 BC00C1EF
1478387198 B400C1EF
1478390666 BC00C1EF
1478390822 B400C1EF
1478391401 BC00C1EF
1478391737 B400C1EF
1478392846 BC00C1EF
1478393198 B400C1EF
1478394297 BC00C1EF
1478394626 B400C1EF
1478395751 BC00C1EF
1478396082 B400C1EF
1478397198 BC00C1EF
1478397576 B400C1EF
1478399376 BC00C1EF
1478399716 B400C1EF
1478400111 BC00C1EF
1478400386 B400C1EF
1478400831 BC00C1EF
1478401056 B400C1EF
1478401566 BC00C1EF
1478401841 B400C1EF
1478403726 BC00C1EF
1478403881 B400C1EF
1478404911 BC00C1EF
1478406836 B400C1EF
1478409516 BC00C1EF
1478409681 B400C1EF
1478411696 BC00C1EF
1478411856 B400C1EF
1478413153 BC00C1EF
1478413311 B400C1EF
1478413876 BC00C1EF
1478414032 B400C1EF
1478414601 BC00C1EF
1478414941 B400C1EF
1478416056 BC00C1EF
1478416376 B400C1EF
1478417506 BC00C1EF
1478417822 B400C1EF
1478418957 BC00C1EF
1478419291 B400C1EF
1478420407 BC00C1EF
1478420746 B400C1EF
1478422586 BC00C1EF
1478422931 B400C1EF
1478423321 BC00C1EF
1478423536 B400C1EF
1478424042 BC00C1EF
1478424273 B400C1EF
1478424766 BC00C1EF
1478424987 B400C1EF
1478426936 BC00C1EF
1478427091 B400C1EF
1478427886 BC00C1EF
1478429907 B400C1EF
1478432727 BC00C1EF
1478432887 B400C1EF
1478433463 BC00C1EF
1478433622 B400C1EF
1478437811 BC00C1EF
1478438142 B400C1EF
1478439268 BC00C1EF
1478439601 B400C1EF
1478440721 BC00C1EF
1478441092 B400C1EF
1478442166 BC00C1EF
1478442486 B400C1EF
1478443616 BC00C1EF
1478443937 B400C1EF
1478445796 BC00C1EF
1478446127 B400C1EF
1478446531 BC00C1EF
1478446801 B400C1EF
1478447253 BC00C1EF
1478447522 B400C1EF
1478447986 BC00C1EF
1478448252 B400C1EF
1478451416 BC00C1EF
1478453412 B400C1EF
1478455941 BC00C1EF
1478456097 B400C1EF
1478456671 BC00C1EF
1478456827 B400C1EF
1478458122 BC00C1EF
1478458277 B400C1EF
1478460297 BC00C1EF
1478460456 B400C1EF
1478461031 BC00C1EF
1478461332 B400C1EF
1478462481 BC00C1EF
1478462796 B400C1EF
1478463926 BC00C1EF
1478464231 B400C1EF
1478465387 BC00C1EF
1478465701 B400C1EF
1478466832 BC00C1EF
1478467117 B400C1EF
1478469001 BC00C1EF
1478469316 B400C1EF
1478469746 BC00C1EF
1478469996 B400C1EF
1478470471 BC00C1EF
1478470677 B400C1EF
1478471193 BC00C1EF
1478471441 B400C1EF
1478474461 BC00C1EF
1478476132 B400C1EF
1478479153 BC00C1EF
1478479317 B400C1EF
1478479881 BC00C1EF
1478480037 B400C1EF
1478482057 BC00C1EF
1478482216 B400C1EF
1478484232 BC00C1EF
1478484586 B400C1EF
1478485696 BC00C1EF
1478485991 B400C1EF
1478487142 BC00C1EF
1478487422 B400C1EF
1478488592 BC00C1EF
1478488927 B400C1EF
1478490042 BC00C1EF
1478490348 B400C1EF
1478491492 BC00C1EF
1478491651 B400C1EF
1478492217 BC00C1EF
1478492512 B400C1EF
1478492952 BC00C1EF
1478493203 B400C1EF
1478493677 BC00C1EF
1478493972 B400C1EF
1478494407 BC00C1EF
1478494696 B400C1EF
1478496572 BC00C1EF
1478496727 B400C1EF
1478497722 BC00C1EF
1478500012 B400C1EF
1478502353 BC00C1EF
1478502527 B400C1EF
1478503097 BC00C1EF
1478503253 B400C1EF
1478503822 BC00C1EF
1478503981 B400C1EF
1478505268 BC00C1EF
1478505426 B400C1EF
1478505997 BC00C1EF
1478506156 B400C1EF
1478506722 BC00C1EF
1478506877 B400C1EF
1478507447 BC00C1EF
1478507792 B400C1EF
1478508897 BC00C1EF
1478509238 B400C1EF
1478510348 BC00C1EF
1478510682 B400C1EF
1478511802 BC00C1EF
1478512107 B400C1EF
1478513253 BC00C1EF
1478513612 B400C1EF
1478515427 BC00C1EF
1478515582 B400C1EF
1478516152 BC00C1EF
1478516307 B400C1EF
1478516877 BC00C1EF
1478517032 B400C1EF
1478517602 BC00C1EF
1478517757 B400C1EF
1478518328 BC00C1EF
1478518487 B400C1EF
1478519052 BC00C1EF
1478519208 B400C1EF
1478519762 BC00C1EF
1478519932 B400C1EF
1478520782 BC00C1EF
1478522511 B400C1EF
Here is my blog: https://thereallycoolstuff.wordpress.com

User avatar
joan
Posts: 14376
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: How to run PiScope?

Fri Dec 23, 2016 7:07 pm

It definitely looks like a signal but is not picked up by my sniffer as a code.

Perhaps someone else recognises the format.
piguy-1.png
piguy-1.png (39.55 KiB) Viewed 5976 times
piguy-2.png
piguy-2.png (40.39 KiB) Viewed 5976 times

theraspberryguy
Posts: 89
Joined: Fri Apr 08, 2016 7:02 pm
Contact: Website Twitter

Re: How to run PiScope?

Fri Dec 23, 2016 10:30 pm

Thansk for the help anyway. One more question: I have read that one should power the receiver with 3v3 pin and not 5v. Will this affect the signal as I have my receiver wired to 5v as it says on the back? Also, isn't it possible to read the data from piscope using the highs and lows with 1s and 0s and the difference between them?
Here is my blog: https://thereallycoolstuff.wordpress.com

andies
Posts: 141
Joined: Mon Nov 11, 2013 8:12 pm
Location: Berlin

Re: How to run PiScope?

Thu Dec 29, 2016 11:34 am

I have trouble running Piscope again. I was using it for several days and out of a sudden it stopped working. The problem is the following.

If I am touching any of the Pins I see a reaction in Piscope ("noise"). If I am attaching a 433MHz receiver (in fact I have two of them, both working - checked with arduino) nothing can be seen. One time Piscope even complained that piogpiod is not connected, although it was connected. I doubt that the receivers are broken but why do they not show any signal?

I reinstalled pigpio and Piscope - to no avail.

Code: Select all

[email protected]:~ $ uname -a
Linux Zimmer 4.4.38-v7+ #938 SMP Thu Dec 15 15:22:21 GMT 2016 armv7l GNU/Linux
[email protected]:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
[email protected]:~ $ 
[email protected]:~ $ sudo pigpiod -a1
2016-12-29 12:01:34 initInitialise: Can't lock /var/run/pigpio.pid [EDIT: it was running!]
Can't initialise pigpio library
[email protected]:~ $ pigs pigpv
58
[email protected]:~ $ pigs hwver
10494082
raspberry B, Noir camera, Mac Book Air, iPhone, Bezzera

andies
Posts: 141
Joined: Mon Nov 11, 2013 8:12 pm
Location: Berlin

Re: How to run PiScope?

Thu Dec 29, 2016 11:59 am

OK, I burned both receivers. Just checked it with an oscilloscope. Sorry...
raspberry B, Noir camera, Mac Book Air, iPhone, Bezzera

Return to “Beginners”