Go to Post I have always gotten the answers I need. They're just not always the answers I want... - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #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: 296
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
  #2   Spotlight this post!  
Unread 11-12-2016, 16:26
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 515
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: List CAN devices from software?

This sounds like what you are asking for...
https://www.chiefdelphi.com/forums/s...5&postcount=10
... although it's not clear what your goal is. It's not typical to have a robot that needs to determine on-the-fly what' s plugged in. More info might yield a better solution.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:49.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi