View Single Post
  #1   Spotlight this post!  
Unread 11-12-2016, 15:45
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 298
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
List CAN devices from software?

Is it possible? I know there's some endpoint on the roboRIO's webserver that does it, but it shouldn't have to be so complicated.
There's also the library function FRC_NetworkCommunication_CANSessionMux_receiveMess age but I'm not sure how to use it. in PDP.cpp and PCM.cpp it's given an arbitration ID and kFullMessageIDMask (0x1fffffff) which appears to filter out only messages with that arbitration ID. Is there a way to instead get all messages and check the arbitration IDs to see which devices are present? Or is the only way to spam the function with all possible combinations of arbitration IDs? And will doing so disrupt normal usage of CANTalon, PowerDistributionPanel, and Compressor?
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote