{"id":463,"date":"2009-12-21T21:23:00","date_gmt":"2009-12-21T21:23:00","guid":{"rendered":"http:\/\/3.68.38.87\/?p=463"},"modified":"2023-06-01T02:56:07","modified_gmt":"2023-06-01T02:56:07","slug":"determining-network-baud-rate","status":"publish","type":"post","link":"https:\/\/canbushack.com\/web\/determining-network-baud-rate\/","title":{"rendered":"DETERMINING NETWORK BAUD RATE"},"content":{"rendered":"\n<p>So you found a CAN BUS to reverse engineer, but you don\u2019t know it\u2019s buad rate.&nbsp; There are a couple to find it out.<\/p>\n\n\n\n<p>One. Go one-by-one through a possible list.&nbsp; CAN BUS baud rates tend to be of only certain baud rates.&nbsp; I am not positive, but this most likely has to do with the common crystal speeds used in microprocessors.&nbsp; The slower the crystal, the slower the bus speed.&nbsp; So baud rates tend to be one of the following: 33,333 bps, 50 Kbps, 83,333 bps, 100 Kbps, 125 Kbps, 250 Kbps, 500 Kbps (Most common), 800 Kpbs, and 1,000 Kbps.&nbsp; The last two being the least common as they suffer from reduce network length issues.&nbsp; You will not find a baud rate that exceeds 1,000 Kbps as this violates the CAN BUS specification.<\/p>\n\n\n\n<p>If I do not know the baud rate of the network that I wish to connect to, I will typically go through this list and hope one works.&nbsp; In some cases you may effectively decapitate the network by having the wrong baud rate set in your tool.&nbsp; So make sure you are not switching baud rates while the vehicle is in motion!&nbsp; This could cause undesired effects.<\/p>\n\n\n\n<p>Two. Use an osciliscope or logic analyzer.&nbsp; The foolproof way of measuring any serial data network such as CAN BUS is to use tool that can measure the one bit time.&nbsp; Baud rate is simply the inverse of one bit time.&nbsp; So if you can measure this, you simply take 1\/(one bit time) in seconds and you have your baud rate.<\/p>\n\n\n\n<p>The best location to find a single bit on CAN BUS is to look at the last transition.&nbsp; This is typically the ACK bit (acknowledge).&nbsp; This is where receiving nodes send back a single bit to say that they properly received the frame.&nbsp; This is always a bit by itself as the bit to the left is recessive as well as the bit to the right whereas it is dominate.&nbsp; So it will stand out and you should have little trouble finding it.&nbsp; So look to that last transition and mesure from on transition to the next and you should get something like 0.000002 seconds.&nbsp; In this case you will simply take 1\/0.000002 and you will get 500,000.&nbsp; Thus the baud rate will be 500,000 Kbps.&nbsp; Done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you found a CAN BUS to reverse engineer, but you don\u2019t know it\u2019s buad rate.&nbsp; There are a couple to find it out. One. Go one-by-one through a possible list.&nbsp; CAN BUS baud rates tend to be of only certain baud rates.&nbsp; I am not positive, but this most likely has to do with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":377,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[7],"tags":[],"class_list":["post-463","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog"],"_links":{"self":[{"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/posts\/463","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/comments?post=463"}],"version-history":[{"count":0,"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/posts\/463\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/media\/377"}],"wp:attachment":[{"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/media?parent=463"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/categories?post=463"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/canbushack.com\/web\/wp-json\/wp\/v2\/tags?post=463"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}