Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Success Stories Corner
  • companyImpact

Getting value from a device

EcoStruxure IT forum

A support forum for Data Center Operation, Data Center Expert, and EcoStruxure IT product users to share knowledge on installation, configuration, and general product use.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Communities
  • EcoStruxure IT
  • EcoStruxure IT forum
  • Getting value from a device
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we?ll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Jef
Captain Jef Captain
76
APC_Steve
Commander APC_Steve Commander
54
gsterling
Commander gsterling Commander
49
Cory_McDonald
Lt. Commander Cory_McDonald Lt. Commander
15
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to EcoStruxure IT forum
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:09 PM

0 Likes
7
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:09 PM

Getting value from a device

This question was originally posted on DCIM Support by Xavier Destombes on 2019-09-16


I'm trying to access the value of a device via SOAP, using the generated java classes from WSDL.

I can get a list of the devices (ISXCDevice) using the GetAllDevicesRequest. I do see the device I'm looking for. So far so good.

But I know this device has a value (for example something like 40mA), but I can't get it using any of the ISXCDevice properties.

I though maybe I should use GetDeviceControlsForDeviceRequest, but I don't even know how to get the isxcElementIDForDevice (the closest thing to an ID I could find is the getParentID() method from ISXCDevice).

Do you have some sample code on how to access properties from a device?

Thanks

 

(CID:148769889)

Labels
  • Labels:
  • Data Center Expert
Reply
Share
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 7
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:09 PM

0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:09 PM

This comment was originally posted on DCIM Support by Greg Sterling on 2019-09-16


Hello Xavier.

There is a separate wsdl for sensor retrieval which exposes the following get sensor calls.

ISXCentralDeviceService_v2_0

More info can be found here:

https://sxwhelpcenter.ecostruxureit.com/display/UADCE725/StruxureWare+Data+Center+Expert+Web+Service...

(CID:148770067)

Reply
Share
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:09 PM

0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:09 PM

This comment was originally posted on DCIM Support by Xavier Destombes on 2019-09-16


Hello Greg,

Thanks for the reply. As I was able to get the sensor through the "Device" list, I though I could access a detailed object. Anyway, I added the SensorService, but there is no GetAllSensorsRequest, everything that is there requires a parameter like an ISXCElementID, but I have no idea where/how to get it.

How should I proceed?

Thanks

 

(CID:148770128)

Reply
Share
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:09 PM

0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:09 PM

This comment was originally posted on DCIM Support by Greg Sterling on 2019-09-16


Did you try the getSensorsForDevice request?

Regards

Greg Sterling

(CID:148770161)

Reply
Share
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:10 PM

0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:10 PM

This comment was originally posted on DCIM Support by Xavier Destombes on 2019-09-16


Ouch, didn't see the "s" at the end of sensor(s) in this one:)

Ok I still get a com.apc.stdws.wsdl.isxcentralsensors_v2.SensorServiceFault: Invalid ID though...

Here's what I'm doing so far, nothing fancy, just trying to get to the sensors:

ISXCentralSensorServiceV20_Service sensorService = new ISXCentralSensorServiceV20_Service();
ISXCentralSensorServiceV20 sensorServiceProxy = sensorService.getISXCentralSensorServiceV20HttpPort();
GetSensorsForDeviceRequest getSensorsForDeviceRequest= new GetSensorsForDeviceRequest();
GetSensorsForDeviceResponse response;
try {
response = sensorServiceProxy.getSensorsForDevice(getSensorsForDeviceRequest);
// => the Invalid ID fault is coming from the line above
List<ISXCSensor> list = response.getArrayOfISXCSensor().getISXCSensor();
...
} 

(CID:148770164)

Reply
Share
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:10 PM

0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:10 PM

This comment was originally posted on DCIM Support by Greg Sterling on 2019-09-17


When you make the call to the getsensorsfordevice your request packet should look something like this where you substitute the element id from your previous get devices call. So an example might be B981f08_nbSNMPEnc94632825

Is this the format you are using?

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:isx="http://www.apc.com/stdws/xsd/ISXCentralSensors-v2">
<soapenv:Header/>
<soapenv:Body>
<isx:getSensorsForDeviceRequest>
<isx:ISXCElementID>ELEMENTID</isx:ISXCElementID>
</isx:getSensorsForDeviceRequest>
</soapenv:Body>
</soapenv:Envelope>

So, using my above sample element id, the content of your request packet would look like this if you're querying my above device.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:isx="http://www.apc.com/stdws/xsd/ISXCentralSensors-v2">
<soapenv:Header/>
<soapenv:Body>
<isx:getSensorsForDeviceRequest>
<isx:ISXCElementID>B981f08_nbSNMPEnc94632825</isx:ISXCElementID>
</isx:getSensorsForDeviceRequest>
</soapenv:Body>
</soapenv:Envelope>

Regards

Greg Sterling

(CID:148770549)

Reply
Share
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:10 PM

0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:10 PM

This comment was originally posted on DCIM Support by Xavier Destombes on 2019-09-17


Hello Greg,

I didn't have any Id, but digging a little more into the device tree, I was able to found it, but that is way too deep for my taste:)

ISXCDevice > ISXCNamedElement > ISXCElement > getId(), I would have expected a getId() right at the ISXCDevice object.

 

Anyway, I passed the ID and now I get to the sensor, but there is not much here, I can't seem to access its value. If I try to access the sensorData, I get com.apc.varlib.model.devices.impl.CustomSensorPodImpl cannot be cast to com.apc.varlib.model.sensors.Sensor

Could it be because it is a virtual sensor? (based on the package name, it seems like I should access it like a Device and not a Sensor anyway)

(CID:148770605)

Reply
Share
DCIM_Support
Picard DCIM_Support
Picard

Posted: ‎2020-07-05 10:10 PM

0 Likes
0
618
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
Share

Posted: ‎2020-07-05 10:10 PM

This question is closed for comments. You're welcome to start a new topic if you have further comments on this issue.

Reply
Share
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account?Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2023 Schneider Electric, Inc