SerialPort problem

Reynald,

Sorry for late response.
I have installed Tango 9.2.5a from source code.
The situation is next. I generated new, clean code using Pogo, and when I want to start Device Server this happens:

It's just staying like that, and I don't get Ready to accept request.
However, I am able to start Device Servers which code is not generated with Pogo (like simple example in attachment).

I have installed pytango and ipython in virtual environment. Can this cause some problems, it's the only thing I can think of?

Thank you,
Dusan
Could you attach the python code generated by pogo?

Thanks
Hi,

In attachment is code generated by Pogo.
I also attached picture in which you can see basic commands, states, etc I have set.
Thank you for the help.


Hi,

I think you just need to declare at least one device for your server and to restart it.
So you can use the Server Wizard, Start the server as you did when the wizard requests it and then click on the next button.
You can then declare new devices with the wizard.
After having clicked on "Finish" button, you can restart your server.
The reinitialize server button from the wizard will make your server crash (this is a known bug with Python device servers). So you can reply "No" when the wizard proposes to reinitialize your server and you can simply kill your server manually and restart it.
After that, your device server should start and the error you were seeing related to database cache should no longer be displayed.

Hoping this helps.
Reynald
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new.
Reynald,

That helped, now it works. I stil dont get Ready to accept request though, but that's not important, I am able to run device server. Thank you very much, you made my day.

Regards,
Dusan
Don't worry too much about the Ready to accept request.

This is a historical problem of tango because in some old versions it was the library which provided this message and now it is the server which should provide the message.

Pogo should be generating something like:

U.server_init()
print("Ready to accept request")
U.server_run()

In fact I recommend that if you really want to use pogo, it is better to use the PythonHL because it is better maintained.

 
Register or login to create to post a reply.