Professional Documents
Culture Documents
FAQRegisterLogin Search
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
1/9
6/26/13
IsyourdeviceserialTTLorRS232? Thereisnoreasonyoucan'tusetheserialportoftheRPi.Eitherofthesewillworkandyourserialdevicewon't knowthedifference: 1)Connecta3.3VTTLtoRS232adaptertotheserialport(GPIO)ontheRPi. (IfyourdeviceisserialTTL,thenyoucanconnectthedevicesdirectlyaslongasbothsystemsareusing3.3V levels). Or 2)ConnectaUSBtoserialadaptertoaUSBportontheRPi. (IfyourdeviceisserialTTLthenuseaUSBtoTTLserialconverter) Ipreferthe1stwayasIdon'twanttotieupaUSBport. ThisishowIconnectedtomyserial(RS232)weatherstation. http://64.13.91.137:86/Comp/RPi/Serial.html GohereformyRPiwriteup.Basicconfig,SerialPortaddonetc: http://64.13.91.137:86/Comp/RPi/Rpi.html Posts:308 Joined:SatJan12,20133:01am Location:GrantsPass,OR,USA bybalajivFriJun07,201310:26am SteveSpencerwrote:YouwouldtypicallyuseaUSB/Serial converter.Therearetwobasictypes.Thefirstoneiscommonly usedbypeopletalkingtomicrocontrollersandsimilardevices,it hasaUSBatoneend,andawiringconnector(usually4or6pins orsockets)attheother,andisdesignedtouseTTLlevelvoltages. Thesecondisa"true"USB/SerialconverterandhasUSBatone endandaDB9orDB25(althoughnotoftenthesedays!)connector attheother.ThevoltagelevelsatthatendareRS232"standard" andshouldnotbeconnecteddirectlytoanythingonthePi. BothkindsarefreelyavailablefromonlinestoressuchasAmazon,
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
2/9
6/26/13
Thanks,Steve.Mostlikely,IwouldhavetouseUSBtoSerial"true"connector.So,Iwouldhavetoconnectthe USBendtoRPiandtheSerialendtothedevice,say,aPC.Isitpossible? Ifyes,doIneedanydriversforthesame? Oncetheconnectionissuccessful,Ineedtouselsusbordmesg. Pleasecorrectme,ifmyunderstandingiswrong. Posts:24 Joined:MonMay06,20136:08am bySteveSpencerFriJun07,201311:05am balajivwrote:[Thanks,Steve.Mostlikely,IwouldhavetouseUSB toSerial"true"connector.So,IwouldhavetoconnecttheUSBend toRPiandtheSerialendtothedevice,say,aPC.Isitpossible? Ifyes,doIneedanydriversforthesame? Oncetheconnectionissuccessful,Ineedtouselsusbordmesg. Pleasecorrectme,ifmyunderstandingiswrong.
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
3/9
6/26/13
recognised. Usingdmesgwillletyouseethekernelmessages,andwillprobablyincludetheconnectionoftheUSBdevice, andshouldtellyouthedevicename,whichwillbe/dev/SOMETHING Steve Posts:24 Joined:ThuMar28,20139:19am Location:Nottingham,UK bybalajivFriJun07,20131:00pm SteveSpencerwrote: balajivwrote:[Thanks, Steve.Mostlikely,I wouldhavetouseUSB toSerial"true" connector.So,Iwould havetoconnectthe USBendtoRPiand theSerialendtothe device,say,aPC.Isit possible? Ifyes,doIneedany driversforthesame? Oncetheconnectionis successful,Ineedto uselsusbordmesg. Pleasecorrectme,if myunderstandingis wrong.
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
4/9
6/26/13
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
5/9
6/26/13
Bus001Device003:ID0424:ec00StandardMicrosystemsCorp. Bus001Device006:ID067b:2303ProlificTechnology,Inc.PL2303SerialPort Bus001Device005:ID413c:2003DellComputerCorp.Keyboard Onusingthedmesgcommand: pi@raspberrypi~$dmesg|greptty [0.000000]Kernelcommandline:dma.dmachans=0x7f35bcm2708_fb.fbwidth=1360bcm2708_fb.fbheight=768 bcm2708.boardrev=0xebcm2708.serial=0xdfe8d5basmsc95xx.macaddr=B8:27:EB:E8:D5:BAsdhci bcm2708.emmc_clock_freq=100000000vc_mem.mem_base=0x1ec00000vc_mem.mem_size=0x20000000 dwc_otg.lpm_enable=0console=ttyAMA0,115200kgdboc=ttyAMA0,115200console=tty1root=/dev/mmcblk0p2 rootfstype=ext4elevator=deadlinerootwait [0.000000]console[tty1]enabled [0.584216]dev:f1:ttyAMA0atMMIO0x20201000(irq=83)isaPL011rev3 [0.908140]console[ttyAMA0]enabled [31328.703340]usb11.2:pl2303converternowattachedtottyUSB0 Canyoupleaseletmeknowitisfine?Ifnot,whatistheissue? Thanks. Posts:24 Joined:MonMay06,20136:08am bySteveSpencerMonJun10,20131:53pm Bus001Device006:ID067b:2303ProlificTechnology,Inc. PL2303SerialPort
[31328.703340]usb11.2:pl2303converternowattachedto ttyUSB0
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
6/9
6/26/13
Posts:24 Joined:ThuMar28,20139:19am Location:Nottingham,UK bybalajivMonJun10,20132:02pm Steve, Iamplanningtouseminicom.Isitfine? AlsoIwasexpectingsomethinglikettyS*astheserialportdevice.Isitnottherightexpectation? Posts:24 Joined:MonMay06,20136:08am bybalajivMonJun10,20132:59pm Iamreadingliketheoutputofdmesgcommandmustbelike: $dmesg|greptty Output: [37.531286]serial8250:ttyS0atI/O0x3f8(irq=4)isa16550A [37.531841]00:0b:ttyS0atI/O0x3f8(irq=4)isa16550A [37.532138]0000:04:00.3:ttyS1atI/O0x1020(irq=18)isa16550A Posts:24 Joined:MonMay06,20136:08am byExcalMonJun10,20133:51pm Ihavebadexperienceswithusbtoserial. Iorderedhttp://www.ebay.com/itm/NewMAX3232RS232SerialPortToTTLConverterModuleDB9Connector 335VInput/170883124088?pt=LH_DefaultDomain_0&hash=item27c96d8b78for2euro,stillinshippingthough, illletyouknowtheresults. LasteditedbyExcalonTueJun11,201310:15am,edited1timeintotal. Posts:3 Joined:MonJun10,20133:43pm bySteveSpencerMonJun10,20133:54pm Minicomshouldbefineforaterminalemulationprogram. OnthePi,yourserialport(fromtheUSB/Serial)is/dev/ttyUSB0.Theoutputyoujustquotedhas,Iguess,come fromadifferentmachine,whichisequippedwithwhatappeartobetwogenuineUARTchips(16550Achips,to beexact),andtheyresultinportswithdifferentnamesonthatmachine.
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
7/9
6/26/13
AtsomepointintheDebiansoftware,someonedecidedthat/dev/ttyS???wouldbegoodnamesfor"proper" serialports,and/dev/ttyUSB???wouldbegoodnamesforserialportswhichwereUSB/Serialconverters. Steve Posts:24 Joined:ThuMar28,20139:19am Location:Nottingham,UK bybalajivWedJun12,201312:49pm Itriedscreenprogram.Itseemstobehelpful. Cantherebesomethingbetter? Posts:24 Joined:MonMay06,20136:08am byjujubeeThuJun13,20137:39pm Heyguys, IamalsousingausbtoserialadapterontheRaspberryPiandIamhavingsomeissues.TheRaspberryPi (usbend)isconnectedtoaRoomba/iRobotCreate(serialend).IhaveusedscreenandminicomandIcannot sendcommandstotheroomba,eventhoughIcanseethereisaconnection....andwhenIpoweronthe Roombaitsendsdatatothescreen.Ihavetriedmessingwiththesetupinminicomandplayedwiththevarious settingsandnoluck.IamreceivingdataformtheRoombabutIcannotgetthePitosenddatatoit.Anyhelpor advicewouldbeappreciated.Thanks! Posts:1 Joined:WedJun12,20136:17pm bybalajivTueJun18,20134:46pm Thankseveryonefortheguidance. IwasabletoconnecttheRPitoanotherdevicethroughserialtoUSBconverter.Iamabletoconnecttothe deviceusingthecommand: screen/dev/ttyUSB0115200 Ongivingthecommand,Ireachablankscreenontypingenter,IgetCFEpromptwhichhashelpcommands. WhenItrythesamewithanotherdevice,IamnotgettinganypromptatthesametimeIamseeingsomejunk characterwhatcouldbetheissuehere? Thanksinadvance
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
8/9
6/26/13
Whoisonline Usersbrowsingthisforum:Noregisteredusersand9guests
www.raspberrypi.org/phpBB3/viewtopic.php?f=36&t=46321
9/9