¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: Ethernet Errors

 

We finally found the issue. It was a soundboard causing all this traffic. Thanks all for your help.


Re: #websocket #lighting SACN SenderDirectSockets spits error trying to open a UDP comm #websocket #lighting

 

+1 on what Robert said. There's a STARTPROGAFTERROUTER setting in the web config as well now. This would only be an issue for you after a reboot, not program restart/reset.?


Re: Proper way to split a Simpl program across multiple program slots

 

Thanks for responding.? I picked up this thread because it was the only one talking about CHE.? You're right though, I should have started a new thread.? I was able to find someone who had the modules, it came as an exe install.? I did play with this when it came out, but it seemed very beta to me, so I didn't mess with it any further.??


Queue for data from Evertz Magnum controller #splus

 
Edited

I have looked through the various queue examples available here (Serial String Pacer.usp & SerialStringQueue.usp) and would like to modify one for the specific data we are receiving from our Evertz Magnum controller but I am SIMPL+ challenged.

When we send switch commands to the controller we receive a lot of responses with the status of the various switch destinations and that data is in a format of:
.UV637,0\0xD.UV641,0\0xD, etc

We usually get ~45 individual replies which are chunked, at least in debugger, into 8 to 10 responses at a time after making a bunch of switches and need a queue to take all that data in and send out the individual replies one at a time.? The switching module we were left with seems to get overwhelmed (speculation as there is not anything in the controller logs) if it gets too many responses at once.? The queue we had been trying to use that was written by a former developer seems to take in all the data but as it empties itself it sends back out only ~5.5 total commands to the switch symbol per dequeue cycle and was not really designed to process the data getting sent to it.

