{"id":357,"date":"2011-08-28T18:13:09","date_gmt":"2011-08-28T16:13:09","guid":{"rendered":"http:\/\/lallafa.de\/blog\/?p=357"},"modified":"2011-08-28T18:13:09","modified_gmt":"2011-08-28T16:13:09","slug":"plip2slip-0-1-released","status":"publish","type":"post","link":"https:\/\/lallafa.de\/blog\/2011\/08\/plip2slip-0-1-released\/","title":{"rendered":"plip2slip 0.1 released"},"content":{"rendered":"<p><a href=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"314\" data-permalink=\"https:\/\/lallafa.de\/blog\/amiga-projects\/plip2slip\/plip2slip01a\/\" data-orig-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?fit=480%2C303&amp;ssl=1\" data-orig-size=\"480,303\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"plip2slip01a\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?fit=300%2C189&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?fit=480%2C303&amp;ssl=1\" class=\"aligncenter size-full wp-image-314\" title=\"plip2slip01a\" src=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?resize=480%2C303\" alt=\"\" width=\"480\" height=\"303\" srcset=\"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?w=480&amp;ssl=1 480w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?resize=300%2C189&amp;ssl=1 300w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?resize=150%2C94&amp;ssl=1 150w, https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?resize=400%2C252&amp;ssl=1 400w\" sizes=\"auto, (max-width: 480px) 100vw, 480px\" \/><\/a>While playing with my A500 recently, I had the idea to try out the TCP Stacks available for this platform. Since the little Amiga lacks a decent ethernet card I had to get along with the internal serial port and a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Serial_Line_Internet_Protocol\">SLIP <\/a>connection. With 9600 Baud this is very slooow. So I kept on searching for a faster solution and found a <a href=\"http:\/\/en.wikipedia.org\/wiki\/PLIP\">PLIP<\/a> implementation on <a href=\"http:\/\/m68k.aminet.net\/\">Aminet<\/a>. PLIP using the parallel port is much faster than SLIP, but you need a peer with a parallel port, too&#8230; and that&#8217;s the hard part today \ud83d\ude09<\/p>\n<p>Following\u00c2\u00a0 the same approach as found in my <a title=\"dtv2ser\" href=\"http:\/\/lallafa.de\/blog\/dtv2ser\/\">dtv2ser<\/a> project, I just attached an AVR ATmega microcontroller to the parallel lines of my Amiga and implemented the PLIP counterpart there. The ATmega on the popular <a href=\"http:\/\/www.arduino.cc\/en\/Main\/ArduinoBoardDuemilanove\">Arduino 2009<\/a> boards has a fast serial connection that maps to a USB port via a FTDI 232. This is the ideal data channel for transporting the PLIP packets to your host Mac or PC. With baudrates up to 500 kBaud (~50 KiB\/s) and hardware handshaking with RTS\/CTS you can easily transfer the data packets very fast to your PC and encapsulate them again in SLIP.<\/p>\n<p>With this idea I started to implement the plip2slip firmware. Fortunately, the <a href=\"http:\/\/aminet.net\/package\/comm\/net\/magPLIP38.1\">magPLIP<\/a> driver for the Amiga comes with source and so I could port the code to the AVR. With slight modifications on the Amiga part (patch included) I was able to receive the first packets from the Amiga on the Arduino. Then I implemented a simple Ping mode that receives ICMP Ping Requests transforms them to Replies and returns them to the Amiga: plip2slip soon was a ping machine \ud83d\ude09 I repeated the same thing for the SLIP side and with a patched slattach tool on Ubuntu Linux I was soon able to ping the AVR from this side, too.<\/p>\n<p>With the basic parts of plip2slip in place and working I finally added the transport\/bridging mode that transfers all received PLIP packets to SLIP and vice versa. With this mode running I could ping the Ubuntu host from my Amiga! After some IP forward configuration on Ubuntu I was able to reach my home network and also the Internet with the A500.<\/p>\n<p>And its real fast! An FTP download on my Amiga reaches <strong>25 KiB\/s<\/strong> when transferring 10k from Linux! So compared to SLIP with 9600 Baud its a real break through and worth the little hardware effort needed to build the Arduino device&#8230;<\/p>\n<p>There is still lots of potential for tuning and optimizing, but I wanted to share this little project as soon as possible with you. So I crammed up everything you need into a little <strong>0.1 release<\/strong> that is available on my shiny new <a title=\"plip2slip\" href=\"http:\/\/lallafa.de\/blog\/plip2slip\/\">plip2slip homepage<\/a>. I hope you enjoy it and bring lots of your classic machines back to the net with decent speed&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While playing with my A500 recently, I had the idea to try out the TCP Stacks available for this platform. Since the little Amiga lacks a decent ethernet card I had to get along with the internal serial port and &hellip; <a href=\"https:\/\/lallafa.de\/blog\/2011\/08\/plip2slip-0-1-released\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":314,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[11,8,6],"tags":[],"class_list":["post-357","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amiga","category-hardware","category-mac-stuff"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/lallafa.de\/blog\/wp-content\/uploads\/2011\/08\/plip2slip01a.jpg?fit=480%2C303&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/piBMF-5L","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts\/357","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/comments?post=357"}],"version-history":[{"count":5,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts\/357\/revisions"}],"predecessor-version":[{"id":362,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/posts\/357\/revisions\/362"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/media\/314"}],"wp:attachment":[{"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/media?parent=357"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/categories?post=357"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lallafa.de\/blog\/wp-json\/wp\/v2\/tags?post=357"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}