Dan Craciun
2015-Apr-15 19:56 UTC
[Nut-upsuser] Cannot connect to a GPSER on serial, USB returning wrong data
Hi, I'm using Nut 2.7.2 with riello_ser and riello_usb 0.3 (upgraded from 0.2). Raspbian on Raspberry PI model 2015. The drivers work on SENTR models. But on several GPSER the behaviour is erratic: - usually, the serial driver cannot connect with the UPS. But, when left on for several days, I found that it suddenly connected on one machine... - the usb driver connects immediately, but failes to recognize the UPS model and the readings are wrong. The GPSER models we have are single phase, the drive sees them as 3-phase. The output of upsc is below. You'll notice a lot of 52432 values. How can I debug this? /usr/local/ups/bin/upsc nod battery.capacity: 52432 battery.charge: 64720 battery.runtime: 3145920 battery.voltage: 5243.2 battery.voltage.nominal: 52432 device.mfr: RPS S.p.a. device.model: device.serial: device.type: ups driver.name: riello_usb driver.parameter.pollinterval: 2 driver.parameter.port: /dev/ttyUSB0 driver.version: 2.7.2 driver.version.internal: 0.03 input.bypass.frequency: 5243.20 input.bypass.L1-N.voltage: 52432 input.bypass.L2-N.voltage: 52432 input.bypass.L3-N.voltage: 52432 input.bypass.phases: 3 input.frequency: 5243.20 input.L1-N.voltage: 52432 input.L2-N.voltage: 52432 input.L3-N.voltage: 52432 input.phases: 3 output.frequency: 0.00 output.frequency.nominal: 5243.2 output.L1-N.voltage: 52432 output.L1.current: 52432 output.L1.power: 52432 output.L1.power.percent: 64720 output.L1.realpower: 52432 output.L2-N.voltage: 52432 output.L2.current: 52432 output.L2.power: 52432 output.L2.power.percent: 64720 output.L2.realpower: 52432 output.L3-N.voltage: 52432 output.L3.current: 52432 output.L3.power: 52432 output.L3.power.percent: 64720 output.L3.realpower: 52432 output.phases: 3 output.voltage.nominal: 52432 ups.firmware: ups.load: 64720 ups.mfr: RPS S.p.a. ups.model: ups.power.nominal: 55574 ups.productid: 5500 ups.realpower.nominal: 55574 ups.serial: ups.status: OL OFF ups.temperature: 64720 ups.vendorid: 04b4 Best regards, Dan Craciun
Charles Lepple
2015-Apr-21 12:33 UTC
[Nut-upsuser] Cannot connect to a GPSER on serial, USB returning wrong data
On Apr 15, 2015, at 3:56 PM, Dan Craciun <dany.craciun at gmail.com> wrote:> I'm using Nut 2.7.2 with riello_ser and riello_usb 0.3 (upgraded from > 0.2). Raspbian on Raspberry PI model 2015. > > The drivers work on SENTR models. > > But on several GPSER the behaviour is erratic: > - usually, the serial driver cannot connect with the UPS. But, when left > on for several days, I found that it suddenly connected on one machine... > - the usb driver connects immediately, but failes to recognize the UPS > model and the readings are wrong. The GPSER models we have are single > phase, the drive sees them as 3-phase. The output of upsc is below. > You'll notice a lot of 52432 values.I CC'd Elio from Riello. Maybe they have seen this before? I am not very familiar with the code or the protocol, but a quick look at the driver says that you should be able to see traces of the data by passing "-DDD" to the driver. If you capture the logs this way, I don't think it needs to be for long - especially because it incorrectly detected the phases during initialization. Please gzip the output before emailing the list. Thanks! -- Charles Lepple clepple at gmail
Dan Craciun
2015-Apr-21 16:38 UTC
[Nut-upsuser] Cannot connect to a GPSER on serial, USB returning wrong data
Hi Charles, I already solved the problem and emailed Elio, just forgot to update the list. Sorry. Could not make serial connection work reliably (probably bug or hardware problem) but the problem with USB was that I had both an USB cable and a serial cable connected. I tried at first only with a serial cable, but the UPS is in a remote location, so once I determined serial had issues I connected both a serial and USB cable, so I could test both remotely. Turns out this was a bad idea. Once I disconnected the serial cable, the USB driver connected and reported correct values. Probably this should be in the documentation: for select models, serial connection does not work reliably and for USB to work you need to have only the USB cable connected. HTH, Dan On 4/21/2015 3:33 PM, Charles Lepple wrote:> On Apr 15, 2015, at 3:56 PM, Dan Craciun <dany.craciun at gmail.com> wrote: > >> I'm using Nut 2.7.2 with riello_ser and riello_usb 0.3 (upgraded from >> 0.2). Raspbian on Raspberry PI model 2015. >> >> The drivers work on SENTR models. >> >> But on several GPSER the behaviour is erratic: >> - usually, the serial driver cannot connect with the UPS. But, when left >> on for several days, I found that it suddenly connected on one machine... >> - the usb driver connects immediately, but failes to recognize the UPS >> model and the readings are wrong. The GPSER models we have are single >> phase, the drive sees them as 3-phase. The output of upsc is below. >> You'll notice a lot of 52432 values. > I CC'd Elio from Riello. Maybe they have seen this before? > > I am not very familiar with the code or the protocol, but a quick look at the driver says that you should be able to see traces of the data by passing "-DDD" to the driver. > > If you capture the logs this way, I don't think it needs to be for long - especially because it incorrectly detected the phases during initialization. Please gzip the output before emailing the list. Thanks! >
Maybe Matching Threads
- Cannot connect to a GPSER on serial, USB returning wrong data
- Riello patch and examples
- Riello patch and examples (was: Nut-upsdev post from e.parisi@riello-ups.com requires approval)
- New version of riello driver
- R: [networkupstools/nut] Riello IDG400 wrong values & not powering off (#530)