APU set up with Wi-Fi
-
Hmm, well that's all that's requiered in Xubuntu but Mint may be different (different versions of Mint too) but usually isn't because they're all Debian based.
You may need to reboot if logging out and back in didn't do it.
You may also need to do:sudo chmod a+rw /dev/ttyUSB0
https://fedorahosted.org/fldigi/wiki/Documentation/HOWTO/Serial_Port_Setup
Steve
-
Thanks. Yes, I had actually tried the chmod a+rw /dev/ttyUSB0, but same errors.
I tried:
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 9600 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 19200 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 38400 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 115200 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.
-
That is the expected behaviour if you're not connected to a serial console. Since your cable is not a null-modem you aren't seeing anything. Putty has a gui you can use to set the serial speed etc.
Steve
-
Okay, I bought a Null Modem cable.
Plugged into APU and USB cable.I tried:
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 9600 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 19200 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 38400 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 115200 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY and green blinking cursor, but unable to type anything.
-
Hmm. Well you clearly have some problem there. Do you have anything else you can use to prove the serial terminal with?
Steve
-
I'm trying to think of a way of proving the serial terminal.
All I can think of is
trying another Null modem cable
trying another computer's USB port. (I tried Linux, Mac and Windows).I thought the MicroSD 8GB card might not have the pfSense OS file properly, but I understand this would not effect the serial connection needed to configure the MicroSD 8GB card?
-
One simple way to test basic connectivity is to use a paper clip or short piece of wire to connect the Tx and Rx pins at the end of the null modem cable. Take the end of the null-modem cable (where it connects to the APU) and connect pins 2 and 3. See photo. Now when you open Putty, at any speed, you should see anything you type echoed back to you.
Steve
-
Thanks, that's a handy test to try :-)
I disconnected the Null Modem cable from the APU.
I stuck a paper clip into the Null Modem cable pins 2 and 3.
On my computer > Terminal > $ putty > putty window appears >
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 9600 > Open > Black window opens with the Title putty and another windows opens with PuTTY Fatal Error. Unable to open connection to : Unable to open serial port.Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 19200 > Open > Black window opens with the Title putty and another windows opens with PuTTY Fatal Error. Unable to open connection to : Unable to open serial port.
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 38400 > Open > Black window opens with the Title putty and another windows opens with PuTTY Fatal Error. Unable to open connection to : Unable to open serial port.
Terminal > $ putty > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 115200 > Open > Black window opens with the Title putty and another windows opens with PuTTY Fatal Error. Unable to open connection to : Unable to open serial port.
-
That's back to the permissions problem. Try chmodding the port again.
Steve
-
Oops, I had the USB in the 2nd computer.
Now with the USB back in this 1st computer and the paper clip in the Null modem cable pins 2 and 3.
Putty > black screen opens > I can type in the black window > Enter > cursor moves to top left of black screen?Tried Terminal > $ sudo chmod a+rw /dev/ttyUSB0 > Enter > putty > black window and same error of cursor moves to top left of black screen when I type and press Enter.
With the paper clip pulled out of pins 2 and 3, the Putty black window opens, but I can't type.
-
I'm not sure I understand. You can type and cursor moves but you don't see any text?
Steve
-
Sorry if was unclear.
I can type text, however I thought I need to press Enter, which would then 'echo' the text I just typed.
E.g., test > Enter
testRather, when I type text in and press Enter, the cursor moves to the top left of the black screen. If I start typing again, the new text goes over the old text.
-
No that's all good. If you're seeing any text at all then the cable is working.
Usually the serial console software running whatever you're attached to received what you're typing and echoes back whatever is appropriate including moving to a new line and the CLI prompt etc. Just connecting Rx and Tx you are seeing simply the raw output of the serial terminal.So that has proved Putty and the USB-Serial converter are working correctly. It has proved the serial cable you using has pins 2 and 3 connected BUT it has not proved that it's a null-modem cable and not a straight through cable since pins 2 and 3 could be connected either way. However since you have a multimeter it's easy to prove. :) In a null-modem cable (of any type) pins 2 and 3 are crossed in the cable such that pin 2 at one end is connected to pin 3 at the other. Using two paperclips and the meter on it's continuity range (often beeps when connected) you can test this.
Steve
-
Cable black in Multimeter: COM.
Cable black in Null modem cable end 2.
Cable Null Modem end 1: paper clip in pins 2 and 3.
Cable Null Modem end 2: paper clip in pins 2 and 3.
Cable red in Multimeter: VohmsmA.
Cable red in Null modem cable end 1.
Multimeter dial setting: 200 Ohms.
Multimeter display: 1.6 up to 5.4. -
Ah, sorry I should have explained myself better. You want to test between just pin 2 at one end and pin 3 at the other end.
Steve
-
Ok, so
Cable black in Multimeter: COM.
Cable black in Null modem cable end 1, pin 2.
Cable Null Modem end 1: paper clip in pin 2.
Cable Null Modem end 2: paper clip in pin 3.
Cable red in Multimeter: VohmsmA.
Cable red in Null modem cable end 2, pin 3.
Multimeter dial setting: 200 Ohms.
Multimeter display: 1.1. -
Ok that seems to confirm it's a null modem cable.
So you should be able to see some output from the APU at 115,200bps (I think).Steve
-
Ok, that's good to be definite the Null modem cable and serial female/USB male cable is not a problem.
Trying Terminal > $ putty > Enter > Connection type: Serial > Serial line: /dev/ttyUSB0 > Speed: 115200 > Open > Black window opens with the Title /dev/ttyUSB0 - PuTTY, but unable to type anything.
Maybe this is a step forward, as before the error used to appear in a 2nd window: PuTTY Fatal Error. Unable to open connection to : Unable to open serial port.:
Maybe the APU BIOS (or whatever the APU is meant to function until the pfSense OS is installed from the MicroSD card) should be doing something?
-
Yes reading the apu manual you should see some output from coreboot even if you don't have any storage card loaded.
Do you see the three leds light when you power it up?Steve
-
Thanks, yes I had briefly seen the
manual > page 6 > Getting started… > "The board should now power on. All three LEDs will light during BIOS POST...";
and picture.
Didn't realise it was the correct manual though as there's usually so many APU search results...so that's good I was kind of on the right track.Hmm, still no BIOS messages on the serial console?
Yes, the three LED lights that are solid green are (see attachment):
D7 (bottom left),
D10 (bottom right) and
D11 (2nd from bottom right).The power supply is:
AC ADAPTOR R3213
MODEL: KSAS0151200150HA
INPUT: 100-240V~50/60Hz 0.4A
OUTPUT: 12V---1.5A
For I.T.E. use onlyMaybe the power supply needs to be increased to 2 Amps?

