Premise UPB Driver Update - Woo-Hoo!

Motorola Premise

samgreco

Active Member
View attachment 2094 It is a good day at Casa el Greco...

As some of you know, I have been fighting, hoping, wishing, praying and begging for an update to the UPB driver for literally years. I was able to hack a dll to get my HAL dimmer switches functional, but today I figured out how to add almost anything by hacking the dll directly. As long as the item functions the same as an existing class/item.

Seems that you can add a second manufacturer's ID to the same line as the original. Then you can add additional device ids and point them to an existing device.

So for instance, I added the HAL RS-101 Dimmer switch to the PCS driver and told it that the id (222) was a PCS WS1D6, since that switch functions exactly the same way.

Then I added the lamp and appliance modules to the Simply-Automated driver since they are really repackaged SA modules, with different firmware and manufacturer's id. Pointed them to the equivalent SA modules and viola! Everything works exactly as it should. The only thing that happens is that the items are reported in builder as the original driver's model. But since they should be renamed to what they really are anyway, and the driver picks up the embedded metadata, everything makes sense.

So I should be able to add more, as long as there is a functional match that exists already. I don't have any GEN-II stuff yet, so I don't know how that will work, but I think the command structure has remained the same.

So I am attaching the updated files ( I was not able to start a thread in the Downloads forum ?). The original upb.dll remains the same.

Go HERE for the file.
 
Dan - Can you move this thread? I couldn't post anything there before.


EDIT: Sorry, I should have been paying better attention. Can you move the file?
 
The downloads section is not part of the forum, it's a new file management system, so you'll have to reupload it there. The download subforum you tried to upload to is not supposed to be used anymore, I just won't remove it until all files have been moved over to the new platform.
 
View attachment 2094 It is a good day at Casa el Greco...

As some of you know, I have been fighting, hoping, wishing, praying and begging for an update to the UPB driver for literally years. I was able to hack a dll to get my HAL dimmer switches functional, but today I figured out how to add almost anything by hacking the dll directly. As long as the item functions the same as an existing class/item.

Seems that you can add a second manufacturer's ID to the same line as the original. Then you can add additional device ids and point them to an existing device.

So for instance, I added the HAL RS-101 Dimmer switch to the PCS driver and told it that the id (222) was a PCS WS1D6, since that switch functions exactly the same way.

Then I added the lamp and appliance modules to the Simply-Automated driver since they are really repackaged SA modules, with different firmware and manufacturer's id. Pointed them to the equivalent SA modules and viola! Everything works exactly as it should. The only thing that happens is that the items are reported in builder as the original driver's model. But since they should be renamed to what they really are anyway, and the driver picks up the embedded metadata, everything makes sense.

So I should be able to add more, as long as there is a functional match that exists already. I don't have any GEN-II stuff yet, so I don't know how that will work, but I think the command structure has remained the same.

So I am attaching the updated files ( I was not able to start a thread in the Downloads forum ?). The original upb.dll remains the same.

Go HERE for the file.

Nice job Sam! ...seems not that long ago you were mentioning about having to trudge thru the Premise minefield on your own.....
 
Thanks Chuck. Still haven't learned scripting yet, but now that this is off my plate, I can finally move on :)
 
Back
Top