{"id":132,"date":"2019-03-04T19:38:04","date_gmt":"2019-03-04T19:38:04","guid":{"rendered":"https:\/\/porkypies.org\/?page_id=41"},"modified":"2019-03-04T19:38:04","modified_gmt":"2019-03-04T19:38:04","slug":"seiko-raspberry-pi","status":"publish","type":"page","link":"https:\/\/www.z88dx.com\/index.php\/seiko-raspberry-pi\/","title":{"rendered":"Seiko &#038; Raspberry PI"},"content":{"rendered":"\n<p>I decided to make an attempt to use a Raspberry PI in order to send data to my RC-1000.  This has a number of advantages.  It&#8217;s cheap , small and easy to obtain.  I figured I try this route before searching eBay for some old PC.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.z88dx.com\/wp-content\/uploads\/2019\/03\/IMG_0107.jpg\" alt=\"\" class=\"wp-image-42\"\/><figcaption>Raspberry PI with Prolific Serial Adapter<\/figcaption><\/figure>\n\n\n\n<p>Configuring your raspberry PI<\/p>\n\n\n\n<p>try the lsusb command first and take a look to see if it recognizes your adapter.<\/p>\n\n\n\n<p>it should come up like this<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pi@raspberrypi:~ $ lsusb\nBus 001 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port\nBus 001 Device 005: ID 20a0:0006 Clay Logic\nBus 001 Device 006: ID 0424:7800 Standard Microsystems Corp.\nBus 001 Device 003: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub\nBus 001 Device 002: ID 0424:2514 Standard Microsystems Corp. USB 2.0 Hub\nBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub\npi@raspberrypi:~ $<\/code><\/pre>\n\n\n\n<p>use modprobe to ensure everything is connected and loaded correctly.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pi@raspberrypi:~ $ sudo modprobe usbserial vendor=0x067b product=0x2303<\/code><\/pre>\n\n\n\n<p>If you receive and error just reboot the PI.  The prolific driver is built into the kernel and loaded at boot time.  You need to ensure the USB-Serial Adapter is plugged in before starting the PI.<\/p>\n\n\n\n<p>Check the message log to ensure everything is as expected.  The device should be reachable on \/dev\/ttyUSB0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pi@raspberrypi:~ $ dmesg | grep 2303\n[    2.533762] usb 1-1.1.3: New USB device found, idVendor=067b, idProduct=2303\n[    4.698034] usbcore: registered new interface driver pl2303\n[    4.698120] usbserial: USB Serial support registered for pl2303\n[    4.698236] pl2303 1-1.1.3:1.0: pl2303 converter detected\n[    4.705821] usb 1-1.1.3: pl2303 converter now attached to ttyUSB0\npi@raspberrypi:~ $<\/code><\/pre>\n\n\n\n<p>Now to check we can set the slow baud rate to 2400<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pi@raspberrypi:~ $ sudo stty -F \/dev\/ttyUSB0 2400\npi@raspberrypi:~ $ sudo stty -F \/dev\/ttyUSB0 -a\nspeed 2400 baud; rows 0; columns 0; line = 0;\nintr = ^C; quit = ^\\; erase = ^?; kill = ^U; eof = ^D; eol = &lt;undef>; eol2 = &lt;undef>; swtch = &lt;undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;\nwerase = ^W; lnext = ^V; discard = ^O; min = 1; time = 0;\n-parenb -parodd -cmspar cs8 hupcl -cstopb cread clocal -crtscts\n-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8\nopost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0\nisig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke -flusho -extproc\npi@raspberrypi:~ $\n<\/code><\/pre>\n\n\n\n<p>The call of stty should report that we are using baud rate of 2400.  Anything else will simply not work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I decided to make an attempt to use a Raspberry PI in order to send data to my RC-1000. This has a number of advantages. [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-132","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/pages\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":0,"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/pages\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/media?parent=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}