Newer version of Indigo 2022.x.x
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Newer version of Indigo 2022.x.x
Be careful when installing FTDI drivers - they may cause incompatibilities because macOS already includes FTDI drivers...
Re: Newer version of Indigo 2022.x.x
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.
- Attachments
-
- Screenshot 2023-04-18 at 6.04.45 PM.png (153.34 KiB) Viewed 3226 times
Re: Newer version of Indigo 2022.x.x
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?
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 -->>
- Attachments
-
- Screenshot 2023-04-19 at 10.33.11 PM.png (142.7 KiB) Viewed 3196 times
-
- Screenshot 2023-04-19 at 10.31.22 PM.png (50 KiB) Viewed 3196 times
-
- IMG_6737.jpg (126.5 KiB) Viewed 3196 times
Re: Newer version of Indigo 2022.x.x
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.
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.
- Attachments
-
- Screenshot 2023-04-19 at 11.09.52 PM.png (184.45 KiB) Viewed 3188 times
-
- Screenshot 2023-04-19 at 10.58.31 PM.png (61.53 KiB) Viewed 3191 times
-
- Screenshot 2023-04-19 at 10.59.57 PM.png (51.22 KiB) Viewed 3191 times
Re: Newer version of Indigo 2022.x.x
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
Re: Newer version of Indigo 2022.x.x
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?
What happens when you try to set it using Indigo?
Re: Newer version of Indigo 2022.x.x
When I set it, I do not see the GUI. This is what comes up.
- Attachments
-
- IMG_6738.jpeg (114.32 KiB) Viewed 3136 times
Re: Newer version of Indigo 2022.x.x
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)
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)
- Attachments
-
- Screenshot 2023-04-20 at 12.06.50 PM.png (123.89 KiB) Viewed 3132 times
Re: Newer version of Indigo 2022.x.x
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.
Thanks for your patience… Really appreciate it. I’ll let you know.
Re: Newer version of Indigo 2022.x.x
of course that worked!
now the next issue... This script controls the matrix switch. or did...
Now its throwing an error....
Is this a Python 3 issue?
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})
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 exceptionRe: Newer version of Indigo 2022.x.x
> 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.
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.
- FlyingDiver
- Posts: 7830
- Joined: Sat Jun 07, 2014 10:36 am
- Location: Southwest Florida, USA
Re: Newer version of Indigo 2022.x.x
I suspect you're getting bit by the change in Python3 where strings are unicode rather than bytes. Try this:
The encode() call converts the unicode string to a bytestring, which is what I expect the plugin needs to send out the serial port.
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})
joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
my plugins: http://forums.indigodomo.com/viewforum.php?f=177
Re: Newer version of Indigo 2022.x.x
Joe and Vig,
Thank you both very much for the assistance. However, it is still throwing the error:
this is the script:
The line that is failing is here:
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 exceptionCode: 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})
Code: Select all
simpleSerialId.executeAction("textToSerial", deviceId=775789076, props={"newCommand":message})Re: Newer version of Indigo 2022.x.x
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
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
- jay (support)
- Site Admin
- Posts: 19232
- Joined: Wed Mar 19, 2008 11:52 am
- Location: Austin, Texas
- Contact:
Re: Newer version of Indigo 2022.x.x
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 Mac
Doing it in two steps will help with troubleshooting if there is an issue by isolating the issue to either the upgrade or the move.
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 Mac
Doing it in two steps will help with troubleshooting if there is an issue by isolating the issue to either the upgrade or the move.