manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Not able to type on serial console conncted rasberry PI

Sun Jun 15, 2014 8:35 am

I have recently purchased the rasberry pi started kit.

Have installed the whezzy rasbian and trying to connect through serial console. I can see the OS is booting up and it shows me the login screen. But i cannot enter any character or command from the laptop keyboard. I tried using the external keyboard but still the same issue.

See the attached cosole.jpg which shows the os is booted up and login screen is present but i cannot type any command here.

Let me know what i am missing here ?

Thanks,
Manish
Attachments
console.jpg
console.jpg (55.01 KiB) Viewed 8021 times

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Not able to type on serial console conncted rasberry PI

Sun Jun 15, 2014 9:29 am

What connections have you made between the Pi and PC? How? What software are you running on the PC?

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 16, 2014 4:03 am

I am using windows machine and installed the com driver. PI is connected through USB Micro-B Cable for powering.

and black, green and white wires to the GPIO header using TTL cable

I am using putty to connect to PI, it shows the booting sequence but keyboard doesn't work. Shall i use the external adaptar for powering the device.

Thanks,

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 16, 2014 8:50 am

manishg wrote:I am using windows machine and installed the com driver. PI is connected through USB Micro-B Cable for powering.

and black, green and white wires to the GPIO header using TTL cable

I am using putty to connect to PI, it shows the booting sequence but keyboard doesn't work. Shall i use the external adaptar for powering the device.

Thanks,
To help we need to know the model of serial dongle you are using and the connections you have made between the Pi and dongle. I have no idea what the black, green, and white wires are connected between.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5618
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 16, 2014 12:43 pm

joan wrote:
manishg wrote:I am using windows machine and installed the com driver. PI is connected through USB Micro-B Cable for powering.
and black, green and white wires to the GPIO header using TTL cable
I am using putty to connect to PI, it shows the booting sequence but keyboard doesn't work. Shall i use the external adaptar for powering the device.
Thanks,
To help we need to know the model of serial dongle you are using and the connections you have made between the Pi and dongle. I have no idea what the black, green, and white wires are connected between.
+1
If you can, post a picture or link. FWIW, take a look at what I've done here:
http://www.cpmspectrepi.webspace.virgin ... pters.html
To check the keyboard independently of the Pi perform a loopback test** (as shown - in your case with hyperterminal since you're Windows based). Also, whilst doing that, double-check that the device is producing 3.3V signal levels, not 5V.
Trev.
** connect the device's Tx lead back to it's Rx lead
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Wed Jun 18, 2014 3:46 am

joan wrote:
manishg wrote:I am using windows machine and installed the com driver. PI is connected through USB Micro-B Cable for powering.

and black, green and white wires to the GPIO header using TTL cable

I am using putty to connect to PI, it shows the booting sequence but keyboard doesn't work. Shall i use the external adaptar for powering the device.

Thanks,
To help we need to know the model of serial dongle you are using and the connections you have made between the Pi and dongle. I have no idea what the black, green, and white wires are connected between.

I have purchased the Raspberry Pi Starter Pack from adafruit website.(http://www.adafruit.com/products/1014)
It contains
> Raspberry Pi Model B 512MB RAM
> 3' long USB Micro-B Cable -
> 5V 1A power adapter -
> USB TTL console cable (http://www.adafruit.com/products/954)-
>SD Card 4GB size
I did the connection mentioned @https://learn.adafruit.com/adafruits-ra ... gpio-setup

Used the putty software on windows to serial connect the pi, it showed me the OS is booting but i am not able to type anything on the login prompt (see in the attached image)

Let me know what other info you need to debug the problem.

Thanks

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Not able to type on serial console conncted rasberry PI

Wed Jun 18, 2014 4:01 am

Last attempt.

What connections have you made between the Pi and the dongle?

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Wed Jun 18, 2014 9:25 am

joan wrote:Last attempt.

What connections have you made between the Pi and the dongle?

I have USB to TTL Serial Cable (see image http://www.adafruit.com/products/954), it has four wires (red, black, green, white)

I have connected the pi using this cable through USB port of my laptop as follows

The red lead is connected to 5V pin of PI,
The black lead to GND PIN ,
The white lead to TXD PIN.
The green lead to RXD PIN

see the following image for exact connection.
https://learn.adafruit.com/adafruits-ra ... t-the-lead

Let me know if it helps

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Not able to type on serial console conncted rasberry PI

Wed Jun 18, 2014 9:43 am

That looks OK.

Are you powering through the microUSB? If so don't connect the power lead from the dongle.

I can't see this been a baud rate problem as both ends will normally be set to the same rate for TX and RX. It should just work in both directions.

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Wed Jun 18, 2014 11:05 am

joan wrote:That looks OK.

Are you powering through the microUSB? If so don't connect the power lead from the dongle.

I can't see this been a baud rate problem as both ends will normally be set to the same rate for TX and RX. It should just work in both directions.
I tired with both ways, first without powering through microUSB
and secondaly with microUSB and removing the lead from dongle,
with both the options, problem is still there.


User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13092
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: Not able to type on serial console conncted rasberry PI

Wed Jun 18, 2014 1:05 pm

perhaps its a hardware handshake problem?
disable handshaking in your windows comms program.
connect rx and tx of the USB dongle together, and see if your typed characters are echoed.

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5618
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: Not able to type on serial console conncted rasberry PI

Wed Jun 18, 2014 6:50 pm

mahjongg wrote:perhaps its a hardware handshake problem?
disable handshaking in your windows comms program.
connect rx and tx of the USB dongle together, and see if your typed characters are echoed.
+1
(This is what I referred to as a "loopback test" in my previous post, although I forgot to mention "handshaking" :oops: )
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 23, 2014 7:30 am

mahjongg wrote:perhaps its a hardware handshake problem?
disable handshaking in your windows comms program.
connect rx and tx of the USB dongle together, and see if your typed characters are echoed.
Will check and update you ASAP

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 23, 2014 4:30 pm

Now i have started getting the following errors on the screen. (No login prompt)

[ 87.033419] SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) debug(g) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w)

I am using 4GB SD card with wheezy-raspbian loaded. Have formated the card and reloaded the OS again but it keeps on crashing.

Thanks

User avatar
joan
Posts: 14935
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 23, 2014 4:35 pm

You are getting some symptoms associated with a poor power supply. If you have a meter it would be worth checking the voltage between TP1 and TP2 on the Pi. It should be 5 volts.

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 23, 2014 10:47 pm

manishg wrote:[ 87.033419] SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) debug(g) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w)
I think that can also be caused if your PC is sending "garbage" characters to the Pi's serial port - the Pi sees them as valid debugging commands, and then goes "strange" ;)
Double check the COM Port settings on the PC side.

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Tue Jun 24, 2014 6:47 am

