FirefoxOS/RPiB2: Difference between revisions

Jump to navigation Jump to search
mac debugging and log
(color change)
(mac debugging and log)
Line 269: Line 269:


If you are unsure of the COM port, run [[https://en.wikipedia.org/wiki/Device_manager Device Manager]] and look under 'Ports'. USB-attached serial adapters should have the name of the adapter shown (the Adafruit cable comes up as 'Prolific USB-to_Serial Comm Port'.
If you are unsure of the COM port, run [[https://en.wikipedia.org/wiki/Device_manager Device Manager]] and look under 'Ports'. USB-attached serial adapters should have the name of the adapter shown (the Adafruit cable comes up as 'Prolific USB-to_Serial Comm Port'.
===Mac OS X terminal set-up===
OSX includes terminal emulation software that you can use from the command line, so we only need to install the USB drivers for the cable.
[[http://www.adafruit.com/downloads/md_PL2303_MacOSX-10_6up_v1_5_1.zip Check out the most recent Mac Driver from prolific]]
If using Lion or Mountain Lion or later OS X, try this driver here http://changux.co/osx-installer-to-pl2303-serial-usb-on-osx-lio
Both downloads are standard Mac installers. Accept all defaults when prompted.
==== Using Screen ====
Open a Terminal window and issue the command:
screen /dev/cu.usbserial 115200
The device will have a slightly different name to mine. So, type the line above as far as "cu." then press the TAB key to auto-complete to whatever your device is called, before adding 115200 (which is the baud rate) to the end.


===Connect All The Things===
===Connect All The Things===
Line 307: Line 324:
and so on. Eventually, you should see a login prompt:
and so on. Eventually, you should see a login prompt:


  Android raspi2 ttyAMA0
  shell@rpib2:/ $
rpib2@hostname$


You can then log in as you would with a keyboard and screen.
You can then log in as you would with a keyboard and screen.
===Keeping Log Copy===
If you are debugging, maybe you will be interested on keep a copy of the logs. If you are using '''screen''' you can do it adding '''-L''' flag. For example:
screen -L /dev/cu.usbserial 115200
Then you will have a file named '''screenlog.0''' with a record of all the logs you got when you run '''screen''' command.


== Need Help? ==
== Need Help? ==
Confirmed users
38

edits

Navigation menu