obd2NET icon indicating copy to clipboard operation
obd2NET copied to clipboard

Baud Rate and RegEx

Open tgriffith42 opened this issue 8 years ago • 0 comments

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!

tgriffith42 avatar Nov 11 '17 23:11 tgriffith42