{"id":7317,"date":"2020-09-23T07:41:52","date_gmt":"2020-09-23T07:41:52","guid":{"rendered":"https:\/\/www.rtscan.net\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/"},"modified":"2025-05-27T12:19:13","modified_gmt":"2025-05-27T12:19:13","slug":"embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/","title":{"rendered":"Esc\u00e1ner de c\u00f3digo de barras integrado para Raspberry Pi: Utiliza esc\u00e1neres de c\u00f3digos de barras integrados con Raspberry Pi"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"7317\" class=\"elementor elementor-7317 elementor-6844\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-66d843c1 elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"66d843c1\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;,&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-3c7bc7f0\" data-id=\"3c7bc7f0\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-454c6cf1 elementor-hidden-tablet elementor-hidden-mobile elementor-widget elementor-widget-spacer\" data-id=\"454c6cf1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-67d7149 elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"67d7149\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-151b2425\" data-id=\"151b2425\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-26432d32 elementor-widget elementor-widget-heading\" data-id=\"26432d32\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Embedded barcode scanner for Raspberry Pi: Use embedded barcode scanners with Raspberry Pi<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5a34d09a elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"5a34d09a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ab025fb elementor-widget elementor-widget-text-editor\" data-id=\"3ab025fb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><\/p>\n<p>If you are using Raspberry Pi microcontroller \/ single-board computer to develop your system, and at the same time, you need a 1d\/ 2d embedded barcode scanner to work with it, then this article would be helpful for you:<\/p>\n<p><\/p>\n<p><\/p>\n<p>Here we introduce how we connect the Raspberry Pi 3 Model B+ micro-controller with RTscan embedded barcode scanner and how to make them work with each other.<\/p>\n<p><\/p>\n<p><\/p>\n<p>When we try to integrate an embedded barcode scanner with the Raspberry Pi microcontroller board, but we would meet these problems:<\/p>\n<p><\/p>\n<p><\/p>\n<ol>\n<li>How can we connect the embedded barcode scanner with the Raspberry Pi board together?<\/li>\n<li>When we choose an embedded barcode scanner, how can we control the barcode scanner by Raspberry Pi, meanwhile, how to upload decoded data to the Raspberry Pi system?<\/li>\n<\/ol>\n<p><\/p>\n<p><\/p>\n<p>Read below and find how RTscan provides solutions for above questions.<\/p>\n<p><\/p>\n<p><\/p>\n<h2 class=\"has-text-align-center\">Contents<\/h2>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-group\">\n<p><\/p>\n<pre class=\"wp-block-preformatted\">\u00a0<\/pre>\n<p><\/p>\n<p><\/p>\n<p class=\"has-text-align-left\"><strong>Part I:<\/strong>\u00a0Introduction of Raspberry Pi 3 model B+ and RTscan embedded barcode scanner<\/p>\n<p><\/p>\n<p><\/p>\n<p class=\"has-text-align-left\"><strong>Part II:<\/strong>\u00a0Connection solutions<\/p>\n<p><\/p>\n<p><\/p>\n<ul>\n<li><span style=\"color: #3366ff;\">Solution 1: Connect via Dupont interface<\/span><\/li>\n<li><span style=\"color: #3366ff;\">Solution 2: Connect via USB interface<\/span><\/li>\n<\/ul>\n<p><\/p>\n<p><\/p>\n<p><strong>Part III:<\/strong>\u00a0Python Sample code\/ Make the embedded barcode scanner work with Raspberry Pi system:<\/p>\n<p><\/p>\n<p><\/p>\n<ul>\n<li><span style=\"color: #3366ff;\">TTL-232 Communication&amp; Python Sample code<\/span><\/li>\n<li><span style=\"color: #3366ff;\">USB CDC Communication<\/span><\/li>\n<li><span style=\"color: #3366ff;\">USB-HID<\/span><\/li>\n<\/ul>\n<p><\/p>\n<p><\/p>\n<p><strong>Part VI:<\/strong>\u00a0Video Demo<\/p>\n<p><\/p>\n<\/div>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-buttons is-content-justification-center\">\n<p><\/p>\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background\" style=\"border-radius: 6px;\" href=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/\" target=\"_blank\" rel=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/ noopener\">Request more info-&gt;<\/a><\/div>\n<p><\/p>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<h2><strong>Part I: Introduction of Raspberry Pi 3 model B+ and RTscan embedded barcode scanners<\/strong><\/h2>\n<p><\/p>\n<p><\/p>\n<p><strong>Raspberry Pi 3B+:<\/strong><\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img fetchpriority=\"high\" decoding=\"async\" width=\"504\" height=\"305\" class=\"wp-image-4359\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1343.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1343.jpg 504w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1343-200x121.jpg 200w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>Raspberry Pi 3 Model B is the latest iteration of the most popular single-board computer. It provides a quad-core 64-bit ARM Cortex-A53 CPU running at 1.2GHz, four USB 2.0 ports, wired and wireless networking, HDMI and composite video output, and a 40-pin GPIO connector for physical interfacing projects.<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>Raspberry Pi 3 Pinout<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"503\" height=\"612\" class=\"wp-image-4352\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1345.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1345.jpg 503w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1345-123x150.jpg 123w\" sizes=\"(max-width: 503px) 100vw, 503px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>And for our application to connect with embedded barcode scanners, we need the 3.3V (or the 5.0v) power supply pin, and GND pin, RXD, TXD pins.<\/p>\n<p><\/p>\n<p><\/p>\n<p>And also, we will demo how to connect our embedded barcode scanners: with raspberry Pi via USB interface.<\/p>\n<p><\/p>\n<p><\/p>\n<h3><strong>RTscan embedded barcode scanners:<\/strong><\/h3>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" class=\"aligncenter wp-image-10208 size-full\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/raspberry-barcode-scanner.jpg\" alt=\"\" width=\"737\" height=\"527\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/raspberry-barcode-scanner.jpg 737w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/raspberry-barcode-scanner-540x386.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/raspberry-barcode-scanner-200x143.jpg 200w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/raspberry-barcode-scanner-600x429.jpg 600w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>In this article, we just choose RT870 as an example to do the connection and integration, all the above listed models like RT830C, RT234 and RT231 etc are also ideal for connection with Raspberry Pi for different applications.<\/p>\n<p><\/p>\n<p><\/p>\n<p>RT870 has RJ45 and micro USB output.<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"386\" class=\"wp-image-6853\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-RT870-for-Raspberry-Pi.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-RT870-for-Raspberry-Pi.jpg 563w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-RT870-for-Raspberry-Pi-540x370.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-RT870-for-Raspberry-Pi-200x137.jpg 200w\" sizes=\"(max-width: 563px) 100vw, 563px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-buttons is-content-justification-center\">\n<p><\/p>\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background\" style=\"border-radius: 6px;\" href=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/\" target=\"_blank\" rel=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/ noopener\">Request more info-&gt;<\/a><\/div>\n<p><\/p>\n<\/div>\n<p><\/p>\n<p><\/p>\n<h2><strong>Part II: Connection solutions:<\/strong><\/h2>\n<p><\/p>\n<p><\/p>\n<p>RTscan provides two types of solutions:<\/p>\n<p><\/p>\n<p><\/p>\n<ul>\n<li><strong>Solution1: Dupont interface<\/strong>\u00a0<\/li>\n<\/ul>\n<p><\/p>\n<p><\/p>\n<p>RTscan provides the following DuPont interface to connect the embedded barcode scanner with Raspberry Pi:<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8132 size-large\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-720x720.jpg\" alt=\"\" width=\"720\" height=\"720\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-720x720.jpg 720w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-300x300.jpg 300w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-100x100.jpg 100w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-600x600.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-768x768.jpg 768w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1-45x45.jpg 45w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RTscan-dupont-interface-for-Raspberry-Pi2711-1.jpg 1000w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image is-style-default\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8153 size-large\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-720x720.jpg\" alt=\"\" width=\"720\" height=\"720\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-720x720.jpg 720w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-300x300.jpg 300w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-100x100.jpg 100w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-600x600.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-768x768.jpg 768w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1-45x45.jpg 45w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-Dupont-1.jpg 1000w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>This is a simple solution, just connect the 5.0V power supply (the EVK needs 5.0v power supply), GND, RX, and TX pins.<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"83\" height=\"76\" class=\"wp-image-6859\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/interface-rt870.jpg\" alt=\"\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p class=\"has-text-align-center\">RT870 RJ45 Pinout<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"365\" class=\"wp-image-6863\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/PINOUT-of-RT870-Embedded-barcode-scanner-.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/PINOUT-of-RT870-Embedded-barcode-scanner-.jpg 692w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/PINOUT-of-RT870-Embedded-barcode-scanner--600x316.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/PINOUT-of-RT870-Embedded-barcode-scanner--540x285.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/PINOUT-of-RT870-Embedded-barcode-scanner--200x105.jpg 200w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>PIN Connection:<\/p>\n<p><\/p>\n<p><\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td>RT870<\/td>\n<td>Raspberry Pi 3B+<\/td>\n<\/tr>\n<tr>\n<td>Pin4\u00a0VDD<\/td>\n<td>5V\uff08Pin2 \/ Pin4\uff09<\/td>\n<\/tr>\n<tr>\n<td>Pin8\u00a0GND<\/td>\n<td>GND\uff08Pin6\uff09<\/td>\n<\/tr>\n<tr>\n<td>Pin6\u00a0RX<\/td>\n<td>Tx\uff08Pin8\uff09<\/td>\n<\/tr>\n<tr>\n<td>Pin7\u00a0TX<\/td>\n<td>Rx\uff08Pin10\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><\/p>\n<p><\/p>\n<h3>Solution 2: Connect via USB interface<\/h3>\n<p><\/p>\n<p><\/p>\n<p>For Raspberry Pi, if you prefer to connect the embedded barcode scanner via USB interface, it also is fine, setup RTscan\u2019s barcode scanner to HID mode (work directly) or USB CDC\/Virtual Com mode (follow Part III\/USB CDC communication).<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8155 size-large\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-720x720.jpg\" alt=\"\" width=\"720\" height=\"720\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-720x720.jpg 720w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-300x300.jpg 300w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-100x100.jpg 100w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-600x600.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-768x768.jpg 768w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-45x45.jpg 45w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1.jpg 1000w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-buttons is-content-justification-center\">\n<p><\/p>\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background\" style=\"border-radius: 6px;\" href=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/\" target=\"_blank\" rel=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/ noopener\">Request more info-&gt;<\/a><\/div>\n<p><\/p>\n<\/div>\n<p><\/p>\n<p><\/p>\n<h2><strong>Part III:\u00a0Python Sample code\/ Make the embedded barcode scanner work with Raspberry Pi system:<\/strong><\/h2>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"692\" height=\"493\" class=\"wp-image-4358\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner-RT203.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner-RT203.jpg 692w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner-RT203-600x427.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner-RT203-200x142.jpg 200w\" sizes=\"(max-width: 692px) 100vw, 692px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>We developed Python sample code to work with our scanners so that you can copy our source codes and program your system very quickly and no need to write the whole code one by one; save your time and speed up your integration work!<\/p>\n<p><\/p>\n<p><\/p>\n<p><em>In this article, we choose the RT870 as an example to do the programming. Below we show how they work together when they connect via TTL-232, USB-CDC, and USB-HID.<\/em><\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<h3><strong>TTL-232 Communication&amp;\u00a0Python\u00a0Sample Code<\/strong><\/h3>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<h4><strong>Step 1: Hardware connection<\/strong><\/h4>\n<p><\/p>\n<p><\/p>\n<p>Connect the 5.0v power supply pin, and GND pin, RXD, TXD pins via Dupont cable.<\/p>\n<p><\/p>\n<p><\/p>\n<figure class=\"wp-block-table\">\n<table>\n<tbody>\n<tr>\n<td>Raspberry<\/td>\n<td>RT870<\/td>\n<\/tr>\n<tr>\n<td>TX(GPIO14)(PIN8)<\/td>\n<td>RX<\/td>\n<\/tr>\n<tr>\n<td>RX(GPIO15)(PIN10)<\/td>\n<td>TX<\/td>\n<\/tr>\n<tr>\n<td>5V<\/td>\n<td>POWER<\/td>\n<\/tr>\n<tr>\n<td>GND<\/td>\n<td>GROUND<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8157 size-large\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-720x720.jpg\" alt=\"\" width=\"720\" height=\"720\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-720x720.jpg 720w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-300x300.jpg 300w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-100x100.jpg 100w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-600x600.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-768x768.jpg 768w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1-45x45.jpg 45w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/RT870-Embedded-barcode-scanner-with-Raspberry-Pi-1.jpg 1000w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<h4><strong>Step 2: RT870 settings<\/strong><\/h4>\n<p><\/p>\n<p><\/p>\n<p>RT870 needs to be set up with RS232 mode, scan the following barcode<br \/>Set to RS232 Mode, the default baud rate is 115200, 8-n-1<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img decoding=\"async\" class=\"wp-image-6869\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/rt870-ttl-232.jpg\" alt=\"\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>For more details, please refer to \u00abUser-Manual-RT830A-RT870-RT860_V1.2.3\u00bb<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<h4><strong>Step 3: Raspberry Pi Settings<\/strong><\/h4>\n<p><\/p>\n<p><\/p>\n<p>Use serial port 0 in Raspberry Pi,<\/p>\n<p><\/p>\n<p><\/p>\n<p>\/dev\/ttyS0<\/p>\n<p><\/p>\n<p><\/p>\n<p>More settings would be required to enable Raspberry Pi serial0, please see below (If you already<em> opened it, then ignore this)<\/em>:<\/p>\n<p><\/p>\n<p><\/p>\n<p><strong>1.Enable serial port ttyS0<\/strong><\/p>\n<p><\/p>\n<p><\/p>\n<p>Open the serial port\/dev\/ttyS0\u00a0<br \/>Via command window, input:<br \/><em>sudo rasp-config<\/em><\/p>\n<p><\/p>\n<p><\/p>\n<p><strong>2.Open the system configuration interface as shown below, <\/strong>select<strong>\u00a0Interfacing Options<\/strong><\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"682\" height=\"373\" class=\"wp-image-6780\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/1.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/1.jpg 682w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/1-600x328.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/1-540x295.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/1-200x109.jpg 200w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>Then select\u00a0<strong>serial:<\/strong><\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"681\" height=\"373\" class=\"wp-image-6782\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/2.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/2.jpg 681w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/2-600x329.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/2-540x296.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/2-200x110.jpg 200w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>Select No:<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"404\" class=\"wp-image-6784\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/3-Raspberry-Pi5500.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/3-Raspberry-Pi5500.jpg 693w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/3-Raspberry-Pi5500-600x350.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/3-Raspberry-Pi5500-540x315.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/3-Raspberry-Pi5500-200x117.jpg 200w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>Choose Yes:<\/p>\n<p><\/p>\n<p><\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"412\" class=\"wp-image-6786\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/5-Raspberry-Pi5512.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/5-Raspberry-Pi5512.jpg 693w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/5-Raspberry-Pi5512-600x357.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/5-Raspberry-Pi5512-540x321.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/5-Raspberry-Pi5512-200x119.jpg 200w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/figure>\n<\/div>\n<p><\/p>\n<p><\/p>\n<p>Finally, save and exit.<\/p>\n<p><\/p>\n<p><\/p>\n<p>Now, please enter the following command, check the serial port ttyS0:<br \/>ls -la \/dev\/<br \/>But, if it still cannot be used, please double-check and re-configure it.<\/p>\n<p><\/p>\n<p><\/p>\n<p><strong>3. Close the Console<\/strong><\/p>\n<p><\/p>\n<p><\/p>\n<p>In the terminal, input:<\/p>\n<p><\/p>\n<p><\/p>\n<p><em>sudo systemctl stop serial-getty@ttyS0.service<\/em><br \/><em>sudo systemctl disable serial-getty@ttyS0.service<\/em><\/p>\n<p><\/p>\n<p><\/p>\n<p>Then, restart<\/p>\n<p><\/p>\n<p><\/p>\n<p>And input:<\/p>\n<p><\/p>\n<p><\/p>\n<p><em>sudo systemctl mask serial-getty@ttyS0.service<\/em><\/p>\n<p><\/p>\n<p><\/p>\n<p>Now it works!<\/p>\n<p><\/p>\n<p><\/p>\n<p><strong>4. Modify Raspberry Pi CPU frequency (optional, you would no need to do this)<\/strong><\/p>\n<p><\/p>\n<p><\/p>\n<p>After the above steps 1 and 2, the settings are theoretically completed. But some times:<\/p>\n<p><\/p>\n<p><\/p>\n<p>(1)After sending a string via serial port, in most cases the receiver shows up garbled data.<\/p>\n<p><\/p>\n<p><\/p>\n<p>(2) When the serial port receives data, if it appear data like: **\\xe8 \\xe9**<\/p>\n<p><\/p>\n<p><\/p>\n<p>This would be caused by the wrong working frequency of the Raspberry Pi, information link:<br \/><a href=\"https:\/\/www.raspberrypi.org\/forums\/viewtopic.php?p=917091\">Raspberry Pi 3 login via UART on GPIO Baud Rates broken<\/a><\/p>\n<p><\/p>\n<p><\/p>\n<p>The modification method is described as below:<\/p>\n<p><\/p>\n<p><\/p>\n<p><em>sudo vim \/boot\/config.txt<\/em><\/p>\n<p><\/p>\n<p><\/p>\n<p>Find out whether the sentence core_freq=250 is enabled. If not, remove the # number in front of this sentence, or add core_freq=250 at the boot\/config.txt, done.<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<h4>Step 4: Run the Python sample code<\/h4>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p>Run:\u00a0<strong>RT870_TTL_RS232.py<\/strong><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\n<p><\/p>\n<p>\u00a0<\/p>\n<p><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-f0d6b15 elementor-widget elementor-widget-html\" data-id=\"f0d6b15\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre>\n# RT870 python test demo\n# ttl-232 readme\n# by RTSCAN 20200901\n\n\nimport sys\nimport serial\nimport time\n\n# default usb device \/dev\/ttyS0 115200 8n1\nser = serial.Serial(\"COM22\", 115200, timeout=0.5)\n# ser = serial.Serial(\"\/dev\/ttyS0\", 115200, timeout=0.5)\n\nprint('serial test start ...')\nif ser is not None:\n    print('serial ready...')\nelse:\n    print('serial not ready')\n    sys.exit()\n\nser.timerout = 1  # read time out\nser.writeTimeout = 0.5  # write time out.\n\n\ndef printHex(str):\n    for i in str:\n        print('%02x ' % i, end='')\n    print(\"\")\n\n\ndef send_cmd(str):\n    print(\"send: \"),\n    printHex(str)\n\n    ser.write(str)\n    time.sleep(0.2)\n    t = ser.read(ser.in_waiting)\n    print(\"reply\")\n    print(t)\n    printHex(t)\n\n\ndef factory_defaults():\n    print(\"factory_defaults\")\n    send_cmd((\"\\x02\\xf0\\x03\" + \"0D0100\" + \".\").encode(\"UTF-8\"))\n    return\n\n\ndef set_baud_rate(baud):\n    print(\"set_baud_rate\")\n    send_cmd((\"\\x02\\xf0\\x03\" + \"060702\" + baud + \".\").encode(\"UTF-8\"))\n    return\n\n\ndef get_baud_rate():\n    print(\"get_baud_rate\")\n    send_cmd((\"\\x02\\xf0\\x03\" + \"060702\" + \"?.\").encode(\"UTF-8\"))\n    return\n...\n\nPlease contact us to get full sample codes\n<\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4b784d5 elementor-widget elementor-widget-text-editor\" data-id=\"4b784d5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>And the RT870 automatically detects and reads bar code.<\/p>\n<p>\u00a0<\/p>\n<p>Output:<\/p>\n<p>\u00a0<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"728\" height=\"427\" class=\"wp-image-6851\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-for-Raspberry-Pi-output.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-for-Raspberry-Pi-output.jpg 728w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-for-Raspberry-Pi-output-600x352.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-for-Raspberry-Pi-output-540x317.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-for-Raspberry-Pi-output-200x117.jpg 200w\" sizes=\"(max-width: 728px) 100vw, 728px\" \/><\/figure>\n<\/div>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>Introduction of commands protocol for RT870<\/strong><\/h4>\n<p>\u00a0<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"732\" height=\"439\" class=\"wp-image-6865\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/rt870-command-protocol.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/rt870-command-protocol.jpg 732w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/rt870-command-protocol-600x360.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/rt870-command-protocol-540x324.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/rt870-command-protocol-200x120.jpg 200w\" sizes=\"(max-width: 732px) 100vw, 732px\" \/><\/figure>\n<\/div>\n<p>\u00a0<\/p>\n<p>Example:<\/p>\n<p>\u00a0<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"533\" height=\"113\" class=\"wp-image-6845\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/command-structure.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/command-structure.jpg 533w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/command-structure-200x42.jpg 200w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/figure>\n<\/div>\n<p>\u00a0<\/p>\n<p>Response: 30 44 30 31 30 30 06 2e<\/p>\n<p>\u00a0<\/p>\n<p>For more details, please refer to \u300aProgramming_Commands_Guide(RT203-RT830).pdf\u300b<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<div class=\"wp-block-buttons is-content-justification-center\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background\" href=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/\" target=\"_blank\" rel=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/ noopener\">Request more info-&gt;<\/a><\/div>\n<p>\u00a0<\/p>\n<\/div>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h3>USB\u00a0CDC Communication<\/h3>\n<p>\u00a0<\/p>\n<p>If we want to use the USB port and make it work as a virtual serial port, set up the RT870 to\u00a0<strong>USB Com port emulation mode<\/strong>. And the RT870 scanner will be detected as a COM device in Raspberry Pi.<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>Step 1: Hardware connection<\/strong><\/h4>\n<p>\u00a0<\/p>\n<p>Connect RT870 to the USB port of Raspberry Pi through a data cable<\/p>\n<p>\u00a0<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-8155 size-large\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-720x720.jpg\" alt=\"\" width=\"720\" height=\"720\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-720x720.jpg 720w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-300x300.jpg 300w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-100x100.jpg 100w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-600x600.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-768x768.jpg 768w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1-45x45.jpg 45w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Connect-Embedded-barcode-scanner-with-Raspberry-Pi-via-USB-1.jpg 1000w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/figure>\n<\/div>\n<p>\u00a0<\/p>\n<h4><strong>Step 2: RT870 Settings<\/strong><\/h4>\n<p>\u00a0<\/p>\n<p>RT870 set to USB CDC mode, please scan the following Setting bar code<\/p>\n<p>\u00a0<\/p>\n<p><strong>Set to USB output<\/strong><\/p>\n<p>\u00a0<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"241\" class=\"wp-image-6857\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-usb.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-usb.jpg 400w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-usb-200x121.jpg 200w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure>\n<\/div>\n<p>\u00a0<\/p>\n<p><strong>Set to USB CDC mode<\/strong><\/p>\n<p>\u00a0<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"382\" height=\"215\" class=\"wp-image-6880\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/USB-COM-edited.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/USB-COM-edited.jpg 382w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/USB-COM-edited-200x113.jpg 200w\" sizes=\"(max-width: 382px) 100vw, 382px\" \/><\/figure>\n<\/div>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4><strong>Step 3: Raspberry Pi Settings<\/strong><\/h4>\n<p>\u00a0<\/p>\n<p>The RT870 USB CDC mode is the USB Com port emulation mode, the device name usually is:<\/p>\n<p>\u00a0<\/p>\n<p><em>\/dev\/ttyACM0<\/em><\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h4>Step 4: Run the Python\u00a0sample\u00a0code<\/h4>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>Run:\u00a0<strong>\u00a0python RT870_USB_CDC.py<\/strong><\/p>\n<p>\u00a0<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bd6dd2b elementor-widget elementor-widget-html\" data-id=\"bd6dd2b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<pre>\n#RT870 python test demo\n#ttl-232 readme\n#by RTSCAN 20200901\n\n\nimport sys\nimport serial\nimport time\n\n#default usb device \/dev\/ttyS0 115200 8n1\nser = serial.Serial(\"\/dev\/ttyACM0\",115200,timeout=0.5)\n\nprint('serial test start ...')\nif ser != None:\n    print('serial ready...')\nelse:\n    print('serial not ready')\n    sys.exit()\n\nser.timerout=1 #read time out\nser.writeTimeout = 0.5 #write time out.\n\ndef printHex(str):\n    for i in str:\n        print('0x%02x'%ord(i)),\n    print(\"\")\n\ndef send_cmd(str):\n    ser.write(str)\n    time.sleep(0.2)\n    t = ser.read(ser.in_waiting)\n    print(\"reply\")\n    print(t)\n    printHex(t)\n\ndef factory_defaults():\n    print(\"factory_defaults\")\n    send_cmd(\"\\x02\\xf0\\x03\"\"0D0100\"\".\")\n    return\n\ndef set_baud_rate(baud):\n    print(\"set_baud_rate\")\n    send_cmd(\"\\x02\\xf0\\x03\"\"060702\"+baud+\".\")\n    return\n\ndef get_baud_rate():\n    print(\"get_baud_rate\")\n    send_cmd(\"\\x02\\xf0\\x03\"\"060702\"\"?.\")\n    return\n...\nPlease contact us to get full sample codes\n<\/pre>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-da44d67 elementor-widget elementor-widget-text-editor\" data-id=\"da44d67\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>Output:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"287\" class=\"wp-image-6861\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/OUTPUT.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/OUTPUT.jpg 693w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/OUTPUT-600x248.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/OUTPUT-540x224.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/OUTPUT-200x83.jpg 200w\" sizes=\"(max-width: 693px) 100vw, 693px\" \/><\/figure><\/div><h3><strong>USB-HID<\/strong><\/h3><p>If you prefer to connect the embedded barcode scanner via\u00a0<strong>USB Keyboard simulation<\/strong>, it also is fine, setup RTscan\u2019s barcode scanner to HID mode:<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"241\" class=\"wp-image-6857\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-usb.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-usb.jpg 400w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Embedded-barcode-scanner-usb-200x121.jpg 200w\" sizes=\"(max-width: 400px) 100vw, 400px\" \/><\/figure><\/div><div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"393\" height=\"215\" class=\"wp-image-6901\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/hid.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/hid.jpg 393w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/hid-200x109.jpg 200w\" sizes=\"(max-width: 393px) 100vw, 393px\" \/><\/figure><\/div><p>Then open \u201cText editor\u201d from Raspberry Pi software, now run the bar code scanning, the decoded data will show up directly.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"771\" height=\"485\" class=\"wp-image-6798\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Python.jpg\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Python.jpg 771w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Python-600x377.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Python-540x340.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Python-200x126.jpg 200w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/Python-768x483.jpg 768w\" sizes=\"(max-width: 771px) 100vw, 771px\" \/><\/figure><\/div><p>The above python sample code can be used for other embedded barcode scanners, e.g: RT830B.\u00a0 But we can provide sample code for most of our embedded scanners, if you want to learn more about them, please view the links below:\u00a0<\/p><figure class=\"wp-block-embed-wordpress wp-block-embed is-type-wp-embed is-provider-rtscan\"><div class=\"wp-block-embed__wrapper\">https:\/\/www.rtscan.com\/barcode-readers\/fixed-mount-barcode-readers\/<\/div><\/figure><div class=\"wp-block-buttons is-content-justification-center\"><div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-white-color has-vivid-cyan-blue-background-color has-text-color has-background\" href=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/\" target=\"_blank\" rel=\"https:\/\/www.rtscan.com\/email-us-infortscan-net\/ noopener\">Request more info-&gt;<\/a><\/div><\/div><h2><strong>Part VI: Video Demo<\/strong><\/h2><p>You can also refer to the following video demo, to see how the embedded barcode scanner work with Raspberry Pi:<\/p><figure class=\"wp-block-embed aligncenter is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\u00a0<\/div><\/figure>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-9c616fc elementor-widget elementor-widget-video\" data-id=\"9c616fc\" data-element_type=\"widget\" data-e-type=\"widget\" data-settings=\"{&quot;youtube_url&quot;:&quot;https:\\\/\\\/www.youtube.com\\\/watch?v=V32ZUt18ljM&amp;feature=youtu.be&quot;,&quot;video_type&quot;:&quot;youtube&quot;,&quot;controls&quot;:&quot;yes&quot;}\" data-widget_type=\"video.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-wrapper elementor-open-inline\">\n\t\t\t<div class=\"elementor-video\"><\/div>\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b46cf06 elementor-widget elementor-widget-text-editor\" data-id=\"b46cf06\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>If you need an barcode scanner module\/ engine for Arduino, please read:\u00a0<\/p><p class=\"has-text-align-left\"><a href=\"https:\/\/www.rtscan.com\/arduino-barcode-scanner\/\"><strong><em><span class=\"has-inline-color has-vivid-cyan-blue-color\">Arduino Barcode Scanner<\/span><\/em><\/strong><\/a><\/p><p>If you need an OEM barcode scanner for Raspberry Pi, please read:<\/p><p><a href=\"https:\/\/www.rtscan.com\/raspberry-pi-barcode-scanner\/\"><strong><em><span class=\"has-inline-color has-vivid-cyan-blue-color\">Raspberry Pi Barcode Scanner<\/span><\/em><\/strong><\/a><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-5c4727b\" data-id=\"5c4727b\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-76b5147 elementor-widget elementor-widget-heading\" data-id=\"76b5147\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Related Products:<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3354003 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"3354003\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/fixed-mount-2d-barcode-scanner-rt240\/\" tabindex=\"-1\"><img loading=\"lazy\" decoding=\"async\" width=\"480\" height=\"480\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2022\/01\/Fixed-mount-2d-Barcode-Scanner-RT240-2.jpg\" class=\"attachment-full size-full wp-image-10969\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2022\/01\/Fixed-mount-2d-Barcode-Scanner-RT240-2.jpg 480w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2022\/01\/Fixed-mount-2d-Barcode-Scanner-RT240-2-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2022\/01\/Fixed-mount-2d-Barcode-Scanner-RT240-2-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2022\/01\/Fixed-mount-2d-Barcode-Scanner-RT240-2-45x45.jpg 45w\" sizes=\"(max-width: 480px) 100vw, 480px\" \/><\/a><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/fixed-mount-2d-barcode-scanner-rt240\/\">Fixed mount 2d Barcode Scanner: RT240<\/a><\/h3><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-78ecaa7 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"78ecaa7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/fixed-mount-embedded-kiosk-barcode-scanner-rt830c\/\" tabindex=\"-1\"><img loading=\"lazy\" decoding=\"async\" width=\"600\" height=\"600\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/06\/rt830c-Kiosk-Barcode-Scanner.jpg\" class=\"attachment-full size-full wp-image-9075\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/06\/rt830c-Kiosk-Barcode-Scanner.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/06\/rt830c-Kiosk-Barcode-Scanner-300x300.jpg 300w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/06\/rt830c-Kiosk-Barcode-Scanner-100x100.jpg 100w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/06\/rt830c-Kiosk-Barcode-Scanner-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/06\/rt830c-Kiosk-Barcode-Scanner-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/06\/rt830c-Kiosk-Barcode-Scanner-45x45.jpg 45w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/fixed-mount-embedded-kiosk-barcode-scanner-rt830c\/\">Fixed-mount embedded &amp; Kiosk Barcode Scanner: RT830C<\/a><\/h3><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-677f025 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"677f025\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/small-2d-qr-scanner-module-rt214\/\" tabindex=\"-1\"><img loading=\"lazy\" decoding=\"async\" width=\"424\" height=\"318\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/11\/RT214-Barcode-scan-engines-3-1.jpg\" class=\"attachment-full size-full wp-image-10091\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/11\/RT214-Barcode-scan-engines-3-1.jpg 424w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/11\/RT214-Barcode-scan-engines-3-1-200x150.jpg 200w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/11\/RT214-Barcode-scan-engines-3-1-234x176.jpg 234w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/a><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/small-2d-qr-scanner-module-rt214\/\">OEM 2D Barcode Reader: RT214<\/a><\/h3><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3ba56a4 elementor-position-top elementor-widget elementor-widget-image-box\" data-id=\"3ba56a4\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image-box.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-image-box-wrapper\"><figure class=\"elementor-image-box-img\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/embedded-2d-code-reader-rt870\/\" tabindex=\"-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"902\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/04\/RT870-3.jpg\" class=\"attachment-full size-full wp-image-8353\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/04\/RT870-3.jpg 1000w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/04\/RT870-3-600x541.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/04\/RT870-3-449x405.jpg 449w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/04\/RT870-3-798x720.jpg 798w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/04\/RT870-3-166x150.jpg 166w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2021\/04\/RT870-3-768x693.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure><div class=\"elementor-image-box-content\"><h3 class=\"elementor-image-box-title\"><a href=\"https:\/\/www.rtscan.com\/Code-Readers\/embedded-2d-code-reader-rt870\/\">Embedded 2D Barcode And QR Code Reader: RT870<\/a><\/h3><\/div><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2dd4bcc elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2dd4bcc\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-6616aeb\" data-id=\"6616aeb\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-08870c8 elementor-widget elementor-widget-image\" data-id=\"08870c8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.rtscan.com\/solutions\/\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"259\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/12\/access-control-rtscan-e1607999959708.jpg\" class=\"attachment-full size-full wp-image-7674\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/12\/access-control-rtscan-e1607999959708.jpg 631w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/12\/access-control-rtscan-e1607999959708-600x246.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/12\/access-control-rtscan-e1607999959708-540x222.jpg 540w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/12\/access-control-rtscan-e1607999959708-200x82.jpg 200w\" sizes=\"(max-width: 631px) 100vw, 631px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-2e6c108 elementor-widget elementor-widget-heading\" data-id=\"2e6c108\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/www.rtscan.com\/solutions\/\">All Solutions<\/a><\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c2abedc elementor-widget elementor-widget-heading\" data-id=\"c2abedc\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/www.rtscan.com\/solutions\/\">Barcode Scanners and Arduino\/ Raspberry Pi  Solutions and Access Control  Solutions<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5d06d76 elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"5d06d76\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-md\" href=\"https:\/\/www.rtscan.com\/solutions\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Learn More<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-top-column elementor-element elementor-element-67db4bf\" data-id=\"67db4bf\" data-element_type=\"column\" data-e-type=\"column\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8d22336 elementor-widget elementor-widget-image\" data-id=\"8d22336\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a href=\"https:\/\/www.rtscan.com\/arduino-qr-code-scanner\/\">\n\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"720\" height=\"720\" src=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-720x720.jpg\" class=\"attachment-large size-large wp-image-8139\" alt=\"\" srcset=\"https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-720x720.jpg 720w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-300x300.jpg 300w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-100x100.jpg 100w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-600x600.jpg 600w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-405x405.jpg 405w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-150x150.jpg 150w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-768x768.jpg 768w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1-45x45.jpg 45w, https:\/\/www.rtscan.com\/wp-content\/uploads\/2020\/09\/QR-barcode-scanner-USB-Host-connect-to-arduino-1.jpg 1000w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/>\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<section class=\"elementor-section elementor-inner-section elementor-element elementor-element-2f1f378 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2f1f378\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-69b1479\" data-id=\"69b1479\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-b38987e elementor-widget elementor-widget-heading\" data-id=\"b38987e\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-heading-title elementor-size-default\">Arduino<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t<div class=\"elementor-column elementor-col-50 elementor-inner-column elementor-element elementor-element-d0c8881\" data-id=\"d0c8881\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-462e444 elementor-widget elementor-widget-heading\" data-id=\"462e444\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-heading-title elementor-size-default\">24 January 2022<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<div class=\"elementor-element elementor-element-4e899fb elementor-widget elementor-widget-heading\" data-id=\"4e899fb\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/www.rtscan.com\/arduino-qr-code-scanner\/\">\nEmbedded QR Code scanner for Arduino<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-3159207 elementor-align-justify elementor-widget elementor-widget-button\" data-id=\"3159207\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"button.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<div class=\"elementor-button-wrapper\">\n\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-md\" href=\"https:\/\/www.rtscan.com\/arduino-qr-code-scanner\/\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">Go To Next<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-556ed4f1 elementor-section-stretched elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"556ed4f1\" data-element_type=\"section\" data-e-type=\"section\" data-settings=\"{&quot;stretch_section&quot;:&quot;section-stretched&quot;,&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-77ffd61c\" data-id=\"77ffd61c\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-18307171 elementor-widget elementor-widget-heading\" data-id=\"18307171\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Ask A Sample To Test Now!\n<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d69d31b elementor-widget elementor-widget-spacer\" data-id=\"d69d31b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-5d7a51cf elementor-widget elementor-widget-shortcode\" data-id=\"5d7a51cf\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\n<div class=\"wpcf7 no-js\" id=\"wpcf7-f10769-o1\" lang=\"en-US\" dir=\"ltr\" data-wpcf7-id=\"10769\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/es\/wp-json\/wp\/v2\/posts\/7317#wpcf7-f10769-o1\" method=\"post\" class=\"wpcf7-form init\" aria-label=\"Contact form\" novalidate=\"novalidate\" data-status=\"init\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"10769\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.6\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"en_US\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f10769-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/>\n<\/fieldset>\n<div class=\"row\">\n\t<div class=\"large-4 columns \">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-name\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"Your name...\" value=\"\" type=\"text\" name=\"your-name\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div class=\"large-4 columns \">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-email\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-email wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-email\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"* Your E-mail...\" value=\"\" type=\"email\" name=\"your-email\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div class=\"large-4 columns \">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"phone-number\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"Your phone number...\" value=\"\" type=\"text\" name=\"phone-number\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div class=\"large-4 columns \">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"country\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"Your country...\" value=\"\" type=\"text\" name=\"country\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div class=\"large-4 columns \">\n\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"company-name\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-text\" aria-invalid=\"false\" placeholder=\"Your company name...\" value=\"\" type=\"text\" name=\"company-name\" \/><\/span>\n\t\t<\/p>\n\t<\/div>\n\t<div class=\"large-12 columns \">\n\t\t<div class=\"rockthemes_fb_element_container\">\n\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"your-message\"><textarea cols=\"40\" rows=\"10\" maxlength=\"2000\" class=\"wpcf7-form-control wpcf7-textarea wpcf7-validates-as-required\" aria-required=\"true\" aria-invalid=\"false\" placeholder=\"* Your Message (Please tell us which products you are talking about) :\" name=\"your-message\"><\/textarea><\/span>\n\t\t\t<\/p>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<p><input class=\"wpcf7-form-control wpcf7-submit has-spinner\" type=\"submit\" value=\"Send\" \/>\n<\/p>\n<div class=\"row\">\n\t<div class=\"large-12 columns \">\n\t\t<style>\n .email-link {\n color: blue;\n }\n\t\t<\/style>\n\t\t<p>You can also contact us directly. For sales: <a href=\"mailto:sales@rtscan.com\" class=\"email-link\">sales@rtscan.com<\/a>; for technical support: <a href=\"mailto:support@rtscan.com\" class=\"email-link\">support@rtscan.com<\/a>. Thank you!\n\t\t<\/p>\n\t<\/div>\n<\/div>\n<p><script type=\"text\/javascript\">\ndocument.addEventListener( 'wpcf7mailsent', function( event ) {\n location = 'https:\/\/www.rtscan.com\/contact-rtscan\/sent\/';\n}, false );\n<\/script>\n<\/p><style>\n            .cf7cp-hp-wrap {\n                position: absolute !important;\n                left: -9999px !important;\n                top: -9999px !important;\n                width: 1px !important;\n                height: 1px !important;\n                overflow: hidden !important;\n                opacity: 0 !important;\n                pointer-events: none !important;\n            }\n        <\/style><div class=\"cf7cp-hp-wrap\" aria-hidden=\"true\">\n                <label class=\"cf7cp-hp-label\">Leave this field empty<\/label>\n                <input type=\"text\" name=\"url_mn9cbdsf\" value=\"\" class=\"cf7cp-hp-field\" tabindex=\"-1\" autocomplete=\"off\" \/>\n            <\/div><div class=\"cf7cp-hp-wrap\" aria-hidden=\"true\">\n                <label class=\"cf7cp-hp-label\">Email<\/label>\n                <input type=\"email\" name=\"url_mn9cbdsf_email\" value=\"\" class=\"cf7cp-hp-field\" tabindex=\"-1\" autocomplete=\"off\" \/>\n            <\/div><div class=\"cf7cp-hp-wrap\" aria-hidden=\"true\">\n                <label class=\"cf7cp-hp-label\">\n                    <input type=\"checkbox\" name=\"url_mn9cbdsf_check\" value=\"1\" class=\"cf7cp-hp-field\" tabindex=\"-1\" \/>\n                    Check this box\n                <\/label>\n            <\/div><input type=\"hidden\" name=\"cf7cp_time_token\" value=\"\" class=\"cf7cp-time-token\" \/><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<\/form>\n<\/div>\n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a794eca elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"a794eca\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-721f734\" data-id=\"721f734\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Embedded barcode scanner for Raspberry Pi: Use embedded barcode scanners with Raspberry Pi If you are using Raspberry Pi microcontroller \/ single-board computer to develop your system, and at the same time, you need a 1d\/ 2d embedded barcode scanner to work with it, then this article would be helpful for you: Here we introduce [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"elementor_header_footer","format":"standard","meta":{"footnotes":""},"categories":[251],"tags":[169,160,117],"class_list":["post-7317","post","type-post","status-publish","format-standard","hentry","category-solutions-es","tag-embedded-barcode-scanner-es","tag-qr-code-reader-es","tag-raspberry-pi-barcode-reader-es"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C\u00f3mo utilizar un esc\u00e1ner de c\u00f3digo de barras integrado con Raspberry Pi<\/title>\n<meta name=\"description\" content=\"Aqu\u00ed te presentamos c\u00f3mo hacer que un esc\u00e1ner de c\u00f3digo de barras embebido funcione con Raspberry Pi, tambi\u00e9n te proporcionamos un c\u00f3digo de ejemplo en Python para tu programaci\u00f3n.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"RTscan Marketing Dept.\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"14 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/\"},\"author\":{\"name\":\"RTscan Marketing Dept.\",\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/#\\\/schema\\\/person\\\/97b889ca0a2f4404fe034f0c520dfad5\"},\"headline\":\"Esc\u00e1ner de c\u00f3digo de barras integrado para Raspberry Pi: Utiliza esc\u00e1neres de c\u00f3digos de barras integrados con Raspberry Pi\",\"datePublished\":\"2020-09-23T07:41:52+00:00\",\"dateModified\":\"2025-05-27T12:19:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/\"},\"wordCount\":1335,\"image\":{\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rtscan.com\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/Raspberry-Pi-barcode-scanner1343.jpg\",\"keywords\":[\"embedded barcode scanner\",\"qr code reader\",\"Raspberry Pi barcode reader\"],\"articleSection\":[\"Solutions\"],\"inLanguage\":\"es\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/\",\"url\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/\",\"name\":\"C\u00f3mo utilizar un esc\u00e1ner de c\u00f3digo de barras integrado con Raspberry Pi\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rtscan.com\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/Raspberry-Pi-barcode-scanner1343.jpg\",\"datePublished\":\"2020-09-23T07:41:52+00:00\",\"dateModified\":\"2025-05-27T12:19:13+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/#\\\/schema\\\/person\\\/97b889ca0a2f4404fe034f0c520dfad5\"},\"description\":\"Aqu\u00ed te presentamos c\u00f3mo hacer que un esc\u00e1ner de c\u00f3digo de barras embebido funcione con Raspberry Pi, tambi\u00e9n te proporcionamos un c\u00f3digo de ejemplo en Python para tu programaci\u00f3n.\",\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rtscan.com\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/Raspberry-Pi-barcode-scanner1343.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rtscan.com\\\/wp-content\\\/uploads\\\/2018\\\/11\\\/Raspberry-Pi-barcode-scanner1343.jpg\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/#website\",\"url\":\"https:\\\/\\\/www.rtscan.com\\\/\",\"name\":\"RTscan\",\"description\":\"2d barcode readers modules supplier in China.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rtscan.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rtscan.com\\\/#\\\/schema\\\/person\\\/97b889ca0a2f4404fe034f0c520dfad5\",\"name\":\"RTscan Marketing Dept.\",\"sameAs\":[\"https:\\\/\\\/www.rtscan.com\"],\"url\":\"https:\\\/\\\/www.rtscan.com\\\/es\\\/author\\\/andresscannerit-com\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u00f3mo utilizar un esc\u00e1ner de c\u00f3digo de barras integrado con Raspberry Pi","description":"Aqu\u00ed te presentamos c\u00f3mo hacer que un esc\u00e1ner de c\u00f3digo de barras embebido funcione con Raspberry Pi, tambi\u00e9n te proporcionamos un c\u00f3digo de ejemplo en Python para tu programaci\u00f3n.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/","twitter_misc":{"Escrito por":"RTscan Marketing Dept.","Tiempo de lectura":"14 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/#article","isPartOf":{"@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/"},"author":{"name":"RTscan Marketing Dept.","@id":"https:\/\/www.rtscan.com\/#\/schema\/person\/97b889ca0a2f4404fe034f0c520dfad5"},"headline":"Esc\u00e1ner de c\u00f3digo de barras integrado para Raspberry Pi: Utiliza esc\u00e1neres de c\u00f3digos de barras integrados con Raspberry Pi","datePublished":"2020-09-23T07:41:52+00:00","dateModified":"2025-05-27T12:19:13+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/"},"wordCount":1335,"image":{"@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1343.jpg","keywords":["embedded barcode scanner","qr code reader","Raspberry Pi barcode reader"],"articleSection":["Solutions"],"inLanguage":"es"},{"@type":"WebPage","@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/","url":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/","name":"C\u00f3mo utilizar un esc\u00e1ner de c\u00f3digo de barras integrado con Raspberry Pi","isPartOf":{"@id":"https:\/\/www.rtscan.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/#primaryimage"},"image":{"@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1343.jpg","datePublished":"2020-09-23T07:41:52+00:00","dateModified":"2025-05-27T12:19:13+00:00","author":{"@id":"https:\/\/www.rtscan.com\/#\/schema\/person\/97b889ca0a2f4404fe034f0c520dfad5"},"description":"Aqu\u00ed te presentamos c\u00f3mo hacer que un esc\u00e1ner de c\u00f3digo de barras embebido funcione con Raspberry Pi, tambi\u00e9n te proporcionamos un c\u00f3digo de ejemplo en Python para tu programaci\u00f3n.","inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.rtscan.com\/es\/embedded-barcode-scanner-for-raspberry-pi-use-embedded-barcode-scanners-with-raspberry-pi\/#primaryimage","url":"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1343.jpg","contentUrl":"https:\/\/www.rtscan.com\/wp-content\/uploads\/2018\/11\/Raspberry-Pi-barcode-scanner1343.jpg"},{"@type":"WebSite","@id":"https:\/\/www.rtscan.com\/#website","url":"https:\/\/www.rtscan.com\/","name":"RTscan","description":"2d barcode readers modules supplier in China.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rtscan.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Person","@id":"https:\/\/www.rtscan.com\/#\/schema\/person\/97b889ca0a2f4404fe034f0c520dfad5","name":"RTscan Marketing Dept.","sameAs":["https:\/\/www.rtscan.com"],"url":"https:\/\/www.rtscan.com\/es\/author\/andresscannerit-com\/"}]}},"views":6664,"_links":{"self":[{"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/posts\/7317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/comments?post=7317"}],"version-history":[{"count":1,"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/posts\/7317\/revisions"}],"predecessor-version":[{"id":15080,"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/posts\/7317\/revisions\/15080"}],"wp:attachment":[{"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/media?parent=7317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/categories?post=7317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rtscan.com\/es\/wp-json\/wp\/v2\/tags?post=7317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}