{"id":38728,"date":"2019-10-31T22:25:33","date_gmt":"2019-10-31T19:25:33","guid":{"rendered":"https:\/\/prohoster.info\/blog\/poddelnye-ds18b20-waterproof-chto-delat\/"},"modified":"2019-10-31T22:25:33","modified_gmt":"2019-10-31T19:25:33","slug":"poddelnye-ds18b20-waterproof-chto-delat","status":"publish","type":"post","link":"https:\/\/prohoster.info\/en\/blog\/news\/poddelnye-ds18b20-waterproof-chto-delat","title":{"rendered":"Fake DS18B20 waterproof: what to do?","gt_translate_keys":[{"key":"rendered","format":"text"}]},"content":{"rendered":"<p>Good day! This article addresses the issue of counterfeit sensors, the limitations of existing devices using these sensors, and a solution to this problem.<\/p>\n<p><img decoding=\"async\" alt=\"Fake DS18B20 waterproof: what to do?\" src=\"\/wp-content\/uploads\/2019\/10\/95c0563edf85034ffc7cbd37e64a7f06.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<i>Source: ali-trends.ru<\/i><\/p>\n<p>There have been previous writings about counterfeit sensors before me, <noindex><a rel=\"nofollow\" href=\"https:\/\/www.drive2.ru\/b\/513061538530066675\">here<\/a><\/noindex>. Distinctive differences between counterfeit sensors and originals include:<\/p>\n<ol>\n<li>The sensor, even when connected in close proximity, responds hesitantly in parasitic power mode, intermittently.<\/li>\n<li>In parasitic power mode, the high level is restored too slowly (can be measured with a microcontroller or can be seen on an oscilloscope).<\/li>\n<li>Current consumption is significantly higher than a few microamperes (GND and VCC are negative, DQ is connected through a microammeter to +5 volts).<\/li>\n<li>After the enumeration procedure (0xF0), sensors do not respond to the read scratchpad command (0xBE).<\/li>\n<li>The temperature read from the scratchpad after power is supplied without a measurement command differs from 85.0 degrees.<\/li>\n<li>Values in the scratchpad at positions 5 and 7 do not correspond to 0xFF and 0x10.<\/li>\n<li>Temperature values (at the first two positions of the scratchpad) read after the first power-up of the depowered sensor without a prior measurement command return the previous value instead of 50 05 (85.0 degrees).<\/li>\n<\/ol>\n<p>\n<noindex><a rel=\"nofollow\" name=\"habracut\"><\/a><\/noindex><br \/>\nUnfortunately, I do not have an oscilloscope, and the testing platform was the GPS tracker Galileosky BaseBlock Lite. <\/p>\n<p>The sensors were purchased from various sellers, and only one batch worked with parasitic power. A total of 5 batches of 50 units were purchased.<br \/>\nThe others did not work with parasitic power at all. The terminal does not provide for external power for the sensor, and the system installation in the car needs to be simplified as much as possible.<\/p>\n<h2>Troubleshooting<\/h2>\n<p>\nSo, the sensors were purchased, but only one batch worked correctly, and investigating and ordering a new batch would take considerable time and lead to additional expenses. Therefore, the problem had to be solved on my own.<\/p>\n<p>Since only a two-wire scheme is used, it is necessary to organize power to the sensor from the signal wire, that is, to establish parasitic power. I organized parasitic power according to the following diagram:<\/p>\n<p><img decoding=\"async\" alt=\"Fake DS18B20 waterproof: what to do?\" src=\"\/wp-content\/uploads\/2019\/10\/b2fe4be94f00c7f02d90805aad68d210.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\nIn this design, the operation of parasitic power supply has been improved, while still allowing for the option to connect external power. At the same time, the connection scheme changes slightly: when using parasitic power supply, the Vcc wire connection is modified. <u>not used<\/u>.<\/p>\n<p>After assembling the circuit using a through-hole mounting process, the sensor was detected by the terminal with a capacitor value of 1 \u00b5F. For mass deployment, panelized boards with parasitic power supply boards were designed and ordered.<\/p>\n<p><img decoding=\"async\" alt=\"Fake DS18B20 waterproof: what to do?\" src=\"\/wp-content\/uploads\/2019\/10\/3eee64500ffa0cf649eacd8577508c8e.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<br \/>\n<b>An interesting point is:<\/b> To seal the sensor, manufacturers might use thermal glue or silicone. In the first case, the sleeve can be heated, the sensor removed, the board inserted, returned to the sleeve, and filled with more thermal glue. In the second case, this won\u2019t work, and the board had to be soldered close to the sensor, filled with thermal glue, and heat-shrink tubing applied, resulting in this appearance:<\/p>\n<p><img decoding=\"async\" alt=\"Fake DS18B20 waterproof: what to do?\" src=\"\/wp-content\/uploads\/2019\/10\/0845ee45145631eaf63e74f2ae91601d.jpg\" style=\"display:block;margin: 0 auto;\" \/><br \/>\n<\/p>\n<h2>Conclusion<\/h2>\n<p>\nHere, I would like to urge device manufacturers to consider this aspect in their products, sellers to check sensors before selling, or have no dealings with suppliers who provide counterfeit sensors, and users to shed light on this issue in comments, emails, or inquiries.<br \/>\n<br \/>Source: <a content=\"nofollow\" rel=\"nofollow\" href=\"https:\/\/habr.com\/ru\/post\/470217\/\">habr.com<\/a><\/p>","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"excerpt":{"rendered":"<p>\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a! \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043f\u043e\u0434\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u044d\u0442\u0438 \u0434\u0430\u0442\u0447\u0438\u043a\u0438 \u0438 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b. \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: ali-trends.ru \u0414\u043e \u043c\u0435\u043d\u044f \u043e \u043f\u043e\u0434\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u0430\u0445 \u043f\u0438\u0441\u0430\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u0438 \u0437\u0434\u0435\u0441\u044c. \u0425\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u043d\u044b\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u044f \u043f\u043e\u0434\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 \u043e\u0442 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b\u0430: \u0414\u0430\u0442\u0447\u0438\u043a, \u0434\u0430\u0436\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u0432 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0431\u043b\u0438\u0437\u043e\u0441\u0442\u0438, \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u0430\u0440\u0430\u0437\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u043d\u0435\u0443\u0432\u0435\u0440\u0435\u043d\u043d\u043e, \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u0430\u0440\u0430\u0437\u0438\u0442\u043d\u043e\u0433\u043e \u043f\u0438\u0442\u0430\u043d\u0438\u044f [&hellip;]<\/p>\n","protected":false,"gt_translate_keys":[{"key":"rendered","format":"html"}]},"author":1,"featured_media":29052,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[702],"tags":[],"class_list":["post-38728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.2 - aioseo.com -->\n\t<meta name=\"description\" content=\"\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a!\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Yuri Gagarin\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/prohoster.info\/en\/blog\/news\/poddelnye-ds18b20-waterproof-chto-delat\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.2\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"\ud83e\udd47\u041f\u043e\u0434\u0434\u0435\u043b\u044c\u043d\u044b\u0435 DS18B20 waterproof: \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c? | ProHoster\" \/>\n\t\t<meta property=\"og:description\" content=\"\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a!\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/prohoster.info\/en\/blog\/news\/poddelnye-ds18b20-waterproof-chto-delat\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"350\" \/>\n\t\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2019-10-31T19:25:33+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2019-10-31T19:25:33+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/prohoster\" \/>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"\ud83e\udd47Counterfeit DS18B20 waterproof: what to do? | ProHoster","description":"Good day!","canonical_url":"https:\/\/prohoster.info\/en\/blog\/news\/poddelnye-ds18b20-waterproof-chto-delat","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":null,"og:locale":"en_US","og:site_name":"ProHoster | \u041a\u0443\u043f\u0438\u0442\u044c \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0445\u043e\u0441\u0442\u0438\u043d\u0433 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u043e\u0432 \u0441 \u0437\u0430\u0449\u0438\u0442\u043e\u0439 \u043e\u0442 DDoS, VPS VDS \u0441\u0435\u0440\u0432\u0435\u0440\u044b","og:type":"article","og:title":"\ud83e\udd47\u041f\u043e\u0434\u0434\u0435\u043b\u044c\u043d\u044b\u0435 DS18B20 waterproof: \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c? | ProHoster","og:description":"\u0414\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a!","og:url":"https:\/\/prohoster.info\/en\/blog\/news\/poddelnye-ds18b20-waterproof-chto-delat","og:image":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:secure_url":"https:\/\/prohoster.info\/wp-content\/uploads\/2021\/11\/logo-350.jpg","og:image:width":350,"og:image:height":350,"article:published_time":"2019-10-31T19:25:33+00:00","article:modified_time":"2019-10-31T19:25:33+00:00","article:publisher":"https:\/\/www.facebook.com\/prohoster","article:author":"https:\/\/www.facebook.com\/prohoster"},"aioseo_meta_data":{"post_id":"38728","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"seo_analyzer_scan_date":"2026-01-23 23:11:21","breadcrumb_settings":null,"limit_modified_date":false,"reviewed_by":null,"ai":null,"created":"2021-03-01 01:04:30","updated":"2026-01-23 23:11:21","focus_keyword":null,"additional_keywords":null,"truseo_locale":null},"gt_translate_keys":[{"key":"link","format":"url"}],"_links":{"self":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/38728","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/comments?post=38728"}],"version-history":[{"count":0,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/posts\/38728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media\/29052"}],"wp:attachment":[{"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/media?parent=38728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/categories?post=38728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prohoster.info\/en\/wp-json\/wp\/v2\/tags?post=38728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}