From: <can...@li...> - 2011-01-18 09:13:07
|
Hi, I checked the file. I found nothing in the 301 about which number is assigned to the states. The only thing I found leaded by the comment are the numbers that are refered in the heartbeat object Which are 0 = BootUp 4 = Stopped 5 = Operational 7F = PreOp I think the state referred here are kind of internal values. You can get it but the application will be in 99 % of the time in pre Op. or Op. . Hope that is kind of answering your question? Mit freundlichen Grüßen with kind regards Christian Böpple Christian Böpple Developer ********************************************** Ringwald Mikroelektronik GmbH Seiterichstrasse 6a D-76131 Karlsruhe Tel: +49 (0)721 - 623 50 722 Fax: +49 (0)721 - 623 50 79 mailto: chr...@ri... <mailto:a.r...@ri...> http://www.ringwald.de <http://www.ringwald.deHYPERLINK> Amtsgericht Mannheim HRB 109712 Ust-ID-Nr.:DE 176636089 Geschäftsführer: Dipl. Ing. Armin Ringwald Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. This e-mail and its attachments may contain proprietary information, which is privileged, confidential, or subject to copyright. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, or the employee or agent responsible for delivering this e-mail to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or action taken in relation to the contents of and attachments to this e-mail is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original and any copy of this e-mail and any printout. Von: can...@li... [mailto:can...@li...] Gesendet: Montag, 17. Januar 2011 21:39 An: can...@li... Betreff: Re: [Canfestival-devel] Typo in states.h ? Let me up my last mail because it has not received any response since a month. I think this typo is annoying, it will bug some applications 2010/12/2 Willy Lambert <lam...@gm...> I reading states.h file I found something strange : Connecting AND Preparing states wear the value 2, is it normal ? In some can documentation I found in the Nmt section a value of 0x03 for Preparing which seems more logical to me, but i am not at all a can expert :) 00032 /* The nodes states 00033 * ----------------- 00034 * values are choosen so, that they can be sent directly 00035 * for heartbeat messages... 00036 * Must be coded on 7 bits only 00037 * */ 00038 /* Should not be modified */ 00039 enum enum_nodeState { 00040 Initialisation = 0x00, 00041 Disconnected = 0x01, 00042 Connecting = 0x02, 00043 Preparing = 0x02, 00044 Stopped = 0x04, 00045 Operational = 0x05, 00046 Pre_operational = 0x7F, 00047 Unknown_state = 0x0F 00048 }; ________________________________ eMail ist virenfrei. Von AVG überprüft - www.avg.de Version: 10.0.1191 / Virendatenbank: 1435/3387 - Ausgabedatum: 17.01.2011 |