• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Hardware and U-Boot firmware / Hardware / Re: guru plus wired ethernet hang on: May 22, 2010, 06:25:00 PM
I changed the IP address range of the wireless via the script the vendor had in root as it conflicted with a wrieless router I had setup.  No longer hangs, but now I can not connect via wireless, and the wired network while not crashing on the Fast Ethernet also does not request an address.  I do not know of a way to get to console at boot time, did not order the JTAG interface so I am SOL..

Just frustrating.  The Shiva plug worked out of the box.
2  Hardware and U-Boot firmware / Hardware / Re: guru plus wired ethernet hang on: May 22, 2010, 04:54:25 PM
Thans -- Found a Fast Ethernet router -- when connected it did not crash,  and one of the wired network ports is working.  Gigabit switches did not work (linksys).  Trying an update/upgrade..  Thanks for the assistance.  A machine running with a slower network connection is far bettter than a hung/reboot machine and an RMA.

Did see others with the same problem, missed it when searching..

KK
3  Hardware and U-Boot firmware / Hardware / guru plus wired ethernet hang on: May 22, 2010, 10:02:35 AM
guru plus received, connected via wireless network as an access point.  When connecting wired ethernet, system hangs, will reboot.
Thought it migh be swap space, seems not to be.  Also, the USB thumbdrive mounted in usb0 has a fried directory.  Not sure if the two
issues are related.  Ethernet devices are loaded, indicated in kernel message queue (dmesg).  Checking logs, nothing found so far.

Ideas welcome.

KK
4  Linux Stuff / General Linux questions / USB Video question on: December 17, 2009, 02:16:31 PM
Pardon my lack of asking the right question -- I think I have installed a USB video device on the plug..

usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Bus 001 Device 006: ID 0711:0950 Magic Control Technology Corp.

Kernel rev (old, I know) .. Linux toaster 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl GNU/Linux

Can this device be used as a console device if a mouse/keyboard is added?  Not sure how to proceed..

5  Linux Stuff / General Linux questions / Re: Second USB serial port on: July 05, 2009, 08:17:19 AM
I'm doing much the same thing you are (using a Prolific PL2303 Serial Port to connect to a CM11a X10 controller).  The serial port is recognized fine under Ubuntu, even with a USB Hub sitting between it and the Plug, but that was not the case under the Debian load that came with the Plug.  (To be honest, I can't say whether the Serial Port itself is a problem.  I know the Hub wasn't recognized and I upgraded the OS before I acquired the serial port.)  Since you seem to only have one serial port on your Plug, I believe you'll find the serial device you need to communicate with is called "/dev/ttyUSB0" if it is recognized.  If this /dev entry is not there after you plug in the USB serial port, you'll either have to define the hardware to Debian or upgrade.  I found after running the alpha-6 installer to upgrade, everything worked a lot better.

What I'm still a bit unclear about is how multiple serial ports are handled.  I plan to add a second port soon, and I'm sure it will become "/dev/ttyUSB1".  However, I've heard it is a tossup as to which physical port is associated with which device at boot time, and the ordering can change from boot to boot.  Can anyone with some experience with this shed some light on it?

BTW, what program are you using to talk to your port?  HeyU?  I'm using a much modified version of Dan Lanciani's TCP controller here, and so far it's been working quite well.

How did you run the alpha-6 installer?  apt-get ?

I am using heyu -- Not sure what Dan's TCP controller  is -- net based?  -- Could be a bit off topic, will take a look.. Thanks.  Least I
know it is possible.

KK
6  General Category / Application ideas and development Q/A / Re: Java instalation - sudo apt-get install sun-java6-jre on: July 04, 2009, 03:39:34 PM
I installed openjdk-6-jre-headless but my Java program doesn't work. It uses the RXTX library from http://users.frii.com/jarvi/rxtx/ that gives an error. Previously I've ran it successfully on desktop linux computers using Sun java. So I think I need some way to get Sun java installed (since the apt-get method doesn't work). If the problem is at the RXTX-library then it might be harder to fix. I'm wondering if it's ok to manually install a java distribution say directly from java.sun.com? I guess I should try the "embedded" version, damn Sun just makes me to fill a long form to download it. Any help is appreciated.

Only solution I can think of is to download the GNU RXTX library, compile and add it to the OS.  I have used the RXTX library in a java app,
and by-passed the RXTS by the purchase of a MODBUS gateway which allows me to use the internet, and such avoid the hardware
dependency.. 
7  Linux Stuff / General Linux questions / Second USB serial port on: July 04, 2009, 03:29:32 PM
Am new to debian.  I  have been able to use a Windows terminal session to communicate with the Sheva, have a running
system,  installed gcc along with a few utilities on the Shiva.  Now attempting to use a USB-RS232 converter to communicate with an
external device (X-10) over a serial port.  The USB to RS-232 "dongle" seems to be recognised by the kernel.  Installed
setserial to set/define the comm parameters.  Also defined a getty in events.d at startup.

How do I know what ttyS has been assigned to the USB port?  Pretty sure  ttyS0  is the console port, and would expect ttyS1 to
be the second USB serial port.   I have minicom installed, and should be able to test the port.  No success so far.  Ideas welcome. 

>lsusb
Bus 001 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 001 Device 006: ID 05dc:a701 Lexar Media, Inc. JumpDrive FireFly
Bus 001 Device 005: ID 05dc:a701 Lexar Media, Inc. JumpDrive FireFly
Bus 001 Device 003: ID 0781:5406 SanDisk Corp. Cruzer Micro 1/4GB Flash Drive
Bus 001 Device 002: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 001 Device 001: ID 0000:0000 

root@toaster:~# setserial -a /dev/ttyS0
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x0000, IRQ: 33
        Baud_base: 12500000, close_delay: 50, divisor: 0
        closing_wait: 3000
        Flags: spd_normal skip_test

root@toaster:~# setserial -a /dev/ttyS1
/dev/ttyS1, Line 1, UART: 16550A, Port: 0x0000, IRQ: 34
        Baud_base: 12500000, close_delay: 50, divisor: 0
        closing_wait: 3000
        Flags: spd_normal skip_test

root@toaster:~# ps ax | grep ttyS1
 1283 ttyS1    Ss+    0:00 /sbin/getty 4800 ttyS1
 2289 pts/0    R+     0:00 grep ttyS1

I should be able to set ttyS1 to 4800 baud to communicate with the CMA10 X-10 control device..
Assuming protections are set correctly. 

KK
8  General Category / Success stories / Re: gcc/java runtime/postgres on: June 26, 2009, 08:09:10 AM
To add -- Built Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8g DAV/2 PHP/5.2.10  with a more current
PHP module, needed to add a few librarys required (ssl related).. Should be all the pieces  I need to move my
solar charge controller application with related DB information to the plug.. I expect to run the plug totally off
the grid with solar/battery power, and via X10 manage power switching and lighting/security..
9  General Category / Success stories / gcc/java runtime/postgres on: June 22, 2009, 07:04:47 AM
Have the ShivaPlug for almost a week,.  After a few issues with the java runtime libs and learning about open-java and the debian
way of working, my java application is online (testing)  -- a Solar Charge Controller interface, no graphics..  Perl seems fine, installed
gcc , make, bison & flex utilities, dnsmasq for local network management, working OK..  NFS installed, sems fine.

Did a little moving around in /usr/share to move docs out to an installed USB drive to  gain "system" space.  Installed postgres, further testing is needed, all seems fine.  I have added 2G of swap space, not sure its working although I can see no reason for it not to.. A very nice surprise..  The power usage is more like 10 watts than five, I keep it a bit vusy, well within my battery-based environment.. Happy camper -- how my Shiva looks..

Linux debian 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl GNU/Linux
             total       used       free     shared    buffers     cached
Mem:        515636     374264     141372          0      46280     272340
-/+ buffers/cache:      55644     459992
Swap:      1959888          0    1959888

root@toaster:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                  519168    177700    341468  35% /
tmpfs                   257816         0    257816   0% /lib/init/rw
varrun                  257816        88    257728   1% /var/run
varlock                 257816         0    257816   0% /var/lock
udev                    257816        36    257780   1% /dev
tmpfs                   257816         0    257816   0% /dev/shm
tmpfs                   257816     22368    235448   9% /var/cache/apt
/dev/sdb2              1935132     35956   1879516   2% /home
/dev/sdc1              3866116    271352   3555488   8% /usr/local
/dev/sda1              3937220    174504   3722716   5% /tmp
cocoa:/mnt/usd1      384578168 143626104 237044976  38% /mnt/netfs

10  Linux Stuff / General Linux questions / Re: How to mount USB drive at startup on: June 18, 2009, 12:17:56 PM
I have a Transcend 128 GB SSD and the rootdelay=10 works for this USB drive as well.

Thanks,
Not being Debian versed, where is the rootdelay set?  Used to gentoo/redhat, stumbling a bit on Debian.. Still, getting farther on Shivaplug than I thought.. Along those lines, if I use a swap partition on one of the USB drives, how do you point to the partition, as the driver number (sda1, sdb1) may change.. On  ext partiiton, using a disklabel and calling mount -L label <mntpoint> in rc.local works..  Been logging in and setting up swap manually.  Thanks
11  General Category / Application ideas and development Q/A / Re: Java instalation - sudo apt-get install sun-java6-jre on: June 18, 2009, 06:48:49 AM
There is also a headless version of OpenJDK available (for non-GUI applications):

Hi -- Got my ShevaPlug yesterday, and thanks to this post my custom java application is working using the open-jdk runtime.  I was frankly very surprised.. Designed an application in java that communicates with a Morningstar Solar charge controller to receive battery array status, charge rates.  Compiled the java and the protocol library on Gentoo Linux, and moved over the class and jar files.  Now, if I can get heyu running I can real time turn my freezer on and off the grid.   All for under 10 watts of power..

Again, my t hanks.
Pages: [1]