Started by Oclistediscussion, September 29, 2012, 07:21:03 pm
Quote from: dpwhittaker on September 29, 2012, 08:02:30 pmYou have pictured a usb-serial-m (male pins), but I hope you actually have a usb-serial-f (female headers), which you have plugged into the pins next to the power supply (red-RX, green-TX, blue-GND). If you do actually have the usb-serial-m, you can plug it into CON2 (RCA side, RCA end = pin 1), pins 4 (blue-GND), 13 (red-RX), and 14 (green-TX).
QuoteOnce you get that set up, you need a serial terminal emulator. If your notebook runs linux, I recommend picocom. minicom is often recommended, but it doesn't handle full-screen apps like nano and vi well, so its difficult to work with. picocom is a little less user friendly, but works like a charm.I use:picocom -b 115200 -d 8 -p n --send-cmd "sz -y" --receive-cmd "rz -y" /dev/ttyUSB0This says, connect to ttyUSB0, at 115200 bps, 8 data bits, no parity. Set your send command to sz -y and your receive command to rz -y.
QuoteThis lets you see what is coming from DUART pins. This also gives you the ability to transfer files from your computer to the olinuxino. Simply type in "rz" at the command prompt after you've logged in and changed to the directory you want the file to go, then hold down Ctrl and hit A, then S. It will ask you for a file from your notebook. Type in the path (relative to whatever directory you were in before you started the picocom session, or absolute, i.e. /home/yourlogin/yourfile), and hit enter. sz on your local computer then takes over the link and sends the file to rz on the olinuxino, which then saves it to your current directory, with the same name as the file had on your local machine, overwriting if it is already there (leave of -y if you don't want this to be the default behavior). You can use rz -y on the olinuxino only when you want to overwrite if you leave the -y off the sz command in your picocom command line.To make this easier, I use:alias microcom='picocom -b 115200 -d 8 -p n --send-cmd "sz -y" --receive-cmd "rz -y" /dev/ttyUSB0'Put this line at the bottom of your ~/.bashrc file, and you can just run "microcom" from the command line to instantly connect to your olinuxino.
QuoteIf you use windows, you'll have to use a program like putty. It has a serial configuration option, use 115200, 8 data bits, no parity, 1 stop bit in its configuration. I'm not sure if there is any equivalent to ZMODEM file transfers with putty.Eventually, you'll want to get a WIFI dongle to give the micro more connectivity options, the ability to download more packages, etc. Then you would be able to use more standard communication practices like SSH and FTP. Until then, though, the above practices will get you started.EDIT: You probably don't have picocom and rz/sz installed on your notebook. Since you are a debian user, you can just:sudo apt-get install picocom lrzszto grab it, then proceed with the instructions above.To get rz/sz on your olinuxino, download the package from mirror.archlinuxarm.org:http://mirror.archlinuxarm.org/arm/community/lrzsz-0.12.20-4-arm.pkg.tar.xzThen copy this file somewhere on the SD card. Plug in the SD Card to the olinuxino, then when you boot and get logged in through picocom, cd to the folder where you put it, and use pacman to install it:pacman -U lrzsz-0.12.20-4-arm.pkg.tar.xz
Quote from: Oclistediscussion on September 29, 2012, 10:10:20 pm115200 is the maximum ? If yes -> i'll do ssh via ethernet usb adaptator because i put all sources (c++, php) on local networks at home for save the flash/sdcard.
Quote from: Oclistediscussion on September 29, 2012, 10:10:20 pmI know bashrc and other alias. But thanks for other beginners.
Quote from: dpwhittaker on September 29, 2012, 10:59:39 pmQuote from: Oclistediscussion on September 29, 2012, 10:10:20 pm115200 is the maximum ? If yes -> i'll do ssh via ethernet usb adaptator because i put all sources (c++, php) on local networks at home for save the flash/sdcard.Yes, 115200 is the fastest you can get out of the serial port. If you've got an ethernet or wifi usb adapter, either of those will be much faster. You'll probably have to use the usb-serial cable to configure the system to use those, but then you'll have a much better overall connection. The difficulty with most usb-ethernet adapters right now is finding a stable driver for them. Let us know if you get yours working.
Quote from: dpwhittaker on September 30, 2012, 02:02:37 amLinux does support that chipset, but it is not included in the standard kernel. How do you feel about compiling your own kernel?
Quote from: dpwhittaker on October 03, 2012, 05:57:24 amActually, the packages on mirror.archlinuxarm.org/arm are already binary packages. They get installed directly to your modules folder, so you should be able to pacman -U package.pkg.tar.xz, plug in a MCS7830 adapter, and it just work.