{"id":26556,"date":"2024-02-10T22:26:40","date_gmt":"2024-02-10T15:26:40","guid":{"rendered":"https:\/\/tom.ji42.com\/?p=26556"},"modified":"2024-02-12T11:26:25","modified_gmt":"2024-02-12T04:26:25","slug":"rdm6300","status":"publish","type":"post","link":"https:\/\/tom.tomwork.net\/?p=26556","title":{"rendered":"RDM6300"},"content":{"rendered":"<p dir=\"auto\">A simple library to interface with RDM6300 RFID reader.<\/p>\n<h2 dir=\"auto\" tabindex=\"-1\"><a id=\"user-content-features\" class=\"anchor\" tabindex=\"-1\" href=\"https:\/\/github.com\/arduino12\/rdm6300?tab=readme-ov-file#features\" aria-hidden=\"true\"><\/a>Features<\/h2>\n<ul dir=\"auto\">\n<li>Fast and single tag reading, even if it held near the antenna for a while.<\/li>\n<li>Using a single given GPIO pin or a\u00a0<code>Stream<\/code>.<\/li>\n<li>Can tell if the tag is still near the antenna.<\/li>\n<li>Both hardware and software uart (serial) support on esp8266.<\/li>\n<li>SAMD hardware uart (serial) support.<\/li>\n<li>Both SoftwareSerial and\u00a0<a href=\"https:\/\/github.com\/PaulStoffregen\/AltSoftSerial\">AltSoftSerial<\/a>\u00a0support.<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2 dir=\"auto\" tabindex=\"-1\"><a id=\"user-content-getting-started\" class=\"anchor\" tabindex=\"-1\" href=\"https:\/\/github.com\/arduino12\/rdm6300?tab=readme-ov-file#getting-started\" aria-hidden=\"true\"><\/a>Getting Started<\/h2>\n<h3 dir=\"auto\" tabindex=\"-1\"><a id=\"user-content-hardware\" class=\"anchor\" tabindex=\"-1\" href=\"https:\/\/github.com\/arduino12\/rdm6300?tab=readme-ov-file#hardware\" aria-hidden=\"true\"><\/a>Hardware<\/h3>\n<ul dir=\"auto\">\n<li>RDM6300 module with matching antenna.<\/li>\n<li>125KHz RFID tags.<\/li>\n<li>Microcontroller (arduino, esp8266, esp32&#8230;).<\/li>\n<\/ul>\n<p dir=\"auto\"><a href=\"https:\/\/github.com\/arduino12\/rdm6300\/blob\/master\/doc\/rdm6300_connections.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" title=\"rdm6300_connections\" src=\"https:\/\/github.com\/arduino12\/rdm6300\/raw\/master\/doc\/rdm6300_connections.png\" alt=\"rdm6300_connections\" \/><\/a><\/p>\n<h3 dir=\"auto\" tabindex=\"-1\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26558\" src=\"https:\/\/tom.tomwork.net\/wp-content\/uploads\/2024\/02\/4407p9.jpg\" alt=\"\" width=\"750\" height=\"723\" srcset=\"https:\/\/tom.tomwork.net\/wp-content\/uploads\/2024\/02\/4407p9.jpg 750w, https:\/\/tom.tomwork.net\/wp-content\/uploads\/2024\/02\/4407p9-300x289.jpg 300w, https:\/\/tom.tomwork.net\/wp-content\/uploads\/2024\/02\/4407p9-700x675.jpg 700w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/h3>\n<h3 dir=\"auto\" tabindex=\"-1\"><a id=\"user-content-software\" class=\"anchor\" tabindex=\"-1\" href=\"https:\/\/github.com\/arduino12\/rdm6300?tab=readme-ov-file#software\" aria-hidden=\"true\"><\/a>Software<\/h3>\n<p dir=\"auto\">A simple RFID tag reader with textual serial output:\u00a0<a href=\"https:\/\/github.com\/arduino12\/rdm6300\/blob\/master\/examples\/read_to_serial\/read_to_serial.ino\"><code>examples\/read_to_serial\/read_to_serial.ino<\/code><\/a><\/p>\n<h4 dir=\"auto\" tabindex=\"-1\"><a id=\"user-content-api\" class=\"anchor\" tabindex=\"-1\" href=\"https:\/\/github.com\/arduino12\/rdm6300?tab=readme-ov-file#api\" aria-hidden=\"true\"><\/a>API<\/h4>\n<ul dir=\"auto\">\n<li><code>void begin(Stream *stream)<\/code>\u00a0&#8211; Initialize instance to read from a given stream.<\/li>\n<li><code>void begin(int rx_pin, uint8_t uart_nr=1)<\/code>\u00a0&#8211; Initialize instance to read from a given pin.<\/li>\n<li><code>void set_tag_timeout(uint32_t tag_timeout_ms)<\/code>\u00a0&#8211; sets the tag &#8220;valid&#8221; timeout, (300ms default)<br \/>\nRDM6300 sends packet every 65ms when tag is near- better higher values for debouncing.<\/li>\n<li><code>uint32_t get_tag_id()<\/code>\u00a0&#8211; Returns the tag_id as long as it is near, 0 otherwise.<\/li>\n<li><code>uint32_t get_new_tag_id()<\/code>\u00a0&#8211; Returns the tag_id of a &#8220;new&#8221; near tag,<br \/>\nfollowing calls will return 0 as long as the same tag is kept near.<\/li>\n<li><del><code>bool update()<\/code>\u00a0&#8211; Updates the internal values must be called repeatedly!<\/del>\u00a0<strong>deprecated!<\/strong><\/li>\n<li><del><code>bool is_tag_near()<\/code>\u00a0&#8211; Returns whether a tag is held near.<\/del>\u00a0<strong>deprecated!<\/strong>\u00a0use\u00a0<code>get_tag_id()<\/code>.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A simple library to interface with RDM6300 RFID reader. Features Fast and single tag reading, even if it held near the antenna for a while. Using a single given GPIO pin or a\u00a0Stream. Can tell if the tag is still near the antenna. Both hardware and software uart (serial) support on esp8266. SAMD hardware uart [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[13],"tags":[],"class_list":["post-26556","post","type-post","status-publish","format-standard","hentry","category-13"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s6cOVM-rdm6300","_links":{"self":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/26556","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26556"}],"version-history":[{"count":2,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/26556\/revisions"}],"predecessor-version":[{"id":26559,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=\/wp\/v2\/posts\/26556\/revisions\/26559"}],"wp:attachment":[{"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26556"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26556"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tom.tomwork.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26556"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}