Device class to control GPIO of RaspberryPI

Hi,

We are looking for a device class to control GPIO of RaspberryPI. Do you know if it exists?
In the catalogue there is one for controlling PCO camera amplification [1] but we are looking for a more generic one. We plan to implement the DO time pattern generator.

Thanks for any feedback!

[1] http://www.tango-controls.org/developers/dsc/ds/249

Cheers,
Zibi

Hi Zibi,

Jens, a new team member started his Tango training with a Raspberry PI device controlling the GPIO.
It may or not be generic but I can ask him tomorrow to upload to github.

Cheers,
Vincent

Thanks Vincent! Looking forward to try your code!

Jens has pushed for a quick internal review and should push soon to gitlab.
The system is composed of a daemon running on the pi and a Tango device connected to this daemon.

Hi Zibi,

Yes, the device has been reviewed and I will refactor before pushing to GitHub. Hopefully it will be done at the end of this week, at latest. Sorry for the delay,

Cheers,
Jens

Hi Zibi,

Here is the link to the repo on GitHub: GitHub - MaxIV-KitsControls/dev-maxiv-raspberry_pi: Tango DS for the Raspberry Pi GPIO . It currently supports 5 pins, and we are in progress with merging with a separate project for the camera stream.

All the best,
Jens

Hi Jens,

that is great to see. Could you add it to the Classes Catalogue:

http://www.tango-controls.org/developers/dsc/

This way it can be found more easily.

Thanks

Andy

Thank you Jens!

We will give it a try during this week and come back to you with the feedback on Github.

+1 for the idea of adding it to the catalogue:)

Hi Zibi and Andy,

Thanks! Absolutely, I will try to add it to the classes catalogue today. There is still some refactoring left to do, and we are also still in the process of merging with the camera stream. I will keep you updated,

All the best, Cheers,
Jens

Hi!

I added to the classes catalogue today. I did not know how to do it with the .XMI class info source, so I entered properties/attributes/commands manually. Yet, it looked a bit messy having it all in the Class Description heading, how do I do it with the XMI?

Thanks,
Jens

Dear Jens,

thanks a lot! I let Piotr explain to you how to upload the xmi file. Firstly do you have one? If not you should generate one with pogo.

Cheers

Andy

Hi Jens,

You may use Pogo to generate the file or try to use this script: dsc-import/python_utils.py at master · tango-controls/dsc-import · GitHub. It is part of catalogue import utility. Unfortunately it is not well documented yet (my fault :cry: ) but you may see its ‘main’ section how to use it.

In general it provides a function to do the job:

get_xmi_from_python(name, family, python_file_url, element = None)

Then, when you select .XMI upload option you may upload .xmi file:

Best regards,
Piotr
P.S.1 Thank you for using the catalogue :slight_smile:
P.S.2 If you need I may help you in importing of MAX-IV DSs to the catalogue.

Hi all!

Thanks for the info. I will try generating the xmi using the script. If successful I’ll re-upload the class to the classes catalogue and remove my previous upload. Piotr - we are interested in importing MAX-IV DSs to the catalogue, please contact my team leader Vincent (hardion) for the details.

All the best, thanks
Jens

[quote=“jensun”]
Thanks for the info. I will try generating the xmi using the script. [/quote]
I have just found that your device server is using a high level api. At this moment the xmi generation script is not supporting Device HL api. I am putting this on my to-do list.

Br. Piotr