Page 5 of 6
Re: Newer version of Indigo 2022.x.x
Posted:
Tue Apr 18, 2023 8:23 am
by jay (support)
Be careful when installing FTDI drivers - they may cause incompatibilities because macOS already includes FTDI drivers...
Re: Newer version of Indigo 2022.x.x
Posted:
Tue Apr 18, 2023 3:59 pm
by Vig
Ok, sorry, so it doesn't look like I actually installed the driver from the adapter maker. The system seems to show it's using the built in one.
Re: Newer version of Indigo 2022.x.x
Posted:
Wed Apr 19, 2023 8:39 pm
by hamw
Well, I bought the GearMo adapter, and it shows up in the bottom picture. You can see the pull down menu for the Z-wave converter, so it is recognized by the Mac. The port settings did have. bunch of keyspan devices, which I deleted. I went to /Library/Extensions and deleted the Keyspan .kext. I have unplugged all the USB cables and restarted the Mac. Still no luck as you can see from this persistent error.
Why would this old Keyspan unit be locked in to the plugin? I looked through the plugin with BB edit and I'm not sure why it is not seeing the usb-serial converter, especially since the Z-Wave menu sees it with no problem. Any thoughts how to release it?
- Code: Select all
Starting plugin "Simple Serial 1.0.1" (pid 5813)
Started plugin "Simple Serial 1.0.1"
Simple Serial Debug <<-- entering deviceStartComm, Device: Vaux Simple Serial Python; ID=775789076, Type=simpleSerialCommunicator
Simple Serial Debug Serial Port Name is /dev/cu.USA19H14114P1.1
Simple Serial Debug Serial Port Baud Rate is 38400
Simple Serial Debug Serial Port Parity is N
Simple Serial Debug Serial Port Data Bits are 8
Simple Serial Debug Serial Port Stops Bits are 1
Simple Serial Error "Vaux Simple Serial Python" serial port open error: [Errno 2] could not open port /dev/cu.USA19H14114P1.1: [Errno 2] No such file or directory: '/dev/cu.USA19H14114P1.1'
Simple Serial Error make sure the USB virtual serial port driver (ex: FTDI driver) is installed and correct port is selected
Simple Serial Error initializing communciations with serial device Vaux Simple Serial Python
Simple Serial Debug exiting deviceStartComm -->>
Re: Newer version of Indigo 2022.x.x
Posted:
Wed Apr 19, 2023 9:03 pm
by Vig
Your "Simple Serial" plugin is still pointing to USA19H, you need to reconfigure it to use usbserial-FTxxxxx, should be one of those /dev/cu. usbserialFT7ERMNx, you can try one by one to figure out which one is being used.
To configure to different serial port you need to go to your existing device (mine is Samsung TV in the picture) and click on Edit Device Settings... you will see Serial port drop down menu..
Also, your Network shows bunch of the FT232R services configured, mine doesn't have any, you might want to delete them to free them up if you are not using them for other purposes.
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 4:34 am
by hamw
- Code: Select all
xxxxx-Mac-mini-5:Receipts xxxxxx $ ls -l /dev/cu.usbserial-FT*
crw-rw-rw- 1 root wheel 0x900000b Apr 20 06:23 /dev/cu.usbserial-FT7ER4MN0
crw-rw-rw- 1 root wheel 0x9000003 Apr 20 06:23 /dev/cu.usbserial-FT7ER4MN1
There is not a menu to select the device? What line would I change in the plugin to manually key in one of the above ports
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 9:12 am
by Vig
Not sure where that would be in the code, The plugin serial settings were intended be configured via GUI. That's what I did and the indigo device screenshot in my previous post. That's the the way how I did it and that's how you would change the serial device.
What happens when you try to set it using Indigo?
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 9:30 am
by hamw
When I set it, I do not see the GUI. This is what comes up.
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 10:09 am
by Vig
You can't set it in the plugin but rather the indigo device that you create and assign "Simple Serial" to it as the type/model.
In your Indigo create a new device
for the Device Type drop down choose "Simple Serial"
for Model choose "Simple Serial Communication"
Click "Edit Device Settings..." and you will see serial port selection (like on the screenshot)
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 10:46 am
by hamw
You know what, that’s probably my issue. I completely forgot that I had to set the device.
Thanks for your patience… Really appreciate it. I’ll let you know.
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 4:49 pm
by hamw
of course that worked!
now the next issue... This script controls the matrix switch. or did...
- Code: Select all
simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
message = "%s\n" % (indigo.variables["direct_Vaux_Send"].value)
simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
Now its throwing an error....
- Code: Select all
Script Error embedded script error:
Script Error unable to convert python exception
Script Error Exception Traceback (most recent call shown last):
embedded script, line 4, at top level
RuntimeError: unable to convert python exception
Is this a Python 3 issue?
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 5:08 pm
by Vig
> Is this a Python 3 issue?
That I am not really sure, but seems like it. For testing you can just bypass the script and put the payload directly into the Indigo Action and see if it works.
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 6:20 pm
by FlyingDiver
I suspect you're getting bit by the change in Python3 where strings are unicode rather than bytes. Try this:
- Code: Select all
simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
message =("%s\n" % (indigo.variables["direct_Vaux_Send"].value) ).encode()
simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
The encode() call converts the unicode string to a bytestring, which is what I expect the plugin needs to send out the serial port.
Re: Newer version of Indigo 2022.x.x
Posted:
Thu Apr 20, 2023 7:53 pm
by hamw
Joe and Vig,
Thank you both very much for the assistance. However, it is still throwing the error:
- Code: Select all
Script Error trigger "direct Vaux Send" embedded script error:
Script Error unable to convert python exception
Script Error Exception Traceback (most recent call shown last):
embedded script, line 4, at top level
RuntimeError: unable to convert python exception
this is the script:
- Code: Select all
simpleSerialId = indigo.server.getPlugin("org.yergeyjDoesntHaveaURL.simpleserial")
if simpleSerialId.isEnabled():
message =("%s\n" % (indigo.variables["direct_Vaux_Send"].value)).encode()
simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
The line that is failing is here:
- Code: Select all
simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})
Re: Newer version of Indigo 2022.x.x
Posted:
Fri Apr 21, 2023 7:17 pm
by EagleDTW
Hi Jay and Matt,
Moving from an older 2021.1 Mac mini 2012 OS 10.13 to 2022.2.2 M2 Mac mini 2023 OS13.3.1 - Is there a similar guide to de-activating and transferring all the required folder locations, such as the Version 7 upgrade documentation?
I'm not completely naive, but not fully in-depth on all things MacOS.
Your help is appreciated!!
Thank you,
Daniel
Re: Newer version of Indigo 2022.x.x
Posted:
Sun Apr 23, 2023 11:00 am
by jay (support)
We recommend a two step process (if possible) to reduce complications:
1)
Upgrade your existing install to 2022.2.2 first and make sure it's working.
2)
Move your 2022.2.2 install to the new MacDoing it in two steps will help with troubleshooting if there is an issue by isolating the issue to either the upgrade or the move.