I am running Linux Mint 20.1, using opgui-0.11.2, can see the device on the usb list as:
"Bus 003 Device 005: ID 1209:5432 Generic Open Programmer" ,
but opgui says: "Programmer not detected".
It works 100% under Win10.
Any advice?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-01-18
I also made the rule file with this:
"KERNEL=="hidraw[0-9]", ATTRS{idProduct}=="5432", ATTRS{idVendor}=="1209", MODE="0664", SYMLINK+="openprogrammer"
Thank you,
Joe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-01-18
I see this for the user rights:
crw------- 1 root root 180, 0 Jan 18 14:15 hiddev0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-01-18
After some more Googling, I managed to get the device permissions like this:
"lrwxrwxrwx 1 root root 7 Jan 18 22:00 openprogrammer -> hidraw3"
But the programmer is still not detecting it, even if I run opgui as root. :(
Joe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
can you change the permissions of /dev/hidraw3 to allow read/write?
That should make it work.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2021-01-19
Thank you for the reply Alberto, is not already read/write, looking at this, the rw at the start?
"lrwxrwxrwx 1 root root 7 Jan 19 08:25 openprogrammer -> hidraw3"
Joe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also tried it with the new 11.2 firmware, did not make a difference.
Also tried it as a usb/hiddev device, no difference, but the funny thing is, it works 100% on Win7 via VirtualBox on Linux Mint.
(BTW, all of above comments was by me as anonymous and Joe. Forgot to log in here.)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Don't know if you solved your problem or not.
I turned my attention to Alberto's project a long time ago but only got around to build it last week.
I got it working in Windows 7 real easy but ran into a few snags in Linux.
But only because, in spite of Alberto's best efforts, I didn’t t read the instructions properly.
Instead of writing :
GROUP="xpto" I wrote GROUP= "< xpto>" in the 10-openprogrammer.rules file.
The "elbows" made a complete mess. Once I spotted my error (and it wasn’t easy) the rest was simple.
I originally compiled OPGUI in a Linux MINT 18.3 system and everything went smooth but when compiled in MINT 20.1 system, the read and write icons were missing, so were the step, stop and other icons in the ICD tab.
I struggled a bit with the problem but gave up ..... until in a moment of inspiration (read desperation) I copied over opgui located at /usr/local/bin of the 18.3 system to the same folder of the 20.1 system.
I struggled again with permissions but finally got my icons working on the 20.1 system .
Icons also worked flawlessly in a MINT 17.x system. Haven't tested it in MINT 19.
Its been a crazy but fun week .....
Last edit: Gus Bernard 2021-02-13
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I also have it working in virtualBox; but many people use it natively.
usb/hiddev requires a different set of calls, there is a #ifdef in the code to allow that.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I recently lost all my data on my PC, and had to reload everything, but could not get OPgui working again in Mint20.1 or any Windows VM.
Luckily Gus Bernard came to my rescue, THANK YOU Gus. ;)
Here is the complete procedure that worked for me, on Mint20.1 :
On a Mint18 VM, do this in order to get all icons inside OPgui.
1) sudo apt-get install gtk2.0
2) Extract opgui_0.11.2.tar.gz to /OPgui (or any directory you want)
3) Run "make" inside the new directory, from a terminal.
4) Run "make install"
5) Copy "opgui" from /usr/local/bin to same dir. in Mint20.1
6) On Mint20.1 you have to make OPGUI 'executable'.
7) Change owner, group and permissions of this file.
8) As root create a file /etc/udev/rules.d/10-openprogrammer.rules
9) Add this line: KERNEL=="hidraw[0-9]", ATTRS{idProduct}=="5432", ATTRS{idVendor}=="1209", MODE="0664", SYMLINK+="openprogrammer" , GROUP="plugdev"
10) Restart udev to apply changes:
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
11) To add user to "plugdev" group: sudo usermod -a -G plugdev < username >
12) To see device permissions: ls -al /dev/hidraw*
Mine looks like this: crw-rw-rw- 1 root plugdev 241, 4 Feb 28 18:50 /dev/hidraw4
13) I made a shortcut on the desktop and used the attached pic as an icon.
This is what worked for me on Mint20.1
If anybody have more, better advice, please share with us.
Thank you again to Alberto and Gus for your advice and assistance. ;)
I am running Linux Mint 20.1, using opgui-0.11.2, can see the device on the usb list as:
"Bus 003 Device 005: ID 1209:5432 Generic Open Programmer" ,
but opgui says: "Programmer not detected".
It works 100% under Win10.
Any advice?
I also made the rule file with this:
"KERNEL=="hidraw[0-9]", ATTRS{idProduct}=="5432", ATTRS{idVendor}=="1209", MODE="0664", SYMLINK+="openprogrammer"
Thank you,
Joe
I see this for the user rights:
crw------- 1 root root 180, 0 Jan 18 14:15 hiddev0
After some more Googling, I managed to get the device permissions like this:
"lrwxrwxrwx 1 root root 7 Jan 18 22:00 openprogrammer -> hidraw3"
But the programmer is still not detecting it, even if I run opgui as root. :(
Joe
can you change the permissions of /dev/hidraw3 to allow read/write?
That should make it work.
Thank you for the reply Alberto, is not already read/write, looking at this, the rw at the start?
"lrwxrwxrwx 1 root root 7 Jan 19 08:25 openprogrammer -> hidraw3"
Joe
The link is rw, but does it mean that also the target is rw?
Not sure, it may be.
I also tried it with the new 11.2 firmware, did not make a difference.
Also tried it as a usb/hiddev device, no difference, but the funny thing is, it works 100% on Win7 via VirtualBox on Linux Mint.
(BTW, all of above comments was by me as anonymous and Joe. Forgot to log in here.)
Don't know if you solved your problem or not.
I turned my attention to Alberto's project a long time ago but only got around to build it last week.
I got it working in Windows 7 real easy but ran into a few snags in Linux.
But only because, in spite of Alberto's best efforts, I didn’t t read the instructions properly.
Instead of writing :
GROUP="xpto" I wrote GROUP= "< xpto>" in the 10-openprogrammer.rules file.
The "elbows" made a complete mess. Once I spotted my error (and it wasn’t easy) the rest was simple.
I originally compiled OPGUI in a Linux MINT 18.3 system and everything went smooth but when compiled in MINT 20.1 system, the read and write icons were missing, so were the step, stop and other icons in the ICD tab.
I struggled a bit with the problem but gave up ..... until in a moment of inspiration (read desperation) I copied over opgui located at /usr/local/bin of the 18.3 system to the same folder of the 20.1 system.
I struggled again with permissions but finally got my icons working on the 20.1 system .
Icons also worked flawlessly in a MINT 17.x system. Haven't tested it in MINT 19.
Its been a crazy but fun week .....
Last edit: Gus Bernard 2021-02-13
I also have it working in virtualBox; but many people use it natively.
usb/hiddev requires a different set of calls, there is a #ifdef in the code to allow that.
No, did not got it working on 20.1, but I just use it in a win7 virtual setup now.
John
I recently lost all my data on my PC, and had to reload everything, but could not get OPgui working again in Mint20.1 or any Windows VM.
Luckily Gus Bernard came to my rescue, THANK YOU Gus. ;)
Here is the complete procedure that worked for me, on Mint20.1 :
On a Mint18 VM, do this in order to get all icons inside OPgui.
1) sudo apt-get install gtk2.0
2) Extract opgui_0.11.2.tar.gz to /OPgui (or any directory you want)
3) Run "make" inside the new directory, from a terminal.
4) Run "make install"
5) Copy "opgui" from /usr/local/bin to same dir. in Mint20.1
6) On Mint20.1 you have to make OPGUI 'executable'.
7) Change owner, group and permissions of this file.
8) As root create a file /etc/udev/rules.d/10-openprogrammer.rules
9) Add this line: KERNEL=="hidraw[0-9]", ATTRS{idProduct}=="5432", ATTRS{idVendor}=="1209", MODE="0664", SYMLINK+="openprogrammer" , GROUP="plugdev"
10) Restart udev to apply changes:
$ sudo udevadm control --reload-rules
$ sudo udevadm trigger
11) To add user to "plugdev" group: sudo usermod -a -G plugdev < username >
12) To see device permissions: ls -al /dev/hidraw*
Mine looks like this: crw-rw-rw- 1 root plugdev 241, 4 Feb 28 18:50 /dev/hidraw4
13) I made a shortcut on the desktop and used the attached pic as an icon.
This is what worked for me on Mint20.1
If anybody have more, better advice, please share with us.
Thank you again to Alberto and Gus for your advice and assistance. ;)
Last edit: John Devires 2021-02-28