Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SNMP Driver
#11
Yeah, download iReasonings MIB Browser and see what you get there. Just type .1 in the top right field and select Get Subtree and it will dump all the possible OIDs for your switch (or error out).

The syntax looks good to me, if you crank up logging to high you'll get more info on why the GETs are failing. Or you can turn on DebugMode in the driver by setting SNMP_DebugMode to true for a couple of polling cycles then turn it off. This will generate a log file to your \MacroFileRoot\SNMP directory with extensive info about what is going on. Basically the same info you would get in the test harness debugging console.

The trap setup isn't needed unless you plan to configure traps for the driver as well. Traps are asynchronous, they will send events to the driver you can capture. You don't need a trap configuration to get the info you are trying to poll. It doesn't hurt to leave it setup.

If it is like my UPS you can configure 0.0.0.0 for the NMS IP Access which will allow any ip to send SNMP requests. And make sure SNMP is enabled as well. There is a separate screen on my UPS to turn it on, besides the access control screen. You do not need community 3 and 4 but it doesn't hurt having them configured.
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply
#12
I stuffed up with an image above. The first one has been updated to the correct image showing the MIB browser, so yes the SNMP is working.

From the log file the gets are failing on a timeout. I'll post that tonight.

I would assume that because the MIB browser is working that the default port for SNMP is being used. Can a get be used on a different port?

I am glad to see that I am not the only one having problems with a MS.

Once again, excellent driver and well done on the documentation, that is first class.

Mick
Reply
#13
znelbok Wrote:I would assume that because the MIB browser is working that the default port for SNMP is being used. Can a get be used on a different port?

If you didn't change any settings in the MIB Browser then it is using the default port(161) and community(public). Unfortunately in SNMP land a timeout can be caused by a lot of things. Sometimes for security reasons a device won't tell you why it failed, it'll just drop the request and let it timeout. Could be an invalid/unsupported OID, invalid community string, wrong SNMP version, etc.

If you can, get me the DebugMode output file. If that doesn't tell us you may have to take a trace with wireshark of the mib browser working and the driver not.

One more thing to try is in the MIB Browser click Advanced and set the version to SNMPv2. Then do another Get and see if it responds. Maybe it doesn't like SNMPv2.
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply
#14
The master switch is pretty old so it may not support V2.

Mick
Reply
#15
The MIB browser failed when set to V2. SO it would seem that the MAster switch only supports V1.

Is that a show stopper for us.
Reply
#16
I will need to modify the driver to allow you the option to force V1. Shouldn't be too hard.

This is the first device I have heard of that didn't support V2 at all. V2 was published in 1996, so it is pretty old. Usually if they don't want to support V2 they'll just reply with V1 which the driver can already handle.
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply
#17
This is the same device that also returns an HTML error (and no page) if yoiu hit it with IE7. It's pretty old technology, which made it appealingly cheap.
Reply
#18
WOW!

I was looking at this thinking "There is no way I have the technical skills to create an XML file to do this." Then I looked at your documentation. It is easy to read, very detailed, and looks like almost any dummy might be able to pull this off.

So thank you. Thank you for the driver, but a bigger thank you for the full documentation!

I'm going to play around with this and see what I can screw up ;-)
Brian

"Really dear, it was too good of a deal to pass up. Besides, look at what it does now...."
I think my wife is getting a little tired of hearing this :-)
Reply
#19
I need help with a boolean.

There are two states, on and off, represented by a 1 and 2 respectively (Integer).

Can I translate a 1 and 2 into 1 and 0 so that it is a boolean.

Mick
Reply
#20
SNMP Booleans are 1 based by default. 1=True 2=False. So what you are seeing is normal for SNMP.

If you set the CQCType (i.e. the field type) to Boolean the driver should convert it automatically to True/False. For Booleans the driver will convert integers 1=True and any other value=False. So 1 is always True, 0=False, 2=False, etc.

Or if you really have your heart set on getting 0,1 values as an integer, you can just XLAT it. <XLAT>0,2</XLAT> Which will convert any value of 2 to 0 and leave all other values (i.e. 1) alone.
Wuench
My Home Theater/Automation Website

[THREAD=5957]BlueGlass CQC Config[/THREAD]
[THREAD=10624]Wuench's CQC Drivers[/THREAD]
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Koyo Click PLC Driver rbroders 71 26,490 Yesterday, 10:57 AM
Last Post: rbroders
  Carrier Infinity HVAC Driver beelzerob 34 12,192 09-07-2018, 01:15 PM
Last Post: lleo
  Amazon Echo Hue Simulator Driver wuench 113 35,379 09-02-2018, 07:24 AM
Last Post: TurboSam
  Sony TV IP driver dogman 10 620 08-01-2018, 03:53 PM
Last Post: znelbok
  Generic Modbus Driver - Serial & IP znelbok 24 10,829 07-20-2018, 01:21 PM
Last Post: znelbok
  Sony Bravia TV Driver znelbok 12 1,592 06-11-2018, 09:19 AM
Last Post: Dean Roddey
  XBMC Driver wuench 427 153,065 05-29-2018, 03:02 AM
Last Post: znelbok
  OpenHAB Driver whozeawhat 5 678 05-28-2018, 08:50 AM
Last Post: whozeawhat
  Pushbullet Driver whozeawhat 1 405 05-13-2018, 07:27 AM
Last Post: whozeawhat
  Monoprice Blackbird 4x4 HDMI Switcher - Driver request batwater 14 7,875 02-10-2018, 02:29 PM
Last Post: batwater

Forum Jump:


Users browsing this thread: 1 Guest(s)