obd2NET
obd2NET copied to clipboard
Baud Rate and RegEx
Thanks so much for posting the code! Seems to work fine. To get it to work with my device, simply had to change BaudRate from default of 9600 to what my device uses: 38400. Also, had to slightly change the RegEx in ControllerResponse... change the \n to \r. your code: Match matchedPattern = Regex.Match(Raw, @"\n([0-9a-fA-F ]{5})([0-9a-fA-F ]+)\r\n>"); my code: Match matchedPattern = Regex.Match(Raw, @"\r([0-9a-fA-F ]{5})([0-9a-fA-F ]+)\r\r>"); Thanks again!