AndrewS wrote:
manishg wrote:[ 87.033419] SysRq : HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) debug(g) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w)
I think that can also be caused if your PC is sending "garbage" characters to the Pi's serial port - the Pi sees them as valid debugging commands, and then goes "strange" ;)
Double check the COM Port settings on the PC side.
my com port settings are as follows:
baud=115200
Data Bits=8
stop bits=1
parity=None
Flow Control=None

I tried joining the tx and rx and was able to see the characters what i was sending.

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Tue Jun 24, 2014 6:51 am

joan wrote:You are getting some symptoms associated with a poor power supply. If you have a meter it would be worth checking the voltage between TP1 and TP2 on the Pi. It should be 5 volts.
will check the voltage

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Not able to type on serial console conncted rasberry PI

Tue Jun 24, 2014 12:28 pm

There's a similar-sounding problem here where it turns out the problem was actually a physically damaged RX pin on the Pi :?

manishg
Posts: 10
Joined: Sun Jun 15, 2014 8:16 am

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 30, 2014 4:05 am

Untitled.gif
Untitled.gif (36.62 KiB) Viewed 7121 times
Untitled.gif
Untitled.gif (36.62 KiB) Viewed 7121 times
Untitled.gif
Untitled.gif (36.62 KiB) Viewed 7121 times
joan wrote:You are getting some symptoms associated with a poor power supply. If you have a meter it would be worth checking the voltage between TP1 and TP2 on the Pi. It should be 5 volts.
I checked and it was 5 volts.
I tried with the usb internal power source (attaching red wire to th pi board) . I was able to login but suddenly the crash messages coming in (see the attached image). I have also double check the com port setting and PC is not sending the garbage character to the particular com port. Is something woring with board itself ?

User avatar
AndrewS
Posts: 3625
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
Contact: Website

Re: Not able to type on serial console conncted rasberry PI

Mon Jun 30, 2014 5:58 pm

Still got no idea what's causing your problem, but http://tldp.org/HOWTO/Remote-Serial-Con ... sysrq.html suggests a couple of ways of disabling the SysRq key, which is what your images appear to be showing.

Return to “Troubleshooting”