0

I'm using Windows PowerShell Integrated Scripting Environment (ISE). What I'm trying to do is get setup information from a solar inverter that is connected via com3,115200,8,and 1 data bits. I bought this inverter and there is no brand name or model #. So I'm trying to open com port and get any info that I can, to help with setup. I have very little experience writing code.

3
  • Where did you buy the inverter? Are you able to provide any information about it? Commented Jan 23, 2014 at 17:58
  • Bought it from an auction. This is a hole system less li-ion batteries, display and charger. Has everything to connect to the grid. these were made for a pilot program that California electric paid for. they decommissioned them last year. Commented Jan 24, 2014 at 18:55
  • Here is the article businesswire.com/news/home/20101006005244/en#.UuK5JWco7uo Commented Jan 24, 2014 at 19:06

1 Answer 1

1

Originally, I thought this would be a job for WMI, then I discovered this example, which I thought you may be able to modify:

[$port = new-Object System.IO.Ports.SerialPort COM6,115200,None,8,one
$port.Open()
$port.WriteLine( "at+csq" + "`r" )
start-sleep -m 50
$port.ReadExisting()
$port.Close()][1]
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.