Comment by superjan
How about applying the idea behind ESCROW: if you market hardware with software dependencies, you are required to provide the source to a trusted third party who will release/opensource it if you stop maintaining said software before the expected lifetime of the hardware.
Sounds great, how do you enforce this with the deluge of things like IP cameras and the like from Chinese companies?
100% tariffs? Every outdoor IP camera, for example, is either Chinese manufactured or outlandishly expensive. even a 200% increase in purchase price makes these devices competitive, still.