Posts: 2
	Threads: 1
	Joined: Jun 2024
	
Reputation: 
0
	 
 
	
	
		Hi,
I'm trying to reboot a wiser for KNX with a script.
Using this "os.execute('reboot')", the server doesn't reboot.
I also tested this "os.execute(reboot)" but i have the same result.
Respectfully,
BRUN Félix.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 5287
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
 
	
	
		In General configuration there is Block unsafe functions in scripts: 
Make sure to disable it.
	
	
	
------------------------------
Ctrl+F5
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 22
	Joined: Jul 2015
	
Reputation: 
0
	 
 
	
	
		Hi,
I have the same problem as fbrun@domizy to reboot LM5, I don't understand Daniel's answer
BR
	
	
	
Jean-Marc
	
		
	
 
 
	
	
	
		
	Posts: 5287
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
 
	
	
		Utilities-> General configuration...
	
	
	
------------------------------
Ctrl+F5
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 22
	Joined: Jul 2015
	
Reputation: 
0
	 
 
	
		
		
		24.06.2025, 15:18 
(This post was last modified: 24.06.2025, 15:23 by JMM.)
		
	 
	
		Thanks Daniel, it's OK
Is it also possible to reset the USB port by script, I have a Uart rs232 which from time to time blocks and I am obliged to unplug and replug
	
	
	
Jean-Marc
	
		
	
 
 
	
	
	
		
	Posts: 5287
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
 
	
	
		What is the device you have problem with?
	
	
	
------------------------------
Ctrl+F5
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 22
	Joined: Jul 2015
	
Reputation: 
0
	 
 
	
	
		It's : FTDI - FT232R USB UART
	
	
	
Jean-Marc
	
		
	
 
 
	
	
	
		
	Posts: 5287
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
 
	
	
		Did you check if just reboot helps? I think it will need power down anyway.
	
	
	
------------------------------
Ctrl+F5
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 22
	Joined: Jul 2015
	
Reputation: 
0
	 
 
	
		
		
		24.06.2025, 16:03 
(This post was last modified: 24.06.2025, 16:04 by JMM.)
		
	 
	
		Yes reboot helps, I read the frame of a Linky electric meter every minute, some day at 8:00 a.m. the meter sends the tariff change and the ft232 blocks so either reboot or disconnect reconnect
It's not from the script!!
	
	
	
Jean-Marc
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 22
	Joined: Jul 2015
	
Reputation: 
0
	 
 
	
	
		Thanks Daniel, but is not work
	
	
	
Jean-Marc
	
		
	
 
 
	
	
	
		
	Posts: 152
	Threads: 22
	Joined: Jul 2015
	
Reputation: 
0
	 
 
	
	
		Hello,
Is there a way from a Lua script (or system command via os.execute()) to completely cut and restore the 5V power supply to a USB port on the LM5?
BR
	
	
	
Jean-Marc
	
		
	
 
 
	
	
	
		
	Posts: 1807
	Threads: 7
	Joined: Jul 2015
	
Reputation: 
121
	 
 
	
	
		Could be “block unsafe scripts” in general configuration io.writefile could be blocked, not sure if that is also on LM..
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 5287
	Threads: 29
	Joined: Aug 2017
	
Reputation: 
237
	 
 
	
	
		 (04.07.2025, 12:42)Erwin van der Zwart Wrote:  Could be “block unsafe scripts” in general configuration io.writefile could be blocked, not sure if that is also on LM..
No it's not.
	
 
	
	
------------------------------
Ctrl+F5