Situation get worse than before.
As not workingas expected, I've gone back to simulation mode for GPS and telescope to check if everything are OK. Seems to be not.
Let me explain.
When I push GPS knob to update data on the telescope, Kstar is updated, but not the loc and time of the telescope itself!
Ie added a IDMEssage() is the INDI::Telescope::ISSnoopDevice() to check what happend. The function is never called! Enven if it looks all IPS sates are IPS_OK.
Second issue, may be related tothe first one is a strangebehaviour on the INDI control panel. When A start indiserver and conenct from KStars, the Conrol panel looks correct. One GPS instance and one scop instance. If I disconnect, than reconnect, I still have one GPS Instance BUT two of the scope. disc/connect again, three scope..... I should restart indiserver to get correct situation again, til next disc./connection. I had this issue with my own drivers in the past. I was a pointer issue with writing to it before initialization
I get these troubles on my physical PC with Ubuntu 14.04 LTD and with EKOS VM too.
Any idea?
Debug info:
When driver start, the snooping is implemented correctly:
2015-08-27T19:15:10: Driver indi_simulator_telescope: read getProperties GPS Simulator GEOGRAPHIC_COORD
2015-08-27T19:15:10: Driver indi_simulator_telescope: snooping on GPS Simulator.GEOGRAPHIC_COORD
2015-08-27T19:15:10: Driver indi_simulator_telescope: read getProperties GPS Simulator TIME_UTC
2015-08-27T19:15:10: Driver indi_simulator_telescope: snooping on GPS Simulator.TIME_UTC
And queuing looks fine:
2015-08-27T19:17:03: Client 0: read newSwitchVector GPS Simulator GPS_REFRESH
REFRESH='On'
2015-08-27T19:17:03: Driver indi_simulator_gps: queuing responsible for <newSwitchVector device='GPS Simulator' name='GPS_REFRESH'>
2015-08-27T19:17:03: Driver indi_simulator_gps: sending msg copy 1 nq 1:
<newSwitchVector device="GPS Simulator" name="GPS_REFRESH">
<oneSwitch name="REFRESH">
On
</oneSwitch>
</newSwitchVector>
2015-08-27T19:17:03: Driver indi_simulator_gps: read setNumberVector GPS Simulator GEOGRAPHIC_COORD Ok
LAT='29.100000000000001421'
LONG='48.5'
ELEV='12'
2015-08-27T19:17:03: Client 0: queuing <setNumberVector device='GPS Simulator' name='GEOGRAPHIC_COORD'>
2015-08-27T19:17:03: Driver indi_simulator_telescope: queuing snooped <setNumberVector device='GPS Simulator' name='GEOGRAPHIC_COORD'>
2015-08-27T19:17:03: Driver indi_simulator_gps: read setTextVector GPS Simulator TIME_UTC Ok
UTC='2015-08-27T19:17:03'
OFFSET='2.00'
2015-08-27T19:17:03: Client 0: queuing <setTextVector device='GPS Simulator' name='TIME_UTC'>
2015-08-27T19:17:03: Driver indi_simulator_telescope: queuing snooped <setTextVector device='GPS Simulator' name='TIME_UTC'>
2015-08-27T19:17:03: Driver indi_simulator_gps: read setSwitchVector GPS Simulator GPS_REFRESH Ok
REFRESH='Off'
2015-08-27T19:17:03: Client 0: queuing <setSwitchVector device='GPS Simulator' name='GPS_REFRESH'>
2015-08-27T19:17:03: Client 0: sending msg copy 2 nq 3:
<setNumberVector device="GPS Simulator" name="GEOGRAPHIC_COORD" state="Ok" timeout="60" timestamp="2015-08-27T19:17:03">
<oneNumber name="LAT">
29.100000000000001421
</oneNumber>
<oneNumber name="LONG">
48.5
</oneNumber>
<oneNumber name="ELEV">
12
</oneNumber>
</setNumberVector>
2015-08-27T19:17:03: Driver indi_simulator_telescope: sending msg copy 1 nq 2:
<setNumberVector device="GPS Simulator" name="GEOGRAPHIC_COORD" state="Ok" timeout="60" timestamp="2015-08-27T19:17:03">
<oneNumber name="LAT">
29.100000000000001421
</oneNumber>
<oneNumber name="LONG">
48.5
</oneNumber>
<oneNumber name="ELEV">
12
</oneNumber>
</setNumberVector>
2015-08-27T19:17:03: Client 0: sending msg copy 2 nq 2:
<setTextVector device="GPS Simulator" name="TIME_UTC" state="Ok" timeout="60" timestamp="2015-08-27T19:17:03">
<oneText name="UTC">
2015-08-27T19:17:03
</oneText>
<oneText name="OFFSET">
2.00
</oneText>
</setTextVector>
2015-08-27T19:17:03: Driver indi_simulator_telescope: sending msg copy 1 nq 1:
<setTextVector device="GPS Simulator" name="TIME_UTC" state="Ok" timeout="60" timestamp="2015-08-27T19:17:03">
<oneText name="UTC">
2015-08-27T19:17:03
</oneText>
<oneText name="OFFSET">
2.00
</oneText>
</setTextVector>
2015-08-27T19:17:03: Client 0: sending msg copy 1 nq 1:
<setSwitchVector device="GPS Simulator" name="GPS_REFRESH" state="Ok" timeout="0" timestamp="2015-08-27T19:17:03">
<oneSwitch name="REFRESH">
Off
</oneSwitch>
</setSwitchVector>