Callback in C#

Moderator: Telldus

krambriw
Posts: 654
Joined: Fri Mar 17, 2023 9:45 am

Re: Callback in C#

Post by krambriw »

I have now some more test results (Vista Home edition) that confuses me a bit....

I have deleted all my devices from Telldus Center (cleaned up the registry completely) and the interesting thing is that then raw events are working perfectly.

As soon as I define a device in Telldus Center, and that device generates an event, the communication/connection from/to EventGhost is lost. A restart of the Telldus service is then needed and I also have to restart EventGhost to allow the application to reconnect. Then raw events works fine until the first configured device event happens. Maybe I have something wrong with my setup :banghead:

Another notice I saw in my log window in EVentGhost is the following part showing some of my UPM sensors sending events.
Best regards, Walter

Code: Select all

20:33:48   TellStickDuo.RawEvent: protocol:sensor;type:temperature;temp:0.0;3
20:33:48   TellStickDuo.RawEvent: protocol:sensor;type:temperature;temp:0.0;3
20:33:49   Main.UPM|HCode|8|DCode|1|Temp Celsius (°C)|13.0625|RH%|95|BWarn|0
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Callback in C#

Post by micke.prag »

Probably nothing wrong with your setup. It is a bug in our code for sure.

What type of UPM-sensor do you have?
Micke Prag
Software
Telldus Technologies
krambriw
Posts: 654
Joined: Fri Mar 17, 2023 9:45 am

Re: Callback in C#

Post by krambriw »

I have 4 sensors in various places
- under the house (in the ground)
- outdoor
- indoor down/upstairs

It is WT450's (combined temp & humidity with battery status monitoring) purchased at Clas Olsson. Typically they look like this http://www.clasohlson.se/Product/Produc ... =154374067 (but have humidity sensor as well) and I purchased them separately

Best regards, Walter
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Callback in C#

Post by micke.prag »

Micke Prag
Software
Telldus Technologies
krambriw
Posts: 654
Joined: Fri Mar 17, 2023 9:45 am

Re: Callback in C#

Post by krambriw »

I have now installed everything latest in a laptop that runs Windows XP Professional Ver 2002 SP 3 and e3verything works just fine. I have EventGhost and Telldus Centre running in parallel and from whereever I control (From EG, Telldus centre or Nexa Remote) status are correctly updated in all applications. I receive correct callback events in EG for raw, normal events and change events as well as temperature events that I believe comes from my UPM sensors.

With Vista, same problems as earlier reported

Are you sure you have tested under Windows Vista yourself???

Best regards, Walter
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Callback in C#

Post by micke.prag »

We have used Win XP (32) and Win 7 (64) for our tests.
Micke Prag
Software
Telldus Technologies
Zeko
Posts: 16
Joined: Fri Mar 17, 2023 9:45 am
Contact:

Re: Callback in C#

Post by Zeko »

C# Report

With TelldusCenter 2.0.102 i finally can detect rawEvents and deviceEvents, have not tried onChangeEvent yet.
I can detect som kind of activity from my temp sensor, but the temperature is probably incorrect. Some notes:

- When i trigger a deviceEvent with my remote, there is also a rawEvent triggered.
- There always seems to be twice events triggered (see log output below).
- I always have to restart telldus service after shutting down my application. I do perform tdClose and tdUnregisterCallback.

Log output:
2010-10-22 22:48:08 Base_DeviceEvent: TurnOn Device: 12
2010-10-22 22:48:08 Base_RawEvent: protocol:arctech;type:selflearning;house:2614458;group:0;method:turnon;unit:1; DuoId: 2
2010-10-22 22:48:08 Base_DeviceEvent: TurnOn Device: 12
2010-10-22 22:48:08 Base_RawEvent: protocol:arctech;type:selflearning;house:2614458;group:0;method:turnon;unit:1; DuoId: 2
2010-10-22 22:48:13 Base_RawEvent: protocol:arctech;type:selflearning;house:2614458;group:0;method:turnon;unit:2; DuoId: 2
2010-10-22 22:48:13 Base_RawEvent: protocol:arctech;type:selflearning;house:2614458;group:0;method:turnon;unit:2; DuoId: 2
2010-10-22 22:48:26 Base_RawEvent: 14,78 DuoId: 2
2010-10-22 22:48:27 Base_RawEvent: 14,78 DuoId: 2
2010-10-22 22:49:23 Base_RawEvent: 14,78 DuoId: 2
2010-10-22 22:49:23 Base_RawEvent: 14,78 DuoId: 2
2010-10-22 22:50:19 Base_RawEvent: 14,78 DuoId: 2
2010-10-22 22:50:19 Base_RawEvent: 14,78 DuoId: 2
micke.prag
Site Admin
Posts: 2243
Joined: Fri Mar 17, 2023 9:45 am
Location: Lund
Contact:

Re: Callback in C#

Post by micke.prag »

The problem seems to be the communication between the service and the client. We are rewriting this part from the ground up and it seems we are getting much better results. Stay tuned...
Micke Prag
Software
Telldus Technologies
marstc1
Posts: 8
Joined: Fri Mar 17, 2023 9:45 am

Re: Callback in C#

Post by marstc1 »

Hi Guys,

Any news on this please?

I would love to know which temp sensors are compatible with the DUO and the tellNETwrapper ao that I can try and read the temp readings into my app.

We have a Clas Ohlson store near by so further details on that brand would be ideal.

Many thanks


Chris
Post Reply