| Electronic Components Datasheet Search |
|
ELM329LP Datasheet(PDF) 20 Page - ELM Electronics |
|
|
|||||||||||||||||||||||||||||
ELM329LP Datasheet(HTML) 20 Page - ELM Electronics |
|
20 / 87 page ![]() 20 of 87 ELM329L ELM329L DSA Elm Electronics – Circuits for the Hobbyist www.elmelectronics.com AT Command Descriptions (continued) even after the power is turned off. This can be convenient if the IC is often used for one particular protocol, as that will be the first one attempted when next powered on. To enable this memory function, it is necessary to either use an AT command to select the M1 option, or to have chosen ‘memory on’ as the default power on mode (by connecting pin 5 of the ELM329 to a high logic level). When the memory function is enabled, each time that the ELM329 finds a valid OBD protocol, that protocol will be memorized (stored) and will become the new default. If the memory function is not enabled, protocols found during a session will not be memorized, and the ELM329 will always start at power up using the same (last saved) protocol. If the ELM329 is to be used in an environment where the protocol is constantly changing, it would likely be best to turn the memory function off, and issue an AT SP 0 command once. The SP 0 command tells the ELM329 to start in an 'Automatic' protocol search mode, which is the most useful for an unknown environment. ICs come from the factory set to this mode. If, however, you have only one vehicle that you regularly connect to, storing that vehicle’s protocol as the default would make the most sense. The default setting for the memory function is determined by the voltage level at pin 5 during power up (or system reset). If it is connected to a high level (VDD), then the memory function will be on by default. If pin 5 is connected to a low level, the memory saving will be off by default. MA [ Monitor All messages ] This command places the ELM329 into a bus monitoring mode, in which it continually monitors for (and displays) all messages that it sees on the OBD bus. It is a quiet monitor, not sending Acknowledge bits or Wakeup (CAN periodic) messages. Monitoring will continue until it is stopped by activity on the RS232 input, or the RTS pin. To stop the monitoring, simply send any single character to the ELM329, then wait for it to respond with a prompt character (‘>’), or a low level output on the Busy pin. (Setting the RTS input to a low level will interrupt the device as well.) Waiting for the prompt is necessary as the response time varies depending on what the IC was doing when it was interrupted. If for instance it is in the middle of printing a line, it will first complete that line then return to the command state, issuing the prompt character. If it were simply waiting for input, it would return immediately. Note that the character which stops the monitoring will always be discarded, and will not affect subsequent commands. All messages that are received by the ELM329 will be printed as found, even if the CAN auto formatting is on. Normally, the automatic formatting will clean up what is displayed, hiding errors, improperly formatted messages, etc. but when monitoring, you will see all messages that pass through the receive filter, and the error messages. If the filter and/or mask are set (with the CF, CM or CRA commands) before sending AT MA, then the data displayed will be restricted to only those messages that meet the criteria. This is normally desired, but occasionally brings unexpected results when users are not aware. If you truly want to see all data, then you may want to be sure there is no filtering of data (send AT CRA before the AT MA). The MA monitoring command operates by closing the current protocol (an AT PC is executed internally), then configuring the IC for silent monitoring of the data (no wakeup messages, or acknowledges are sent by the ELM329). When the next OBD command is to be transmitted, the protocol will again be initialized, and you may see messages stating this. ‘SEARCHING...’ may also be seen, depending on what changes were made while monitoring. MP hhhh [ Monitor for PGN hhhh ] The AT MA command is quite useful for when you wish to monitor for a specific byte in the header of an OBD message. For the SAE J1939 Protocol, however, it is often desirable to monitor for the multi-byte Parameter Group Numbers (or PGNs), which can appear in either the header, or the data bytes. The MP command is a special J1939 only command that is used to look for responses to a particular PGN request. Note that this MP command lets you set four of the six PGN digits, but provides no means to set the first two digits, so they are always assumed to be 00. For example, the DM2 PGN has an assigned value of 00FECB (see SAE J1939-73). To monitor for DM2 messages, you would issue AT MP FECB, eliminating the 00, since the MP hhhh command always assumes that the PGN is preceded by two zeros. This command is only available when a protocol has been selected for SAE J1939 formatting. It returns |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |