Keyboard Shortcuts
Likes
- Crestron
- Messages
Search
Re: Simpl+ Editor Problems
toggle quoted message
Show quoted text
Thanks Eric.? My initial search did not return your version.? Looks good, I'll give it a try. |
Re: Simpl+ Editor Problems
I tried that. I replaced the S+ editor .EXE with my own .EXE and tried dumping any command line arguments it received and it got nothing. I think they open the .EXE and then send an API call to the window to open the file. Same with when you compile a file and it tells the open SIMPL Windows to refresh module data. I tried all this back when I made the Notepad++ plugin. I spent a while trying to intercept calls and a few other things and finally just gave up on it. It wouldn't work with VSCode anyway. The way the build task system works, you can't just open a file by itself, you have to open the containing folder. That's why if you open a USP file directly with my plugin installed, it will reset itself by opening the folder first and then the USP file. On Sun, Jan 21, 2024 at 8:26?PM J.B. Parker <jbparker216@...> wrote:
|
Re: Simpl+ Editor Problems
开云体育Probably could be done with creatively renaming the editor exe name and a powershell2exe file if you parsed the command string, wouldn’t suggest that if you ever use the built in editor though, who knows what dependencies are crawling in simpl
after all these years
From: [email protected] <[email protected]> on behalf of Eric Walters <sentry07@...>
Sent: Sunday, January 21, 2024 10:17:29 PM To: [email protected] <[email protected]> Subject: Re: [crestron] Simpl+ Editor Problems ?
That S+ plugin by MWGustin is out of date. If you switch to the one I wrote (Eric Walters), you can go into the VSCode settings for the plugin and enable what systems you want to be able to compile for. It also has error highlighting if your
compile has errors and some other things. It's all in the readme for the plugin. Be aware that to get build tasks to work (CTRL-SHIFT-B) you have to right click your code folder and open it with VSCode, instead of an individual S+ USP file. It's a limitation
of VSCode, or it's more how VSCode is designed to be used.
I tried to tie into the SIMPL?Windows call when you right click a S+ module and edit it but I can't figure out how to do that. I would just normally keep a VSCode instance of that program's folder open along with SIMPL Windows.
On Sun, Jan 21, 2024 at 7:25?PM jbasen <jay.m.basen@...> wrote:
|
Re: Simpl+ Editor Problems
That S+ plugin by MWGustin is out of date. If you switch to the one I wrote (Eric Walters), you can go into the VSCode settings for the plugin and enable what systems you want to be able to compile for. It also has error highlighting if your compile has errors and some other things. It's all in the readme for the plugin. Be aware that to get build tasks to work (CTRL-SHIFT-B) you have to right click your code folder and open it with VSCode, instead of an individual S+ USP file. It's a limitation of VSCode, or it's more how VSCode is designed to be used. I tried to tie into the SIMPL?Windows call when you right click a S+ module and edit it but I can't figure out how to do that. I would just normally keep a VSCode instance of that program's folder open along with SIMPL Windows. On Sun, Jan 21, 2024 at 7:25?PM jbasen <jay.m.basen@...> wrote:
|
Re: Simpl+ Editor Problems
开云体育I figured as much.? But, I didn't want to rule out the chance that someone knew of a super, secret config file that could be edited to change the default behavior. Thanks Jay On 1/21/2024 8:18 PM, thesaabdr via
groups.io wrote:
I think that is a function of SIMPL that we can't get around.? You could change the default application for .usp files.? At least with that, if you double-click on the file in explorer, it will open in VS code.? |
Re: Simpl+ Editor Problems
开云体育Ok, one more thing.? So, you are working in SimplWin, you
right-click on an S+ module, and choose Edit User Module from the
pop-up men.? Any way to make that open VSCode instead of the
Crestron S+ Editor?? That is a much more efficient workflow than
having to open VSCode and locating the file to edit.? Thanks Jay On 1/21/2024 7:04 PM, jbasen via
groups.io wrote:
|
Re: Simpl+ Editor Problems
开云体育Thanks so much for this.? While I'm a bit of a curmudgeon? I
made the change you outlined below and I'll give it a try. ? Thanks again Jay On 1/21/2024 6:02 PM, thesaabdr via
groups.io wrote:
In playing with it some more, you can modify the extension to compile in 4 series. |
Re: Simpl+ Editor Problems
In playing with it some more, you can modify the extension to compile in 4 series.
Locate extension.js and edit with a text editor: C:\Users\[your username]\.vscode\extensions\mwgustin.crestron-simpl-plus-1.3.0\out\extension.js on lines 76 and 91 at the end where it says series3, add series4 and save.? Reload VS code and compile your project.? In the terminal window, it should show seires3 and series4 compiling. i.e.: 76: processSimpl("\\target series3 series4"); 91: term.sendText(compiler.buildCommand("\\target series3 series4")); |
Re: Simpl+ Editor Problems
toggle quoted message
Show quoted text
There is a plug-in for VS code for SIMPL+.? I have not played with it much, but it seems to work.? I typically have VS code open for other things anyway.? It appears to only have compiling for 3 series with ctrl+F12.? Just compile it once for 3-series then click on the terminal tab.? Push up to repeat last command and change the last line from series3 to series4 and hit enter.? (or add series4 if you want it for both)? This will compile for 4 series.? To recompile, just do up again and hit enter.? |
Re: Simpl+ Editor Problems
There is a plug-in for VS code for SIMPL+.? I have not played with it much, but it seems to work.? I typically have VS code open for other things anyway.? It appears to only have compiling for 3 series with ctrl+F12.? Just compile it once for 3-series then click on the terminal tab.? Push up to repeat last command and change the last line from series3 to series4 and hit enter.? (or add series4 if you want it for both)? This will compile for 4 series.? To recompile, just do up again and hit enter.?
cross compiler help: ?spluscc command line parameters: ?\???????????????????????? : Displays this help ?\build <module [module]>? : Compiles the specified module ???????????????????????????? Example:? \build "c:\my module.usp" ???????????????????????????? Example:? \build module1.usp module2.usp ?\rebuild <module [module]>: Force a compilation of the specified module ?\target <device [device]> : Specifies the target devices for which to compile ???????????????????????????? device = series2 | series3 ???????????????????????????? Example:? \target series3 ???????????????????????????? Example:? \target series2 series3 series4 ?\out <file>?????????????? : Write all compilation output to the specified file ?\usersplusfolder <folder> : User SIMPL+ folder ?\silent?????????????????? : Suppress console output ?\errorcodes?????????????? : Displays compilation error codes |
Re: RMC4 weird behaviour
开云体育It?s actually a pretty small program just for one cinema room. The RMC3 is running the exact same program and doesn?t have any issues with it. I tried a lot of things from restore to reboots, reconnections, etc. ? I?m beginning to suspect a fault in the RMC4, but on the other hand thinking that this is highly unlikely… ? Thorsten ? Von: [email protected] <[email protected]> Im Auftrag von Lincoln King-Cliby via groups.io ? Do you have anything printing a lot to console? I've found Debugger (and toolbox) can get easily confused if there's a bunch of noise in console, particularly when it's going through the initial connection.? ? Usually once Toolbox gets that confused the only solution is to close Toolbox and make sure the comserver is shut down then try again. For some reason the 4-series seem more likely to confuse TB than the 3? ? Get From: [email protected] <[email protected]> on behalf of Thorsten K?hler <thorsten.koehler@...>
Sent: Saturday, January 20, 2024 2:34:39 PM To: [email protected] <[email protected]> Subject: [crestron] RMC4 weird behaviour ? [Edited Message Follows] Hi, ? i?m just trying to replace an RMC3 with an RMC4. I did a small project with a planned RMC4, but since that didn?t arrive in time, the client got a RMC3 as a preliminary solution. Now that the RMC4 arrived, I send it to the client. He connected everything and the program I preloaded before sending out was running partly. I did a couple of adjustments, but now the unit behaves weird. I?m able to connect via Toolbox using EasyConfig and also the CLI. I can also connect via webfrontend. However, the processor seems to have lost it?s program and i?m not able to reload it anymore. Using the “transfer” tool from SIMPl Windows, it gives me a “The device doesn?t support the capabilities required by this dialog” error message. Then I tried loading the program via webinterface. That works, I can see via CLI that the program gets loaded and is running, but I?m not able to connect via Toolbox to use SIMPL debugger. ? I did a factory restore and get the same behaviour. ? Any ideas? ? Thanks, Thorsten |
Re: RMC4 weird behaviour
开云体育Do you have anything printing a lot to console? I've found Debugger (and toolbox) can get easily confused if there's a bunch of noise in console, particularly when it's going through the initial connection.?
Usually once Toolbox gets that confused the only solution is to close Toolbox and make sure the comserver is shut down then try again. For some reason the 4-series seem more likely to confuse TB than the 3?
Get From: [email protected] <[email protected]> on behalf of Thorsten K?hler <thorsten.koehler@...>
Sent: Saturday, January 20, 2024 2:34:39 PM To: [email protected] <[email protected]> Subject: [crestron] RMC4 weird behaviour ?
[Edited Message Follows] Hi, ? i?m just trying to replace an RMC3 with an RMC4. I did a small project with a planned RMC4, but since that didn?t arrive in time, the client got a RMC3 as a preliminary solution. Now that the RMC4 arrived, I send it to the client. He connected everything and the program I preloaded before sending out was running partly. I did a couple of adjustments, but now the unit behaves weird. I?m able to connect via Toolbox using EasyConfig and also the CLI. I can also connect via webfrontend. However, the processor seems to have lost it?s program and i?m not able to reload it anymore. Using the “transfer” tool from SIMPl Windows, it gives me a “The device doesn?t support the capabilities required by this dialog” error message. Then I tried loading the program via webinterface. That works, I can see via CLI that the program gets loaded and is running, but I?m not able to connect via Toolbox to use SIMPL debugger. ? I did a factory restore and get the same behaviour. ? Any ideas? ? Thanks, Thorsten |
Re: Topics in Home Automation - New Article in Residential Tech Today
开云体育Thanks Yevhen. I think the hands on information you've added is really valuable.? It provides a real world perspective of the material I've tried to present. Thanks again Jay On 1/21/2024 7:35 AM, Yevhen wrote:
Thanks for the interesting article. |
Re: Topics in Home Automation - New Article in Residential Tech Today
Thanks for the interesting article.
I faced this question in practice with the beginning of the large-scale invasion of Russia and the beginning of the war in Ukraine. Literally from the first day, almost all objects had to be added Light Masking mode. Later - to solve the issue of constant long-term failures in the electricity supply. We had to work out the procedure for maximum energy saving while the house is powered by batteries. We have been using the input voltage control relay for a long time - this is Ukraine, there are problems with power quality here. We have been building a local network independently for 10 years, so this system did not cause any problems. Local network and router backup has been done for a long time. With the beginning of the war, we began to reserve the Internet channel as well (we started another public provider or use Starlink). A long time ago, I developed a system for remote access to objects that do not have an external routable IP address. I had to add a notification module to Telegram (this is such a widespread messenger in our region). With the help of notifications in a special chat, I understand exactly what is happening at the object, and special commands through the same chat give me the opportunity to launch certain processes. We also encountered water reservation in practice. The most interesting case is the installation of a flow storage for water in a city apartment. I can tell many interesting cases from practice :) |
Re: RMC4 weird behaviour
On Sat, Jan 20, 2024 at 02:12 PM, Thorsten K?hler wrote:
EDIT: One update: i loaded the program again via web-interface. Program load is successful, but status of the program says "stopped".Though I am using a frame-work with an S# core, I have seen pretty regularly when loading to 4-series, that the program will load and show that it is complete and running but then almost immediately show that it has stopped. In this case it has actually stopped and I generally reload and it is fine after that. I suspect that your issue is different, but I wanted to tell you about it in case it has some value.... This is happening ~ every 5-8 loads, when I'm iterating a new system to get it going. It is definitely a *new* issue that I had never seen before the last few months... Also, This is happening at least the last (2) 4-series release FW |
Re: RMC4 weird behaviour
开云体育Been there, done that. No change… ? Thanks, Thorsten ? Von: [email protected] <[email protected]> Im Auftrag von Yevhen ? Try RESTORE command on CLI and setup as new device. |