We would like to try and fill the queue elements up with the individual responses based on the \0xD delimeter (which can't be thrown away) but I am not really sure what changes to make to either of the aforementioned SIMPL+ modules to do what we want to try.

James


Re: Proper way to split a Simpl program across multiple program slots

 

Ahh!
Well, I never used the HE frame-work, but I think that I remember a thread here about the module suite being hosted on Code-Blue.?
I don't know anything about it but others might be able to direct you. You might want to do a separate post with a specific title...


Re: Proper way to split a Simpl program across multiple program slots

 

They appear as Crestron modules, so they don't get put in the compiled or archive zip files.??


Telenet TV-Box driver

 

Hi,

Who would like to share the Telenet TV-Box IR driver (not digicorder) ?
Model is a HUMAX 200BC-STB-TN.

The remote is using RF, but the box also accepts IR.

Thanks
Best regards
Chris


Re: Proper way to split a Simpl program across multiple program slots

 

No Compiled.zip file??


Re: Biamp Tesira X400 - VOIP dialer not controlled via Crestron

 

Yes, I also got this to work. Hot fix CLZ with 3.2 modules.?
Inbound and outbound calls work. Did find that caller ID name shows the number instead. My be specific to my phone system, though.?

On Fri, Jun 3, 2022, 5:09 PM <monticellog@...> wrote:
That's definitely a network issue. Have been using the new clz for a while with no call issues


Re: Biamp Tesira X400 - VOIP dialer not controlled via Crestron

 

That's definitely a network issue. Have been using the new clz for a while with no call issues


Programmer for Hire

 

Greetings everyone,

My name is Chris Cates and I am a certified Crestron Programmer based out of Edmonton, Alberta, Canada. This may not be the right place to be looking for work as everyone on here is most likely a programmer, but thought better to put something out there than nothing at all.? If anyone knows of a better place, please let me know in the replies.

I've been working as a Crestron programmer for over 15 years in both the residential and commercial sectors.? I am currently seeking full-time employment in my city, but am willing to do some contract work for any companies who may be overloaded with custom programming projects (if that even exists with all the hardware delays).

Please let me know if I can be of any assistance.? You can see samples of my work at:

Cheers,

Chris Cates
Creative Programming


Re: Biamp Tesira X400 - VOIP dialer not controlled via Crestron

 

I have been able to control the VOIP with the new CLZ provided by Biamp, but we haven't been able to register or make calls.
Anyone else experiencing the same thing?


Re: Proper way to split a Simpl program across multiple program slots

 

On Sat, Dec 9, 2017 at 08:08 AM, mark kaye wrote:
Crestron Home Elements
I got handed an older project that has CHE in it.? The modules are missing.? Anyone have any idea where I can get these?


Re: Program starts then stops. SimplWindows, Simpl+ and S#

 

That was the issue. Something so simple I overlooked that.


Re: Program starts then stops. SimplWindows, Simpl+ and S#

 

What is your simpl+ file named? I've seen it choke if it's named the same as the clz or any dll.


Re: Program starts then stops. SimplWindows, Simpl+ and S#

 

Same results.
Here is the current error log after clearing the code, clearing SPlsWork folder, recompling Simpl+ and SimplWindows, uploaded code and sent ProgReset in text console.

1. Ok: LogicEngine_1 # 2022-06-03 15:02:27 #? TLDMInterfaceReadInMessageQueueSize - Queue size read. Size = 500?
?
? 2. Ok: AppWatchdog # 2022-06-03 15:02:28 # process LogicEngine launched with process Id 5080
?
? 3. Ok: LogicEngine_1 # 2022-06-03 15:02:28 # Loading program from /simpl/app01
?
? 4. Ok: LogicEngine_1 # 2022-06-03 15:02:28 # Loading Program /simpl/app01/TriplePlayServer Testing.bin.
?
? 5. Ok: LogicEngine_1 # 2022-06-03 15:02:28 # CeGetThreadPriority is an empty function.? This is the 1 call
? 6. Ok: LogicEngine_1 # 2022-06-03 15:02:29 # CresStore: setting log level to 16
? 7. Error: SimplPlus[App01] # 2022-06-03 15:02:29 # Got load exception System.TypeLoadException: Could not load type of field 'UserModule_TRIPLEPLAYSERVER.UserModuleClass_TRIPLEPLAYSERVER:MYSERVER' (17) due to: Could not resolve type with token 0100000a from typeref (expected class 'TriplePlayMyServer.Trip
? 8. Error: SimplPlus[App01] # 2022-06-03 15:02:29 # lePlayLoader' in assembly 'TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:TriplePlayMyServer.TriplePlayLoader member:(null)
? at System.Reflec
? 9. Error: SimplPlus[App01] # 2022-06-03 15:02:29 # tion.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00029] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.
? 10. Error: SimplPlus[App01] # 2022-06-03 15:02:29 # Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.RuntimeConstructorInfo.Invoke (System.Refl
? 11. Error: SimplPlus[App01] # 2022-06-03 15:02:29 # ection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.ConstructorInfo.Invoke (System.Object[] parame
? 12. Error: SimplPlus[App01] # 2022-06-03 15:02:29 # ters) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at Crestron.Logos.SplusManager.SplusManager.LoadModule (Crestron.Logos.SplusManager.SPLUS_INTERFACE_MODULE_REGISTER_MESSAGE_STRUCT regMsg) [0x004c1] in <2c56f446fdf845d0aba277348e2a898b>:0?
?
? 13. Error: LogicEngine_1 # 2022-06-03 15:02:29 # SplusIntfc: Registration failed = 2
?
? 14. Error: LogicEngine_1 # 2022-06-03 15:02:29 # Could not find SIMPL+ module TriplePlayServer.dll in S-1.
?
? 15. Fatal: LogicEngine_1 # 2022-06-03 15:02:29 # Unable to Load SIMPL+ Module(s) - terminating program load.
?
? 16. Fatal: LogicEngine_1 # 2022-06-03 15:02:29 # Exception [SIMPL+ Module Not Found] in CControlSystem occured
?
? 17. Ok: SimplPlus[App01] # 2022-06-03 15:02:32 # WaitForSingleObject handle: 283 failed! Timeout = -1
?
? 18. Error: LogicEngine_1 # 2022-06-03 15:02:32 #? Simpl Plus Manager terminated. Restarting program?
?
? 19. Ok: AppWatchdog # 2022-06-03 15:02:56 # WDG: LogicEngine(1) missed 5 periods for process 5080
?
? 20. Ok: AppWatchdog # 2022-06-03 15:03:01 # WDG: LogicEngine(1) missed 6 periods for process 5080
?
? 21. Fatal: LogicEngine_1 # 2022-06-03 15:03:02 # Unable to stop S+ exit thread.?
?
? 22. Ok: LogicEngine_1 # 2022-06-03 15:03:02 # Crestore loop thread exiting.
?
? 23. Notice: TLDM # 2022-06-03 15:03:03 # **Program 1 Stopped**
?
? 24. Ok: TLDM # 2022-06-03 15:03:03 #? RegisterAllOrSpecifiedProgram: Application at Id 1 stop status sent to XIO Cloud ..
?
? 25. Ok: LogicEngine_1 # 2022-06-03 15:03:03 # Logic Engine exiting.
?
? 26. Error: AppWatchdog # 2022-06-03 15:03:03 # WDG: LogicEngine shutting down unexpectedly. Do Not Start=0
?
? 27. Ok: AppWatchdog # 2022-06-03 15:03:04 # process LogicEngine launched with process Id 5080
?
? 28. Ok: LogicEngine_1 # 2022-06-03 15:03:04 #? TLDMInterfaceReadInMessageQueueSize - Queue size read. Size = 500?
?
? 29. Ok: LogicEngine_1 # 2022-06-03 15:03:04 # Loading program from /simpl/app01
?
? 30. Ok: LogicEngine_1 # 2022-06-03 15:03:04 # Loading Program /simpl/app01/TriplePlayServer Testing.bin.
?
? 31. Ok: LogicEngine_1 # 2022-06-03 15:03:04 # CeGetThreadPriority is an empty function.? This is the 1 call
? 32. Error: AppWatchdog # 2022-06-03 15:03:05 # App 1 was not part of active list of apps
?
? 33. Ok: LogicEngine_1 # 2022-06-03 15:03:05 # CresStore: setting log level to 16
? 34. Error: SimplPlus[App01] # 2022-06-03 15:03:05 # Got load exception System.TypeLoadException: Could not load type of field 'UserModule_TRIPLEPLAYSERVER.UserModuleClass_TRIPLEPLAYSERVER:MYSERVER' (17) due to: Could not resolve type with token 0100000a from typeref (expected class 'TriplePlayMyServer.Trip
? 35. Error: SimplPlus[App01] # 2022-06-03 15:03:05 # lePlayLoader' in assembly 'TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:TriplePlayMyServer.TriplePlayLoader member:(null)
? at System.Reflec
? 36. Error: SimplPlus[App01] # 2022-06-03 15:03:05 # tion.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00029] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.
? 37. Error: SimplPlus[App01] # 2022-06-03 15:03:05 # Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.RuntimeConstructorInfo.Invoke (System.Refl
? 38. Error: SimplPlus[App01] # 2022-06-03 15:03:05 # ection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.ConstructorInfo.Invoke (System.Object[] parame
? 39. Error: SimplPlus[App01] # 2022-06-03 15:03:05 # ters) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at Crestron.Logos.SplusManager.SplusManager.LoadModule (Crestron.Logos.SplusManager.SPLUS_INTERFACE_MODULE_REGISTER_MESSAGE_STRUCT regMsg) [0x004c1] in <2c56f446fdf845d0aba277348e2a898b>:0?
?
? 40. Error: LogicEngine_1 # 2022-06-03 15:03:05 # SplusIntfc: Registration failed = 2
?
? 41. Error: LogicEngine_1 # 2022-06-03 15:03:05 # Could not find SIMPL+ module TriplePlayServer.dll in S-1.
?
? 42. Fatal: LogicEngine_1 # 2022-06-03 15:03:05 # Unable to Load SIMPL+ Module(s) - terminating program load.
?
? 43. Fatal: LogicEngine_1 # 2022-06-03 15:03:05 # Exception [SIMPL+ Module Not Found] in CControlSystem occured
?
? 44. Ok: SimplPlus[App01] # 2022-06-03 15:03:08 # WaitForSingleObject handle: 283 failed! Timeout = -1
?
? 45. Error: LogicEngine_1 # 2022-06-03 15:03:08 #? Simpl Plus Manager terminated. Restarting program?
?
? 46. Ok: AppWatchdog # 2022-06-03 15:03:16 # WDG: LogicEngine timed out starting
?
? 47. Notice: TLDM # 2022-06-03 15:03:17 #? Event rcvd is 8?
?
? 48. Ok: AppWatchdog # 2022-06-03 15:03:36 # WDG: LogicEngine_1(1) missed 5 periods for process 5140
?
? 49. Fatal: LogicEngine_1 # 2022-06-03 15:03:38 # Unable to stop S+ exit thread.?
?
? 50. Ok: LogicEngine_1 # 2022-06-03 15:03:38 # Crestore loop thread exiting.
?
? 51. Notice: TLDM # 2022-06-03 15:03:39 # **Program 1 Stopped**
?
? 52. Ok: TLDM # 2022-06-03 15:03:39 #? RegisterAllOrSpecifiedProgram: Application at Id 1 stop status sent to XIO Cloud ..
?
? 53. Ok: LogicEngine_1 # 2022-06-03 15:03:39 # Logic Engine exiting.
?
? 54. Error: AppWatchdog # 2022-06-03 15:03:39 # WDG: LogicEngine_1 shutting down unexpectedly. Do Not Start=1
?
Total Errors Logged = 54
?


Re: Program starts then stops. SimplWindows, Simpl+ and S#

 

¿ªÔÆÌåÓý

Sounds like your SIMPL+ isn¡¯t making it to your compile.

?

Error: LogicEngine_1 # 2022-06-03 14:23:49 # Could not find SIMPL+ module TriplePlayServer.dll in S-1.

Fatal: LogicEngine_1 # 2022-06-03 14:23:49 # Unable to Load SIMPL+ Module(s) - terminating program load.

Fatal: LogicEngine_1 # 2022-06-03 14:23:49 # Exception [SIMPL+ Module Not Found] in CControlSystem occured

?

I¡¯d prolly start by closing your program, delete the SPlsWork folder, delete the lpz, recompile all then load.

?

Caleb Radecky | Manager, Online Products & Services
Crestron Silver Certified Programmer | DMC-D-4K | DMC-E-4K
ControlWorks Consulting, LLC | Crestron Services Provider | 8228 Mayfield Rd. #6B Rear Cleveland OH 44026
D. 440.771.4809 | O.440.449.1100 X1109 | F.440.449.1106 |

?

From: [email protected] <[email protected]> On Behalf Of Brad Wykoff via groups.io
Sent: Friday, June 3, 2022 14:42
To: [email protected]
Subject: Re: [crestron] Program starts then stops. SimplWindows, Simpl+ and S#

?

I can load other programs into same RMC4 without any issues.

Error: SimplPlus[App01] # 2022-06-03 14:23:49 # Got load exception System.TypeLoadException: Could not load type of field 'UserModule_TRIPLEPLAYSERVER.UserModuleClass_TRIPLEPLAYSERVER:MYSERVER' (17) due to: Could not resolve type with token 0100000a from typeref (expected class 'TriplePlayMyServer.Trip

Error: SimplPlus[App01] # 2022-06-03 14:23:49 # lePlayLoader' in assembly 'TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:TriplePlayMyServer.TriplePlayLoader member:(null)

? at System.Reflec

Error: SimplPlus[App01] # 2022-06-03 14:23:49 # tion.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00029] in <2ad40006e9c141b299c9c7c533021a74>:0?

? at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.

Error: SimplPlus[App01] # 2022-06-03 14:23:49 # Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <2ad40006e9c141b299c9c7c533021a74>:0?

? at System.Reflection.RuntimeConstructorInfo.Invoke (System.Refl

Error: SimplPlus[App01] # 2022-06-03 14:23:49 # ection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?

? at System.Reflection.ConstructorInfo.Invoke (System.Object[] parame

Error: SimplPlus[App01] # 2022-06-03 14:23:49 # ters) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?

? at Crestron.Logos.SplusManager.SplusManager.LoadModule (Crestron.Logos.SplusManager.SPLUS_INTERFACE_MODULE_REGISTER_MESSAGE_STRUCT regMsg) [0x004c1] in <2c56f446fdf845d0aba277348e2a898b>:0?

?

Error: LogicEngine_1 # 2022-06-03 14:23:49 # SplusIntfc: Registration failed = 2

?

Error: LogicEngine_1 # 2022-06-03 14:23:49 # Could not find SIMPL+ module TriplePlayServer.dll in S-1.

?

Fatal: LogicEngine_1 # 2022-06-03 14:23:49 # Unable to Load SIMPL+ Module(s) - terminating program load.

?

Fatal: LogicEngine_1 # 2022-06-03 14:23:49 # Exception [SIMPL+ Module Not Found] in CControlSystem occured

?

Ok: SimplPlus[App01] # 2022-06-03 14:23:52 # WaitForSingleObject handle: 283 failed! Timeout = -1

?

Error: LogicEngine_1 # 2022-06-03 14:23:52 #? Simpl Plus Manager terminated. Restarting program?

?

Ok: AppWatchdog # 2022-06-03 14:24:01 # WDG: LogicEngine timed out starting

?

Notice: TLDM # 2022-06-03 14:24:02 #? Event rcvd is 8?

?

Ok: AppWatchdog # 2022-06-03 14:24:16 # WDG: LogicEngine_1(1) missed 5 periods for process 3131

?

Ok: AppWatchdog # 2022-06-03 14:24:21 # WDG: LogicEngine_1(1) missed 6 periods for process 3131

?

Fatal: LogicEngine_1 # 2022-06-03 14:24:22 # Unable to stop S+ exit thread.?

?

Ok: LogicEngine_1 # 2022-06-03 14:24:22 # Crestore loop thread exiting.

?

Notice: TLDM # 2022-06-03 14:24:23 # **Program 1 Stopped**

?

Ok: TLDM # 2022-06-03 14:24:23 #? RegisterAllOrSpecifiedProgram: Application at Id 1 stop status sent to XIO Cloud ..

?

Ok: LogicEngine_1 # 2022-06-03 14:24:23 # Logic Engine exiting.

?

Error: AppWatchdog # 2022-06-03 14:24:23 # WDG: LogicEngine_1 shutting down unexpectedly. Do Not Start=1


Re: Program starts then stops. SimplWindows, Simpl+ and S#

 

I can load other programs into same RMC4 without any issues.

Error: SimplPlus[App01] # 2022-06-03 14:23:49 # Got load exception System.TypeLoadException: Could not load type of field 'UserModule_TRIPLEPLAYSERVER.UserModuleClass_TRIPLEPLAYSERVER:MYSERVER' (17) due to: Could not resolve type with token 0100000a from typeref (expected class 'TriplePlayMyServer.Trip
Error: SimplPlus[App01] # 2022-06-03 14:23:49 # lePlayLoader' in assembly 'TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null') assembly:TriplePlayServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null type:TriplePlayMyServer.TriplePlayLoader member:(null)
? at System.Reflec
Error: SimplPlus[App01] # 2022-06-03 14:23:49 # tion.RuntimeConstructorInfo.InternalInvoke (System.Object obj, System.Object[] parameters, System.Boolean wrapExceptions) [0x00029] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.RuntimeConstructorInfo.DoInvoke (System.Object obj, System.
Error: SimplPlus[App01] # 2022-06-03 14:23:49 # Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00086] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.RuntimeConstructorInfo.Invoke (System.Refl
Error: SimplPlus[App01] # 2022-06-03 14:23:49 # ection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at System.Reflection.ConstructorInfo.Invoke (System.Object[] parame
Error: SimplPlus[App01] # 2022-06-03 14:23:49 # ters) [0x00000] in <2ad40006e9c141b299c9c7c533021a74>:0?
? at Crestron.Logos.SplusManager.SplusManager.LoadModule (Crestron.Logos.SplusManager.SPLUS_INTERFACE_MODULE_REGISTER_MESSAGE_STRUCT regMsg) [0x004c1] in <2c56f446fdf845d0aba277348e2a898b>:0?
?
Error: LogicEngine_1 # 2022-06-03 14:23:49 # SplusIntfc: Registration failed = 2
?
Error: LogicEngine_1 # 2022-06-03 14:23:49 # Could not find SIMPL+ module TriplePlayServer.dll in S-1.
?
Fatal: LogicEngine_1 # 2022-06-03 14:23:49 # Unable to Load SIMPL+ Module(s) - terminating program load.
?
Fatal: LogicEngine_1 # 2022-06-03 14:23:49 # Exception [SIMPL+ Module Not Found] in CControlSystem occured
?
Ok: SimplPlus[App01] # 2022-06-03 14:23:52 # WaitForSingleObject handle: 283 failed! Timeout = -1
?
Error: LogicEngine_1 # 2022-06-03 14:23:52 #? Simpl Plus Manager terminated. Restarting program?
?
Ok: AppWatchdog # 2022-06-03 14:24:01 # WDG: LogicEngine timed out starting
?
Notice: TLDM # 2022-06-03 14:24:02 #? Event rcvd is 8?
?
Ok: AppWatchdog # 2022-06-03 14:24:16 # WDG: LogicEngine_1(1) missed 5 periods for process 3131
?
Ok: AppWatchdog # 2022-06-03 14:24:21 # WDG: LogicEngine_1(1) missed 6 periods for process 3131
?
Fatal: LogicEngine_1 # 2022-06-03 14:24:22 # Unable to stop S+ exit thread.?
?
Ok: LogicEngine_1 # 2022-06-03 14:24:22 # Crestore loop thread exiting.
?
Notice: TLDM # 2022-06-03 14:24:23 # **Program 1 Stopped**
?
Ok: TLDM # 2022-06-03 14:24:23 #? RegisterAllOrSpecifiedProgram: Application at Id 1 stop status sent to XIO Cloud ..
?
Ok: LogicEngine_1 # 2022-06-03 14:24:23 # Logic Engine exiting.
?
Error: AppWatchdog # 2022-06-03 14:24:23 # WDG: LogicEngine_1 shutting down unexpectedly. Do Not Start=1


Re: Program starts then stops. SimplWindows, Simpl+ and S#

 

¿ªÔÆÌåÓý

How do you know it¡¯s the code causing it? What¡¯s in the log?

?

Caleb Radecky | Manager, Online Products & Services
Crestron Silver Certified Programmer | DMC-D-4K | DMC-E-4K
ControlWorks Consulting, LLC | Crestron Services Provider | 8228 Mayfield Rd. #6B Rear Cleveland OH 44026
D. 440.771.4809 | O.440.449.1100 X1109 | F.440.449.1106 |

?

From: [email protected] <[email protected]> On Behalf Of Brad Wykoff via groups.io
Sent: Friday, June 3, 2022 14:05
To: [email protected]
Subject: [crestron] Program starts then stops. SimplWindows, Simpl+ and S#

?

[Edited Message Follows]

I am having an issue with my code starting and stopping.? I am not using "ProgramInitComplete" in SimplWindows. Once program is loaded, I send the ProgReset in text console and program starts then stops . Program ID Tags shows as SN and no program loaded.
I am pasting S# and Simpl+ code here.

S#

using Crestron.SimplSharp;

using Crestron.SimplSharp.CrestronIO;

using Crestron.SimplSharp.Net.Http;

using System;

?

namespace TriplePlayMyServer

?

{

? ? public class TriplePlayLoader

? ? {

? ? ? ? // Private member variables

? ? ? ? private string serverIP = "";

? ? ? ? public static string Username;

? ? ? ? public static string Password;

?

? ? ? ? // Public delegates

? ? ? ? public errorHandler OnError { get; set; }

? ? ? ? public delegate void errorHandler(SimplSharpString errMsg);

?

? ? ? ? // Public Properties

? ? ? ? public string ServerIP

? ? ? ? {

? ? ? ? ? ? set { serverIP = value; }

? ? ? ? }

? ? ? ? public TriplePlayLoader()

? ? ? ? {

? ? ? ? ? ?//Default Constructor to allow C# to communicate with Simpl+

? ? ? ? }

? ? ? ? public void Initialize()

? ? ? ? {

? ? ? ? ? ?CrestronConsole.PrintLine("Server IP is : {0}", serverIP);

? ? ? ? ? ?HttpClient httpClient = new HttpClient();

? ? ? ? ? ?HttpClientRequest httpRequest = new HttpClientRequest();

? ? ? ? ??

? ? ? ? ? if (serverIP == "" && OnError != null)

? ? ? ? ? {

? ? ? ? ? ? ? ? OnError(new SimplSharpString("No Server IP Specified"));

? ? ? ? ? }

? ? ? ? ? ? ??

? ??

? ? ? ? ? ? try

? ? ? ? ? ? {

? ? ? ? ? ? ? ? // Use this is if Port is 443 - HTTPS

? ? ? ? ? ? ? ? //string url = (Constants.SERVER_URL_PROTOCOL + Username + ":" + Password + "@" + ServerIP + Constants.SERVER_HEADER + Constants.SERVER_QUERY);

?

? ? ? ? ? ? ? ? // Get Json from Server

? ? ? ? ? ? ? ? httpClient.KeepAlive = false;

? ? ? ? ? ? ? ? string url = (Constants.SERVER_URL_PROTOCOL + serverIP + Constants.SERVER_HEADER + Constants.SERVER_QUERY);

? ? ? ? ? ? ? ? var json = new HttpClient().Get(url);

? ? ? ? ? ? ? ?// var json = File.ReadToEnd(Constants.CONFIG_DIRECTORY + "TriplePlay.json", Encoding.UTF8);

? ? ? ? ? ? ? ? StringReader stringReader = new StringReader(json);

? ? ? ? ? ? ? ? var jsonTextReader = new Newtonsoft.Json.JsonTextReader(stringReader);

? ? ? ? ? ? ? ? var jsonSerializer = new Newtonsoft.Json.JsonSerializer();

? ? ? ? ? ? ? ? TriplePlayParent parent = jsonSerializer.Deserialize<TriplePlayParent>(jsonTextReader);

? ? ? ? ? ? ? ? CrestronConsole.Print(" Method - Json return data: {0}", parent);

? ? ? ? ? ? }

? ? ? ? ? ? ? ? catch (Exception ex)

? ? ? ? ? ? {

? ? ? ? ? ? ? ? ErrorLog.Error("Error in Deserializing TriplePlay Json : {0}", ex);

? ? ? ? ? ? }

? ? ? ? }

? ? }

}


Simpl+

#USER_SIMPLSHARP_LIBRARY "TriplePlayServer"

?

/*

? DIGITAL, ANALOG and SERIAL INPUTS and OUTPUTS

? (Uncomment and declare inputs and outputs as needed)

*/

DIGITAL_INPUT? _SKIP_, _SKIP_, _SKIP_, _SKIP_, _SKIP_, Go, GetData;

// STRING_INPUT?

// BUFFER_INPUT?

?

DIGITAL_OUTPUT _SKIP_, _SKIP_, _SKIP_, _SKIP_, _SKIP_,Initialized_Fb;?

STRING_OUTPUT TotalClients, _SKIP_, ClientsID[MaxOutput], Location[MaxOutput];

?

?

TriplePlayLoader myServer;

?

/*

? SOCKETS

? (Uncomment and define socket definitions as needed)

*/

// TCP_CLIENT

// TCP_SERVER

// UDP_SOCKET

?

/*

? Parameters

? (Uncomment and declare parameters as needed)

*/

STRING_PARAMETER ServerIPAddress[15];

INTEGER_PARAMETER Port;

STRING_PARAMETER Username[20], Password[20];

?

?

?

#BEGIN_PARAMETER_PROPERTIES ServerIPAddress

propDefaultValue="192.168.1.40";

#END_PARAMETER_PROPERTIES

?

#BEGIN_PARAMETER_PROPERTIES Port

propValidUnits= unitDecimal;

propDefaultUnit=unitDecimal;

propDefaultValue=80d;

propList={ 80d,"HTTP" },{ 443d,"HTTPS" };

#END_PARAMETER_PROPERTIES

?

#BEGIN_PARAMETER_PROPERTIES Username

propValidUnits= unitString;

propDefaultUnit=unitString;

propDefaultValue="Admin";

#END_PARAMETER_PROPERTIES

?

#BEGIN_PARAMETER_PROPERTIES Password

propValidUnits= unitString;

propDefaultUnit=unitString;

propDefaultValue="";

#END_PARAMETER_PROPERTIES

?

?

Integer x;?

?

Function SetServerIP()

{

? ? ?RegisterDelegate(myServer,OnError,MyOnError); // Register the MyOnError function to the OnError delegate

? ? ?myServer.ServerIP = ServerIPAddress; //send IP address of TriplePlay Server to S#?

?// myServer.Initialize();

? ? print("Hello There");

}

?

// MyOnError is triggered from the C# module when an error happens. We add it to the ErrorLog

callback Function MyOnError(String strError)

{

GenerateUserError("TriplePlayServer Error %s\n\r",strError);

}

?

?

PUSH Go

{

? ? //Print("Server IP in Simpl+ is: %s", ServerIPAddress);

? ? SetServerIP();

? ? //Print("Returned from S#");

}

Push GetData

{

? ? //TriplePlayLoader.Initialize();?

?

? ?/* If(Port <> 80)

? ? {

? ? ? ? TriplePlayLoader.Username = Username;? ? ? ? ? ?// send Username of TriplePly Server to S#

? ? ? ? TriplePlayLoader.Password = Password;? ? ? ? ? ? ?// send Password of TriplePly Server to S#

? ? }

?

? ? TotalClients = TriplePlayParent.Result.Result.Total;

? ? */

}

Function Main()

{

? ? WaitForInitializationComplete();

}

?


Program starts then stops. SimplWindows, Simpl+ and S#

 
Edited

I am having an issue with my code starting and stopping.? I am not using "ProgramInitComplete" in SimplWindows. Once program is loaded, I send the ProgReset in text console and program starts then stops . Program ID Tags shows as SN and no program loaded.
I am pasting S# and Simpl+ code here.

S#
using Crestron.SimplSharp;
using Crestron.SimplSharp.CrestronIO;
using Crestron.SimplSharp.Net.Http;
using System;
?
namespace TriplePlayMyServer
?
{
? ? public class TriplePlayLoader
? ? {
? ? ? ? // Private member variables
? ? ? ? private string serverIP = "";
? ? ? ? public static string Username;
? ? ? ? public static string Password;
?
? ? ? ? // Public delegates
? ? ? ? public errorHandler OnError { get; set; }
? ? ? ? public delegate void errorHandler(SimplSharpString errMsg);
?
? ? ? ? // Public Properties
? ? ? ? public string ServerIP
? ? ? ? {
? ? ? ? ? ? set { serverIP = value; }
? ? ? ? }
? ? ? ? public TriplePlayLoader()
? ? ? ? {
? ? ? ? ? ?//Default Constructor to allow C# to communicate with Simpl+
? ? ? ? }
? ? ? ? public void Initialize()
? ? ? ? {
? ? ? ? ? ?CrestronConsole.PrintLine("Server IP is : {0}", serverIP);
? ? ? ? ? ?HttpClient httpClient = new HttpClient();
? ? ? ? ? ?HttpClientRequest httpRequest = new HttpClientRequest();
? ? ? ? ??
? ? ? ? ? if (serverIP == "" && OnError != null)
? ? ? ? ? {
? ? ? ? ? ? ? ? OnError(new SimplSharpString("No Server IP Specified"));
? ? ? ? ? }
? ? ? ? ? ? ??
? ??
? ? ? ? ? ? try
? ? ? ? ? ? {
? ? ? ? ? ? ? ? // Use this is if Port is 443 - HTTPS
? ? ? ? ? ? ? ? //string url = (Constants.SERVER_URL_PROTOCOL + Username + ":" + Password + "@" + ServerIP + Constants.SERVER_HEADER + Constants.SERVER_QUERY);
?
? ? ? ? ? ? ? ? // Get Json from Server
? ? ? ? ? ? ? ? httpClient.KeepAlive = false;
? ? ? ? ? ? ? ? string url = (Constants.SERVER_URL_PROTOCOL + serverIP + Constants.SERVER_HEADER + Constants.SERVER_QUERY);
? ? ? ? ? ? ? ? var json = new HttpClient().Get(url);
? ? ? ? ? ? ? ?// var json = File.ReadToEnd(Constants.CONFIG_DIRECTORY + "TriplePlay.json", Encoding.UTF8);
? ? ? ? ? ? ? ? StringReader stringReader = new StringReader(json);
? ? ? ? ? ? ? ? var jsonTextReader = new Newtonsoft.Json.JsonTextReader(stringReader);
? ? ? ? ? ? ? ? var jsonSerializer = new Newtonsoft.Json.JsonSerializer();
? ? ? ? ? ? ? ? TriplePlayParent parent = jsonSerializer.Deserialize<TriplePlayParent>(jsonTextReader);
? ? ? ? ? ? ? ? CrestronConsole.Print(" Method - Json return data: {0}", parent);
? ? ? ? ? ? }
? ? ? ? ? ? ? ? catch (Exception ex)
? ? ? ? ? ? {
? ? ? ? ? ? ? ? ErrorLog.Error("Error in Deserializing TriplePlay Json : {0}", ex);
? ? ? ? ? ? }
? ? ? ? }
? ? }
}


Simpl+

#USER_SIMPLSHARP_LIBRARY "TriplePlayServer"
?
/*
? DIGITAL, ANALOG and SERIAL INPUTS and OUTPUTS
? (Uncomment and declare inputs and outputs as needed)
*/
DIGITAL_INPUT? _SKIP_, _SKIP_, _SKIP_, _SKIP_, _SKIP_, Go, GetData;
// STRING_INPUT?
// BUFFER_INPUT?
?
DIGITAL_OUTPUT _SKIP_, _SKIP_, _SKIP_, _SKIP_, _SKIP_,Initialized_Fb;?
STRING_OUTPUT TotalClients, _SKIP_, ClientsID[MaxOutput], Location[MaxOutput];
?
?
TriplePlayLoader myServer;
?
/*
? SOCKETS
? (Uncomment and define socket definitions as needed)
*/
// TCP_CLIENT
// TCP_SERVER
// UDP_SOCKET
?
/*
? Parameters
? (Uncomment and declare parameters as needed)
*/
STRING_PARAMETER ServerIPAddress[15];
INTEGER_PARAMETER Port;
STRING_PARAMETER Username[20], Password[20];
?
?
?
#BEGIN_PARAMETER_PROPERTIES ServerIPAddress
propDefaultValue="192.168.1.40";
#END_PARAMETER_PROPERTIES
?
#BEGIN_PARAMETER_PROPERTIES Port
propValidUnits= unitDecimal;
propDefaultUnit=unitDecimal;
propDefaultValue=80d;
propList={ 80d,"HTTP" },{ 443d,"HTTPS" };
#END_PARAMETER_PROPERTIES
?
#BEGIN_PARAMETER_PROPERTIES Username
propValidUnits= unitString;
propDefaultUnit=unitString;
propDefaultValue="Admin";
#END_PARAMETER_PROPERTIES
?
#BEGIN_PARAMETER_PROPERTIES Password
propValidUnits= unitString;
propDefaultUnit=unitString;
propDefaultValue="";
#END_PARAMETER_PROPERTIES
?
?
Integer x;?
?
Function SetServerIP()
{
? ? ?RegisterDelegate(myServer,OnError,MyOnError); // Register the MyOnError function to the OnError delegate
? ? ?myServer.ServerIP = ServerIPAddress; //send IP address of TriplePlay Server to S#?
?// myServer.Initialize();
? ? print("Hello There");
}
?
// MyOnError is triggered from the C# module when an error happens. We add it to the ErrorLog
callback Function MyOnError(String strError)
{
GenerateUserError("TriplePlayServer Error %s\n\r",strError);
}
?
?
PUSH Go
{
? ? //Print("Server IP in Simpl+ is: %s", ServerIPAddress);
? ? SetServerIP();
? ? //Print("Returned from S#");
}
Push GetData
{
? ? //TriplePlayLoader.Initialize();?
?
? ?/* If(Port <> 80)
? ? {
? ? ? ? TriplePlayLoader.Username = Username;? ? ? ? ? ?// send Username of TriplePly Server to S#
? ? ? ? TriplePlayLoader.Password = Password;? ? ? ? ? ? ?// send Password of TriplePly Server to S#
? ? }
?
? ? TotalClients = TriplePlayParent.Result.Result.Total;
? ? */
}
Function Main()
{
? ? WaitForInitializationComplete();
}
?