User avatar
AllonisDave
Founder
Founder
Posts: 11497
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

GenericSerial Driver

Thu Jan 26, 2017 7:49 pm

A native V5 Generic Serial device driver has been released. It is a member of the Control Family so you will create the primary serial devices in Family Manager and then the individual device control files are defined inside the driver itself. Similar to how the GlobalCache driver works.

At this point in time the driver is only capable of sending one-way commands to devices. A future enhancement will allow for two-way support. The serial device can either be connected via a local serial port or a networked device that uses a standard TCP connection.

Once the driver is installed go into Family Manager and add a new Control Family device. The important fields are "Address", "Port" and "Description". If your device is a serial device connected to a comm port you must fill in the Description field with the communication parameters that the serial port needs. e.g. 9600,8,N,1 for 9600 baud, 8 bits, No Parity, 1 Stop bit.
GenericSerial-FamilyManager.png
Family Manager
GenericSerial-FamilyManager.png (79.73 KiB) Viewed 751 times
Once you do that go into the driver and you should see that the device has been listed in the devices tab.
GenericSerial-Dialog.png
GenericSerial-Dialog.png (17.44 KiB) Viewed 751 times
You define the serial commands for your devices in the Serial Database tab. Serial data is entered as strings but if the device talks binary you must encode the string as a series of hex characters. In the example below you see that the Power On and Power Off commands need to be terminated with a Carriage Return - that's the hex \x0D at the end.
GenericSerial-Devices.png
GenericSerial-Devices.png (28.19 KiB) Viewed 751 times
The driver supports one command called Send. i.e. Send|22~Marantz~Power On

Preliminary testing here shows it working. Kick the tires and let us know what it does for you.

Synergy_Tech
Intermediate
Intermediate
Posts: 254
Joined: Wed Sep 26, 2012 9:36 pm
Contact: Send private message

Re: GenericSerial Driver

Fri Feb 24, 2017 11:06 pm

Can we export any devices that we create?

User avatar
AllonisDave
Founder
Founder
Posts: 11497
Joined: Fri Feb 07, 2003 8:56 am
Location: Newport Beach, CA
Contact: Send private message

Re: GenericSerial Driver

Sun Feb 26, 2017 6:58 pm

Yes

Return to “Control Family Device Drivers”

Who is online

Users browsing this forum: No registered users and 1 guest