-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathUsing the Raspberry Pi’s serial port Clayton's Domain.mht
executable file
·3904 lines (3848 loc) · 164 KB
/
Using the Raspberry Pi’s serial port Clayton's Domain.mht
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
From: "Saved by Windows Internet Explorer 8"
Subject: =?Windows-1252?Q?Using_the_Raspberry_Pi=92s_serial_port_|_Clayton's_Domain?=
Date: Tue, 24 Jun 2014 11:34:07 +0100
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_0000_01CF8FA0.35D36720"
X-MimeOLE: Produced By Microsoft MimeOLE V6.1.7601.17609
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01CF8FA0.35D36720
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://www.irrational.net/2012/04/19/using-the-raspberry-pis-serial-port/
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML lang=3Den-US><HEAD><TITLE>Using the Raspberry Pi=E2=80=99s serial =
port | Clayton's Domain</TITLE>
<META charset=3DUTF-8><LINK rel=3Dprofile =
href=3D"http://gmpg.org/xfn/11"><LINK=20
rel=3Dstylesheet type=3Dtext/css=20
href=3D"http://www.irrational.net/wp-content/themes/twentyten/style.css" =
media=3Dall><LINK rel=3Dpingback =
href=3D"http://www.irrational.net/xmlrpc.php"><LINK=20
title=3D"Clayton's Domain =C2=BB Feed" rel=3Dalternate =
type=3Dapplication/rss+xml=20
href=3D"http://www.irrational.net/feed/"><LINK=20
title=3D"Clayton's Domain =C2=BB Comments Feed" rel=3Dalternate =
type=3Dapplication/rss+xml=20
href=3D"http://www.irrational.net/comments/feed/"><LINK=20
title=3D"Clayton's Domain =C2=BB Using the Raspberry Pi=E2=80=99s serial =
port Comments Feed"=20
rel=3Dalternate type=3Dapplication/rss+xml=20
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/feed/">
<SCRIPT type=3Dtext/javascript=20
src=3D"http://www.irrational.net/wp-includes/js/comment-reply.min.js?ver=3D=
3.8.1"></SCRIPT>
<LINK title=3DRSD rel=3DEditURI type=3Dapplication/rsd+xml=20
href=3D"http://www.irrational.net/xmlrpc.php?rsd"><LINK =
rel=3Dwlwmanifest=20
type=3Dapplication/wlwmanifest+xml=20
href=3D"http://www.irrational.net/wp-includes/wlwmanifest.xml"><LINK=20
title=3D"Making the Raspberry Pi a little less British" rel=3Dprev=20
href=3D"http://www.irrational.net/2012/04/18/making-the-raspberry-pi-less=
-british/"><LINK=20
title=3D"Moving from Tomboy to Gnote in Ubuntu 12.04" rel=3Dnext=20
href=3D"http://www.irrational.net/2012/04/27/moving-from-tomboy-to-gnote/=
">
<META name=3DGENERATOR content=3D"MSHTML 8.00.7601.18448"><LINK =
rel=3Dcanonical=20
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/"><LINK=20
rel=3Dshortlink href=3D"http://www.irrational.net/?p=3D79"></HEAD>
<BODY class=3D"single single-post postid-79 single-format-standard">
<DIV id=3Dwrapper class=3Dhfeed>
<DIV id=3Dheader>
<DIV id=3Dmasthead>
<DIV id=3Dbranding role=3Dbanner>
<DIV id=3Dsite-title><SPAN><A title=3D"Clayton's Domain"=20
href=3D"http://www.irrational.net/" rel=3Dhome>Clayton's Domain</A> =
</SPAN></DIV>
<DIV id=3Dsite-description>The personal website of Clayton =
Smith</DIV><IMG alt=3D""=20
src=3D"http://www.irrational.net/wp-content/themes/twentyten/images/heade=
rs/fern.jpg"=20
width=3D940 height=3D198> </DIV><!-- #branding -->
<DIV id=3Daccess role=3Dnavigation>
<DIV class=3D"skip-link screen-reader-text"><A title=3D"Skip to content" =
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#content">Skip=20
to content</A></DIV>
<DIV class=3Dmenu>
<UL>
<LI><A href=3D"http://www.irrational.net/">Home</A></LI>
<LI class=3D"page_item page-item-2"><A=20
=
href=3D"http://www.irrational.net/about/">About</A></LI></UL></DIV></DIV>=
<!-- #access --></DIV><!-- #masthead --></DIV><!-- #header -->
<DIV id=3Dmain>
<DIV id=3Dcontainer>
<DIV id=3Dcontent role=3Dmain>
<DIV id=3Dnav-above class=3Dnavigation>
<DIV class=3Dnav-previous><A=20
href=3D"http://www.irrational.net/2012/04/18/making-the-raspberry-pi-less=
-british/"=20
rel=3Dprev><SPAN class=3Dmeta-nav>=E2=86=90</SPAN> Making the Raspberry =
Pi a little less=20
British</A></DIV>
<DIV class=3Dnav-next><A=20
href=3D"http://www.irrational.net/2012/04/27/moving-from-tomboy-to-gnote/=
"=20
rel=3Dnext>Moving from Tomboy to Gnote in Ubuntu 12.04 <SPAN=20
class=3Dmeta-nav>=E2=86=92</SPAN></A></DIV></DIV><!-- #nav-above -->
<DIV id=3Dpost-79=20
class=3D"post-79 post type-post status-publish format-standard hentry =
category-uncategorized">
<H1 class=3Dentry-title>Using the Raspberry Pi=E2=80=99s serial =
port</H1>
<DIV class=3Dentry-meta><SPAN class=3D"meta-prep =
meta-prep-author">Posted on</SPAN>=20
<A title=3D"8:38 am"=20
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/"=20
rel=3Dbookmark><SPAN class=3Dentry-date>April 19, 2012</SPAN></A> <SPAN=20
class=3Dmeta-sep>by</SPAN> <SPAN class=3D"author vcard"><A class=3D"url =
fn n"=20
title=3D"View all posts by argilo"=20
href=3D"http://www.irrational.net/author/argilo/">argilo</A></SPAN> =
</DIV><!-- .entry-meta -->
<DIV class=3Dentry-content>
<P>The stock Debian image for the Raspberry Pi uses the UART as a serial =
console. I was able to connect to it from my Ubuntu laptop via my <A=20
href=3D"https://www.adafruit.com/products/70">3.3-volt USB FTDI TTL-232 =
cable</A>.=20
I connected Raspberry Pi=E2=80=99s ground pin to the ground pin of the =
FTDI, the=20
Rasberry Pi=E2=80=99s TX pin to the FTDI=E2=80=99s RX pin and vice =
versa. (The Raspberry Pi=E2=80=99s=20
pinout is available <A=20
href=3D"http://elinux.org/RPi_Low-level_peripherals">here</A>.) Then on =
my Ubuntu=20
laptop I installed minicom (<CODE>sudo apt-get install minicom</CODE>) =
and fired=20
it up with:</P>
<BLOCKQUOTE>
<P><CODE>minicom -b 115200 -o -D /dev/ttyUSB0</CODE></P></BLOCKQUOTE>
<P>After typing in a username, I got a password prompt and was able to =
log in.=20
Also, the serial console allowed me to see all the kernel output during =
boot,=20
which could be handy someday.</P>
<P>But I wanted to use the Raspberry Pi=E2=80=99s UART for my own =
purposes, not as a=20
serial console. To achieve that, I did the following.</P>
<P>First, I made a backup of the /boot/cmdline.txt file, which contains =
the=20
kernel parameters:</P>
<BLOCKQUOTE>
<P><CODE>sudo cp /boot/cmdline.txt=20
/boot/cmdline_backup.txt</CODE></P></BLOCKQUOTE>
<P>Then I edited it:</P>
<BLOCKQUOTE>
<P><CODE>sudo vi /boot/cmdline.txt</CODE></P></BLOCKQUOTE>
<P>Originally it contained:</P>
<BLOCKQUOTE>
<P><CODE>dwc_otg.lpm_enable=3D0 rpitestmode=3D1 =
console=3DttyAMA0,115200=20
kgdboc=3DttyAMA0,115200 console=3Dtty1 root=3D/dev/mmcblk0p2 =
rootfstype=3Dext4=20
rootwait</CODE></P></BLOCKQUOTE>
<P>I deleted the two parameters involving the serial port =
(<CODE>ttyAMA0</CODE>)=20
to get the following:</P>
<BLOCKQUOTE>
<P><CODE>dwc_otg.lpm_enable=3D0 rpitestmode=3D1 console=3Dtty1 =
root=3D/dev/mmcblk0p2=20
rootfstype=3Dext4 rootwait</CODE></P></BLOCKQUOTE>
<P>I rebooted (<CODE>sudo reboot</CODE>) to confirm that kernel output =
was no=20
longer going to the serial port. But the serial console was still =
available. So=20
I edited /etc/inittab:</P>
<BLOCKQUOTE>
<P><CODE>sudo vi /etc/inittab</CODE></P></BLOCKQUOTE>
<P>I commented out the following line:</P>
<BLOCKQUOTE>
<P><CODE>2:23:respawn:/sbin/getty -L ttyAMA0 115200=20
vt100</CODE></P></BLOCKQUOTE>
<P>Finally, I rebooted again and confirmed that nothing was touching the =
serial=20
port anymore. Then, to test it out I installed minicom on the Raspberry =
Pi:</P>
<BLOCKQUOTE>
<P><CODE>sudo apt-get install minicom</CODE></P></BLOCKQUOTE>
<P>And ran it:</P>
<BLOCKQUOTE>
<P><CODE>minicom -b 115200 -o -D /dev/ttyAMA0</CODE></P></BLOCKQUOTE>
<P>After firing up minicom on my Ubuntu laptop again, I was able to send =
data in=20
both directions!</P>
<P>Now to get the Raspberry Pi talking to an =
Arduino=E2=80=A6</P></DIV><!-- .entry-content -->
<DIV class=3Dentry-utility>This entry was posted in <A=20
title=3D"View all posts in Uncategorized"=20
href=3D"http://www.irrational.net/category/uncategorized/"=20
rel=3D"category tag">Uncategorized</A>. Bookmark the <A=20
title=3D"Permalink to Using the Raspberry Pi=E2=80=99s serial port"=20
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/"=20
rel=3Dbookmark>permalink</A>. </DIV><!-- .entry-utility --></DIV><!-- =
#post-## -->
<DIV id=3Dnav-below class=3Dnavigation>
<DIV class=3Dnav-previous><A=20
href=3D"http://www.irrational.net/2012/04/18/making-the-raspberry-pi-less=
-british/"=20
rel=3Dprev><SPAN class=3Dmeta-nav>=E2=86=90</SPAN> Making the Raspberry =
Pi a little less=20
British</A></DIV>
<DIV class=3Dnav-next><A=20
href=3D"http://www.irrational.net/2012/04/27/moving-from-tomboy-to-gnote/=
"=20
rel=3Dnext>Moving from Tomboy to Gnote in Ubuntu 12.04 <SPAN=20
class=3Dmeta-nav>=E2=86=92</SPAN></A></DIV></DIV><!-- #nav-below -->
<DIV id=3Dcomments>
<H3 id=3Dcomments-title>37 Responses to <EM>Using the Raspberry =
Pi=E2=80=99s serial=20
port</EM></H3>
<OL class=3Dcommentlist>
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://lavalink.com/2012/04/more-on-raspberry-pi-serial-ports/"=20
rel=3D"external nofollow">More on Raspberry Pi serial ports | LAVA: =
The Source=20
for Ports - Serial Port Experts</A></P></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://benosteen.wordpress.com/2012/04/24/raspberry-pis-onboard-s=
erial-connection/"=20
rel=3D"external nofollow">Raspberry Pi=E2=80=99s onboard Serial =
connection =C2=AB Random=20
Hacks</A></P></LI><!-- #comment-## -->
<LI id=3Dli-comment-6175 class=3D"comment even thread-even depth-1">
<DIV id=3Dcomment-6175>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/ff6adf689bdadc0c877d244c2165f773?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>Alex Gibson</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-6175">May=20
13, 2012 at 3:19 pm</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Hi there, great write-up that is accessible to linux n00bs like me. =
I=20
wonder if you can help me at all further please?<BR>I want to attach a =
serial=20
mouse systems mouse to my Pi. </P>
<P>I have a RS232 breakout board, and have swapped a MAX3232CPE chip =
in to=20
make sure it=E2=80=99s 3V3 friendly.<BR>I followed all of the above to =
help me detach=20
the console from ttyAMA0<BR>I learned about apt-get and installed =
inputattach=20
and ldattach.<BR>Set ldattach -s 1200 MOUSE /dev/ttyAMA0<BR>Set =
inputattach=20
=E2=80=93mousesystems /dev/ttyAMA0 &</P>
<P>sadly this does not seem to have resulted in, as I hoped, a working =
mouse=20
<IMG class=3Dwp-smiley alt=3D:(=20
=
src=3D"http://www.irrational.net/wp-includes/images/smilies/icon_sad.gif"=
> </P>
<P>Out of ideas =E2=80=93 all of the above was new to me!!! Can you =
offer any pointers=20
please?<BR>Cheers, Alex</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-6175", "6175", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D6175#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## -->
<UL class=3Dchildren>
<LI id=3Dli-comment-23319 class=3D"comment odd alt depth-2">
<DIV id=3Dcomment-23319>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/22f400c98fb3b9c8246623605df61ba2?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn><A class=3Durl=20
href=3D"http://theepiczoe.wordpress.com/"=20
rel=3D"external nofollow">yvonnezoe</A></CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-23319">February=20
27, 2013 at 10:53 pm</A> </DIV><!-- .comment-meta .commentmetadata =
-->
<DIV class=3Dcomment-body>
<P>hmmm? don=E2=80=99t your mouse directly after plugging into the =
USB port?=20
:O</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-23319", "23319", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D23319#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- =
#comment-## --></UL><!-- .children --></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://harizanov.com/2012/06/interfacing-rfm12b-to-raspberry-pi-f=
or-cheap/"=20
rel=3D"external nofollow">Interfacing RFM12B to Raspberry Pi for cheap =
|=20
Martin's corner on the web</A></P></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://baldwisdom.com/preparing-for-a-la-mode-raspberry-pi-and-ar=
duino/"=20
rel=3D"external nofollow">Bald Wisdom =C2=BB Blog Archive =C2=BB =
Preparing for =C3=A0 la mode:=20
Raspberry Pi and Arduino</A></P></LI><!-- #comment-## -->
<LI id=3Dli-comment-9698 class=3D"comment even thread-odd thread-alt =
depth-1">
<DIV id=3Dcomment-9698>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/082229b054de57f44f99f4a1e369b30b?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>Mikael Johansson</CITE> <SPAN =
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-9698">July=20
17, 2012 at 8:45 pm</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Thanks for that info. Now my little project works as it should!</P>
<P><A =
href=3D"http://www.youtube.com/watch?v=3D_W1WXnL9MeA&feature=3Dyoutu.=
be"=20
=
rel=3Dnofollow>http://www.youtube.com/watch?v=3D_W1WXnL9MeA&feature=3D=
youtu.be</A></P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-9698", "9698", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D9698#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI id=3Dli-comment-10043 class=3D"comment odd alt thread-even =
depth-1">
<DIV id=3Dcomment-10043>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/bb2422579b18b096f5bd52243387631d?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>redguy</CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-10043">August=20
17, 2012 at 8:11 am</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Most serial mouses =E2=80=9Csteal=E2=80=9D power from the other =
datalines (RTS/CTS etc.) to=20
power themselves.. the RS232 breakoutboard you are using does not =
support=20
these lines so the mouse is probably just not getting enough power to=20
work.</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-10043", "10043", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D10043#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI id=3Dli-comment-12325 class=3D"comment even thread-odd thread-alt =
depth-1">
<DIV id=3Dcomment-12325>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/d5bb71672f649bfd0799391b68143da8?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>Mitja</CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-12325">October=20
11, 2012 at 5:17 pm</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Great post</P>
<P>Can you maybe give me an advice how to enable the RPi serial port =
adapter=20
(USB) to send data from the RPi to a device with FTDI chip attached =
(connected=20
to RPi USB)?</P>
<P>Thanks<BR>Mitja</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-12325", "12325", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D12325#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI id=3Dli-comment-12620 class=3D"comment odd alt thread-even =
depth-1">
<DIV id=3Dcomment-12620>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/0be904a3e87a990a3858bf44c4f80767?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>radio_davio</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-12620">October=20
15, 2012 at 12:19 pm</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Hi, I have the RPi serial port working as a console connected to my =
PC.=20
Like you, I wish to use the serial port for another purpose, sending =
and=20
receiving ascii words to control off the shelf I/O cards. </P>
<P>I tried to edit the RPi=E2=80=99s cmdline.txt file; however, could =
not. Opening it=20
in vi, I get one line of code =E2=80=9Cdatadev=3Dmmcblk0ps=E2=80=9D. =
Then there are 21 lines=20
with only the tilda character and then one =
line:<BR>=E2=80=9C/boot/cmdline.txt=E2=80=9D=20
[Incomplete last line] 1 line, 17 characters</P>
<P>Any help would be much appreciated!</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-12620", "12620", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D12620#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## -->
<UL class=3Dchildren>
<LI id=3Dli-comment-12734 class=3D"comment even depth-2">
<DIV id=3Dcomment-12734>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/0be904a3e87a990a3858bf44c4f80767?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>radio_davio</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-12734">October=20
17, 2012 at 6:55 am</A> </DIV><!-- .comment-meta .commentmetadata =
-->
<DIV class=3Dcomment-body>
<P>Found my faults. Had installed Raspi using berry bootloader. This =
did=20
load and run; however, there were discrepancies. </P>
<P>After loading the OS image using wind32diskimager, all is fine. =
Now=20
looking at serial communication!</P>
<P>Thanks for the great info.</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-12734", "12734", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D12734#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- =
#comment-## --></UL><!-- .children --></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://www.raspberry-projects.com/pi/programming-in-c/c-libraries=
/using-the-uart"=20
rel=3D"external nofollow">Using the UART =C2=AB Raspberry Pi =
Projects</A></P></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://tinajalabs.wordpress.com/2012/09/02/raspberry-pi-as-an-xbe=
e-wireless-sensor-network-gateway/"=20
rel=3D"external nofollow">Raspberry Pi as an Xbee Wireless Sensor =
Network=20
Gateway =C2=AB Tinaja Labs</A></P></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://jeffskinnerbox.wordpress.com/2012/12/05/drive-a-16x2-lcd-w=
ith-the-raspberry-pi/"=20
rel=3D"external nofollow">Raspberry Pi Serial Communication: What, =
Why, and a=20
Touch of How | Jeff's Skinner Box</A></P></LI><!-- #comment-## -->
<LI id=3Dli-comment-18288 class=3D"comment odd alt thread-odd =
thread-alt depth-1">
<DIV id=3Dcomment-18288>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/c58ebeaa536cc5b26aff78fdb1406a5c?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>suman</CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-18288">December=20
13, 2012 at 8:41 am</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>I did follow the above instruction but still i am not able to use =
the=20
uart;<BR>I get the error as =E2=80=9CRead failed- : Resource =
temporarily=20
unavailable=E2=80=9D</P>
<P>Can you please help me solve the same.</P>
<P>Regards<BR>Suman</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-18288", "18288", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D18288#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## -->
<UL class=3Dchildren>
<LI id=3Dli-comment-18289=20
class=3D"comment byuser comment-author-argilo bypostauthor even =
depth-2">
<DIV id=3Dcomment-18289>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/73fde1ed12aeab0cbbeb680102120b01?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>argilo</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-18289">December=20
13, 2012 at 8:45 am</A> </DIV><!-- .comment-meta .commentmetadata =
-->
<DIV class=3Dcomment-body>
<P>Have you tried running your command or program as root (by =
putting =E2=80=9Csudo=E2=80=9D=20
at the start)?</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-18289", "18289", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D18289#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## -->
<UL class=3Dchildren>
<LI id=3Dli-comment-18721 class=3D"comment odd alt depth-3">
<DIV id=3Dcomment-18721>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo"=20
alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/c58ebeaa536cc5b26aff78fdb1406a5c?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>suman</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-18721">December=20
19, 2012 at 11:34 pm</A> </DIV><!-- .comment-meta .commentmetadata =
-->
<DIV class=3Dcomment-body>
<P>Ya i did but did not help me. <IMG class=3Dwp-smiley alt=3D:(=20
=
src=3D"http://www.irrational.net/wp-includes/images/smilies/icon_sad.gif"=
>=20
</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-18721", "18721", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D18721#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## -->
<UL class=3Dchildren>
<LI id=3Dli-comment-18724=20
class=3D"comment byuser comment-author-argilo bypostauthor even =
depth-4">
<DIV id=3Dcomment-18724>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar =
avatar-40 photo"=20
alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/73fde1ed12aeab0cbbeb680102120b01?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>argilo</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-18724">December=20
19, 2012 at 11:54 pm</A> </DIV><!-- .comment-meta =
.commentmetadata -->
<DIV class=3Dcomment-body>
<P>Unfortunately I=E2=80=99m out of ideas, and I won=E2=80=99t =
have my Pi on hand again=20
for another couple weeks so I can=E2=80=99t try anything out. =
I=E2=80=99d suggest asking=20
on the Raspberry Pi forums. Let me know if you find a solution =
so I can=20
add it to my article.</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-18724", "18724", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D18724#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- =
#comment-## --></UL><!-- .children --></LI><!-- #comment-## --></UL><!-- =
.children --></LI><!-- #comment-## --></UL><!-- .children --></LI><!-- =
#comment-## -->
<LI id=3Dli-comment-20160 class=3D"comment odd alt thread-even =
depth-1">
<DIV id=3Dcomment-20160>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/5868c2ad97c50a9f14ec09c9e7c3d91c?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>Dave</CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-20160">January=20
9, 2013 at 9:51 pm</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>The project I=E2=80=99m working on requires inputting ASCII strings =
from two=20
separate RS232 serial interfaces (operating at different speeds). My =
current=20
thinking is to just MUX them into GPIO 15 (RxD) one at a time (with =
the MUX=20
selector being one of the other GPIO pins). The data strings are =
repeating,=20
and no transmit from the RPI to either of the other devices is =
required. </P>
<P>I=E2=80=99m curious =E2=80=93 is there a simpler way to interface =
these two RS232 inputs to=20
the RPI than to have the external MUX logic? </P>
<P>Any and all input is appreciated =E2=80=93 Thanks!</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-20160", "20160", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D20160#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI id=3Dli-comment-20404 class=3D"comment even thread-odd thread-alt =
depth-1">
<DIV id=3Dcomment-20404>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/456fc5b35c18c97d4e42e6d43e77ee4c?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>Brendan</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-20404">January=20
12, 2013 at 5:21 pm</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>I tried commenting out =E2=80=9C2:23:respawn:/sbin/getty -L ttyAMA0 =
115200=20
vt100=E2=80=B3<BR>as you said but the my line was not exactly like =
this, it was=20
TO:2:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100=E2=80=B3</P>
<P>and was right at the end of the file</P>
<P>i did the sudo reboot ( the first time i ever did this command)</P>
<P>now my pi said =E2=80=9Ccannot Restart=E2=80=9D</P>
<P>now it wont start at all even if I turn it off and on again </P>
<P>After I put the soft float os then installed JDK Java</P>
<P>Compiled all the programs in the PI4j </P>
<P>now I have to start all over again</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-20404", "20404", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D20404#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://neophob.com/2013/01/serial-communication-between-raspberry=
-pi-and-arduino/"=20
rel=3D"external nofollow">Serial communication between Raspberry Pi =
and=20
Arduino</A></P></LI><!-- #comment-## -->
<LI id=3Dli-comment-22300 class=3D"comment odd alt thread-even =
depth-1">
<DIV id=3Dcomment-22300>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/27317e059c215b67f83855ad2fac62f5?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>NIklas</CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-22300">February=20
9, 2013 at 8:51 am</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>I have done the same thing as you said and I also use the C code =
from the=20
website <A=20
=
href=3D"http://www.raspberry-projects.com/pi/programming-in-c/uart-serial=
-port/using-the-uart#more-482"=20
=
rel=3Dnofollow>http://www.raspberry-projects.com/pi/programming-in-c/uart=
-serial-port/using-the-uart#more-482</A></P>
<P>However the receive does not for my Pi. the sending is working to =
be=20
fine.</P>
<P>However when I use screen /dev/ttyAMA0 57600, it pops up the window =
and=20
close it.<BR>Then I try my code it works. I do not know why, could you =
help=20
please</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-22300", "22300", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D22300#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI id=3Dli-comment-23280 class=3D"comment even thread-odd thread-alt =
depth-1">
<DIV id=3Dcomment-23280>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://0.gravatar.com/avatar/22f400c98fb3b9c8246623605df61ba2?s=3D=
40&d=3Dhttp%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>yvonnezoe</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-23280">February=20
27, 2013 at 12:20 am</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Hey there. how do i get back the serial console ? <IMG =
class=3Dwp-smiley=20
alt=3D:(=20
=
src=3D"http://www.irrational.net/wp-includes/images/smilies/icon_sad.gif"=
> i=20
followed through your tutorial without realizing what i need is =
actually to=20
communicate with my computer through the UART=E2=80=A6<BR>i followed =
this guide <A=20
=
href=3D"http://www.savagehomeautomation.com/projects/raspberry-pi-install=
ing-a-rs232-serial-port.html"=20
=
rel=3Dnofollow>http://www.savagehomeautomation.com/projects/raspberry-pi-=
installing-a-rs232-serial-port.html</A>=20
but i could not get any reply from R-Pi=E2=80=A6 so i doubt thats the =
problem. what=20
should i do now??</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-23280", "23280", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D23280#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI id=3Dli-comment-25024 class=3D"comment odd alt thread-even =
depth-1">
<DIV id=3Dcomment-25024>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/db19661e0425f938e3084083014208db?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>Lonely Coder</CITE> <SPAN=20
class=3Dsays>says:</SPAN> </DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-25024">March=20
16, 2013 at 6:07 pm</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Great stuff, am able to talk to my XBee after disabling both of =
those=E2=80=A6=20
Another site only mentioned disabling the first one, so I battled for=20
awhile.</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-25024", "25024", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D25024#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
href=3D"http://michael.bouvy.net/blog/2013/04/02/raspberry-pi-xbee/"=20
rel=3D"external nofollow">Raspberry PI + Xbee =C2=AB Michael's =
Blog</A></P></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://vernonbreet.wordpress.com/2013/04/30/the-jes-javafx-applic=
ation-part-3/"=20
rel=3D"external nofollow">The JES / JavaFX Application, Part 3. | =
Vernon Breet's=20
Blog</A></P></LI><!-- #comment-## -->
<LI id=3Dli-comment-37476 class=3D"comment even thread-odd thread-alt =
depth-1">
<DIV id=3Dcomment-37476>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/9ffe9368125a59cfb89197f86ee38378?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn><A class=3Durl =
href=3D"http://www.parsnav.com/"=20
rel=3D"external nofollow">Miralay</A></CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-37476">July=20
11, 2013 at 4:31 am</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>Hi,</P>
<P>we have one problem for about Rs232</P>
<P>example I want give or take 1 data Pi to PC, I can send to PC no =
problem=20
but I cant take Pc to Pi any data=E2=80=A6 if I send 30 times or 40 =
times after I can=20
send PC to Pi=E2=80=A6 then it be normaly=E2=80=A6 but if I push =
caracter from keyboard after=20
lock serial com=E2=80=A6 after I send again 30 or 40 times data then =
open again=E2=80=A6 after=20
normaly=E2=80=A6 </P>
<P>I tried resister then I use max3232 but no change=E2=80=A6 only I =
have problem for=20
Pi to PC send wire=E2=80=A6</P>
<P>example some example I have from internet =E2=80=9CPi serial com. =
to ardiuno=E2=80=9D but=20
this not work=E2=80=A6</P>
<P>I will wait your helps =E2=80=A6</P>
<P>thanks a lot=E2=80=A6</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-37476", "37476", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D37476#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://newyear2006.wordpress.com/2013/08/03/raspberry-pi-und-seri=
elle-schnittstelle/"=20
rel=3D"external nofollow">Raspberry Pi und serielle Schnittstelle | =
Das nie=20
endende Chaos!</A></P></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl =
href=3D"http://blagg.tadkom.net/2013/08/06/10-gps/"=20
rel=3D"external nofollow">$10 GPS | /dev/random</A></P></LI><!-- =
#comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
=
href=3D"http://www.raspberry-projects.com/pi/pi-operating-systems/raspbia=
n/io-pins-raspbian/uart"=20
rel=3D"external nofollow">UART =C2=AB Raspberry Pi =
Projects</A></P></LI><!-- #comment-## -->
<LI class=3D"post pingback">
<P>Pingback: <A class=3Durl=20
href=3D"http://www.danielcasner.org/garden-automation-part-1/"=20
rel=3D"external nofollow">=C2=BB Garden Automation Part 1 Daniel =
Casner</A></P></LI><!-- #comment-## -->
<LI id=3Dli-comment-43222 class=3D"comment odd alt thread-even =
depth-1">
<DIV id=3Dcomment-43222>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/59dcd36ca21ba38a235aa0a90184a83b?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn><A class=3Durl=20
href=3D"http://www.andrewscheller.co.uk/"=20
rel=3D"external nofollow">AndrewS</A></CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-43222">September=20
8, 2013 at 7:40 am</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>I=E2=80=99ve written a nice little easy-to-use script to automate =
the task of=20
disabling (and re-enabling) the Raspberry Pi=E2=80=99s serial =
console:<BR><A=20
href=3D"https://github.com/lurch/rpi-serial-console"=20
=
rel=3Dnofollow>https://github.com/lurch/rpi-serial-console</A></P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-43222", "43222", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D43222#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->
<LI id=3Dli-comment-50083 class=3D"comment even thread-odd thread-alt =
depth-1">
<DIV id=3Dcomment-50083>
<DIV class=3D"comment-author vcard"><IMG class=3D"avatar avatar-40 =
photo" alt=3D""=20
=
src=3D"http://1.gravatar.com/avatar/552a825f7ebd859d005b84763565bf0a?s=3D=
40&d=3Dhttp%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9=
bb6523536%3Fs%3D40&r=3DG"=20
width=3D40 height=3D40> <CITE class=3Dfn>SeanR</CITE> <SPAN =
class=3Dsays>says:</SPAN>=20
</DIV><!-- .comment-author .vcard -->
<DIV class=3D"comment-meta commentmetadata"><A=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/#comment-50083">November=20
17, 2013 at 10:27 am</A> </DIV><!-- .comment-meta .commentmetadata -->
<DIV class=3Dcomment-body>
<P>The simplest way to do it is just comment out the line in =
/etc/inittab that=20
uses the serial port</P>
<P>eg<BR>#2:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100</P>
<P>Then reboot.</P>
<P>The serial port will be active while the system boots, but then =
will be=20
idle once booting is complete.</P></DIV>
<DIV class=3Dreply><A class=3Dcomment-reply-link=20
onclick=3D'return addComment.moveForm("comment-50083", "50083", =
"respond", "79")'=20
=
href=3D"http://www.irrational.net/2012/04/19/using-the-raspberry-pis-seri=
al-port/?replytocom=3D50083#respond">Reply</A>=20
</DIV><!-- .reply --></DIV><!-- #comment-## --></LI><!-- #comment-## =
-->