Show Posts
Pages: 1 2 3 [4] 5 6 ... 8
46  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: February 29, 2012, 06:03:34 am
Silly me... I do have access to my network hard drive that has the backup of my sketches...
So here it is, the currently latest version of my weather station sketch.
47  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: February 29, 2012, 04:53:59 am
OK, here is how I configured this in Cacti. It's been a while, so I hope I haven't forgotten anything.

First create a host/device for the weather station:

Most important here is the SNMP time-out and max OIDs per request. The defaults did NOT work for me. I had to increase the timeout to 1500 (1.5sec) because the Arduino takes quite a while to reply (roughly one second in my case). It also only supports one OID per request, so enter 1 in that field.

Then you need to configure one data source per value. Here is an example:

Select the host you just created and then enter the OID for that specific value.

Then you need a graph template. You can use an existing one to start with and modify it (or leave as is for the beginning)


I have also created a CDEF entry that divides all received data by 100. That is because I'm sending the temperature values from the weather station in 100th of a degree. So a returned value of 1 means 0.01 degree. That is because SNMP only knows integer numbers.
Here is the CDEF I added:


The CDEF is then applied to every item in the graph template:


Clicking on each of the items will show this screen:


Then it's time to create the actual graph:

Here everything comes together. Select the graph template that you created/want to use, select the host and then the data source.

OK, that's it. You should now get some graphs. Cacti only sends SNMP requests every 5 minutes. So give it some time to collect some data. Graphs will not appear until at least one value has been recorded.

I hope that helps a little. Just ask if you have any questions....

I will post the sketch when I get home. I have no access to that file here at work.. smiley-wink

48  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: February 29, 2012, 04:09:07 am
I think Agentuino does not support SNMP Walk. There simply isn't enough memory for that in an Arduino. So you would need to know the OIDs and configure them manually in Cacti.

I'll see if I can take a few screenshots of how I configured graphs in Cacti. I'll also post my latest sketch as soon as I get home.
49  Using Arduino / Networking, Protocols, and Devices / Re: RF1100-232 serial to RF transceiver module on: February 27, 2012, 06:21:41 am
I've tried this again yesterday and, funny enough, it just worked. The modules now respond to the config commands. I have no idea what I've done differently this time.

I'm still interested if someone has used these modules before. I'd be surprised if noone has used them. They seem to be made for the Arduino world... ;-)
I still have a few things that are not quite clear and there doesn't seem to be much documentation around.

- what is the 16 bit Module ID used for? Can this be used to address a specific transceiver instead of sending everything to all transceivers on the same channel?

- do I need to build a mechanism into the protocol that avoids accidentally sending any of the config commands in the data stream?
50  Using Arduino / Networking, Protocols, and Devices / Re: RF1100-232 serial to RF transceiver module on: February 24, 2012, 08:09:03 pm
Oh, and this is the link to the command set that I found:
http://testdrive.kgts.ru/serge/RF1100-232.doc.html
I'm sending these commands as actual bytes, not as text. (I wrote a quick C# application to do that.)
51  Using Arduino / Networking, Protocols, and Devices / Re: RF1100-232 serial to RF transceiver module on: February 24, 2012, 07:55:27 pm
The item description is still there below all those "recommended items" ;-)

But here is the relisted module:
http://www.ebay.co.uk/itm/290672109935?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649
52  Using Arduino / Networking, Protocols, and Devices / Re: Can you use bluetooth and usb at the same time? on: February 24, 2012, 07:35:58 pm
Yes, that should be possible. Have a look at the NewSoftSerial library. It allows you to have more serial ports on other Arduino pins. Use that for your Bluetooth module. The hardware serial port is hard-wired to the USB port.

Another alternative is using an Arduino Mega which, I believe, has more hardware serial ports. But I've never used a Mega myself. I've become an Arduino Mini person... ;-)
53  Using Arduino / Networking, Protocols, and Devices / RF1100-232 serial to RF transceiver module on: February 24, 2012, 07:02:18 pm
Hi,
does anyone have any experience with the RF1100-232 serial to RF transceiver modules?

I got a pair working with default settings but I would like to change some settings (faster baud rate, change the channel, ...). The ebay seller only has a Chinese datasheet but I found the commands on some Russian website. But the module doesn't respond to these commands, instead it transmits the data to the other module.

Do I need to put the module in some kind of command mode?

This is the module I'm talking about:
http://www.ebay.co.uk/itm/290636907725?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649
54  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: February 24, 2012, 04:10:32 am
Hi Spandy19,

sorry, I've not had time to reply to your PM yet. But good to see that you've made progress. ;-)

My weather station was my first ever Arduino project, so unfortunately I have not documented it well. I guess I was just glad it was working at all. I'm planning to make a schematic diagram the next time I have to take it apart. I have a half-finished diagram with the pin numbers I remembered or was able to derive from the sketch. What I can offer for now is the latest version of my sketch, if you want.

Chris
55  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: December 09, 2011, 01:03:07 pm
OK, here you go. Watchdog circuit attached.

Any questions - just ask. ;-)
56  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: December 09, 2011, 11:47:38 am
OK, will post the circuit when I get home (still at work now).

I'm glad my code helped you... ;-)
57  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: December 09, 2011, 09:22:19 am
Quote
1. The device does not respond if I connect the power (wall wart or usb).  Only after pressing reset does everything start working.

Yes, I noticed that too. It seems the Ethernet shield doesn't bring the link up on first power on, only after a reset. No idea if there is a way to fix that. I would be rather interested in a solution to this.

Quote
2. After a few hours the device hangs up and the SNMP stops responding.  I can still ping the device but no SNMP until I do a reset.

This sounds like the issue I was describing in my previous post. There seems to be a non-SNMP packet stuck in the buffer that gets processed over and over again. Still looking for a solution but I have a workaround using a watchdog timer (see below).

Quote
By comparing the first Weather Station code that I found initially in a previous post and the code in the post above I saw that you added a watchdog timer to the setup routine.  I don't know what a watchdog timer is but I added it and will be testing for stability.  Any tips would be greatly appreciated.

That relates to a hardware watchdog timer I built. It's based on a NE555 timer (but of course! smiley-grin ). It triggers a reset pulse if it did not get a timer pulse for 3 seconds. Let me know if you want the circuit diagram. In the loop() function I pulse the watchdog timer input once every loop if bool reset is false. Then, when a non-SNMP packet is received, I set bool reset to true. This causes the loop not to pulse the watchdog and 3 seconds later the Arduino resets. Bit of a dirty workaround but it works for now.

Quote
Also, I noticed that this line is commented out //    Agentuino.responsePdu(&pdu);

I take it that is the line in the SNMP function that handles non-SNMP packets? I did put that in at some point hoping that replying to the non-SNMP packet would get it out of the buffer. It didn't work, so I commented it out (but leaving it there, just in case).

Quote
Have had any luck troubleshooting your issues?

Nothing more that what is mentioned above. Too many other projects going on at the moment. The weather station works as it is now, so finding better fixes has low priority. ;-)

Quote
The Agentuino library seems to be such a useful tool if it could be polished just a little more.  I wonder if anyone would work on it for a bounty?

Agreed. Though I'm not sure whether the issues are in the Agentuino library or the underlying Ethernet and UDP libraries.. I wonder if LAVco is still working on it?

58  Using Arduino / Project Guidance / Re: Serial Communication and Interrupts on: November 24, 2011, 12:58:57 pm
Thanks a lot, that clears it up... ;-)
59  Using Arduino / Project Guidance / Re: Serial Communication and Interrupts on: November 24, 2011, 10:39:12 am
Quote
I wanted to know if triggering an interrupt on either end would potentially pose a threat to packet integrity.
No. During sending of a character, interrupts are disabled, so that all bits are send together. The are enabled again until the next character needs to be sent. Your interrupt can only fire when interrupts are enabled. It will cause serial data sending to be on hold while your interrupt does it's thing, so you need to make it quick.

Interesting. Does this apply to the hardware serial port only or also to software serial ports (e.g. NewSoftSerial)?
While sending a byte, does the interrupt get lost or does the ISR automatically get called once the byte has been sent?
60  Development / Other Software Development / Re: Agentuino - A lightweight SNMP Agent on: November 20, 2011, 08:02:36 am
Hmmm, nobody? I was hoping LAVco would read this... ;-)
Pages: 1 2 3 [4] 5 6 ... 8