Reqsdm direct call to sdm120c

Talks about metering
Post Reply
TonyP62
Posts: 97
Joined: Fri May 01, 2015 11:07 pm

Reqsdm direct call to sdm120c

Post by TonyP62 » Mon Dec 11, 2017 12:26 pm

Hello Jean-Marc.
I need an help for modify reqsdm.
Now is:

Code: Select all

$outstr =  exec('cat /dev/shm/metern1.txt | egrep "^1_1\(" | grep "*V)"');
I want that it asks directly to sdm parameter that is :
sdm120c -a1 -b9600 -PN -w9 -v -2 /dev/ttyUSB0

Can you help me into modify the "exec" command ?

jeanmarc
Posts: 1601
Joined: Thu Aug 29, 2013 7:16 am

Re: Reqsdm direct call to sdm120c

Post by jeanmarc » Mon Dec 11, 2017 5:02 pm

$output = exec('sdm120c -a1 -b9600 -PN -w9 -v -2 /dev/ttyUSB0');
;)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest