During some down time I’ve decided to revisit the Arduino CDP sniffer and add extra features. This will be a running post and will be updated periodically.
As mentioned in the comments of the other post I will be looking at adding LLDP support and an export feature to a mobile/laptop.
The export or “history” addition will allow a log to be saved to an external device as easy as possible. As a prototype, it’s had an ESP8266 added to it with a web server running showing modified serial output.
Initial results work, but I’m again getting plagued with power issues from the ESP8266’s. Getting those 3.3v and enough amps into the original container will be problematic.
The benefit of this is it’s exported as text for future use.
LLDP is an active work in progress, and should be finished soon.
WIFI was a good idea and may be revisited later. Instead I’ve replaced it with what should have been thought of a while ago. I’ve redesigned the case to integrate the bluetooth to serial converter (HC-06 with dual DB9’s). When connected to the bluetooth, its as simple as flicking a switch to go from the external DB9 port to the output of the screen (as show above) and back again.
I’ve tested the LLDP code against a Dell 3548 with all TLV options enabled. It doesn’t show the VLAN number but the rest of the information could be scraped:
While it doesn’t fully support the standard it does provide enough information to find what is on the other end of a cable and how it’s configured – enough to satisfy a field test.
The current space usage on the Arduino Mini Pro is at about 52% and the LCD can fit about 4 more lines of text, so more support can be added. The next step will be to decode the enabled capibilites, port description, chassis subtype and MAC/PHY Configuration/Status.
- CDP: Added Voice VLAN and Capabilities. No further features of CDP will be added
- LLDP: Added Capabilities. Without a production environment to test on, there will most likely be no further additions.
**NOTE: The RST pin on the LCD has been changed to pin 9, and a new wiring diagram will be created soon to reflect the Bluetooth changes.
Circuit has been updated to add it’s own charging circuit, including the battery level displayed on the screen. It’s still in Beta at the moment, as the battery levels stick at 98% even when charging, and after extensive use.
- Added LLDP VLAN ID and Voice VLAN ID.
- Uploaded the project code to github for better version control: https://github.com/ModLogNet/CDP-LLDP-with-arduino
- Cheers Colin for your assistance.
- If your testing the LLDP portion and some fields aren’t displayed, **PLEASE** Check which LLDP-Med TLV’s enabled on the switch/router and confirm what information is being displayed with Wireshark before posting comments.
- NOTE: Due to memory constraints on the Arduino mini pro – Capabilities are disabled, and the battery status is still in Beta.
New case to accommodate battery and charge circuit:
1 switch is for power, the other defines what is output through Bluetooth (screen or Serial port).