Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
September 08, 2010, 01:34:26 PM
News: Welcome to GLomation peer support forum
Pages: [1] 2 3 ... 10
 1 
 on: September 07, 2010, 05:37:17 PM 
Started by arapoport - Last post by admin
The GPIO driver is for digital input/output only.  You will need ADC driver if you do not want to read/write the ADC register in your application.

 2 
 on: September 07, 2010, 09:05:08 AM 
Started by arapoport - Last post by arapoport
Can I use the ADC converter with the standard GPIO driver ? If I configure some pin as "input" in userspace, does it read the actual voltage value input ? Or just 0/1 ?

Thanks,

Alejandro

 3 
 on: September 07, 2010, 09:00:25 AM 
Started by james - Last post by arapoport
You may use the USB connector on the board (I think it is J17). When you connect it to a Windows OS, it appears as a network card. You will need the driver (cdc_ether in Linux).

Once the "network card" is detected, configure it to a small LAN (fixed ip's in the same range) and you will have it connected. Then you can use FTP to transfer files, telnet, ssh, etc.

Alejandro

 4 
 on: September 07, 2010, 12:02:45 AM 
Started by james - Last post by james
I tried dowloading ntpdate and ntpdate-debian for arm, but it also does not work (keeps giving error "{"). Does anyone know where to download the correct ntp or ntpdate program which will work with the 9G20 hardware?

 5 
 on: September 06, 2010, 11:05:16 PM 
Started by james - Last post by james
Does anyone know how to use the USB to communicate with PC (Windows OS) for file transfer? or let the windows os see this device as a usb storage? I am trying to have this device communicate with windows PC over USB port, rather than RS-232 or TCP/IP.

 6 
 on: September 06, 2010, 01:57:36 PM 
Started by Neo - Last post by james
To answer my own question on FTP problem, should anyone else encounter similar problem. I solved it by downloading the correctly compiled file from Glomation web site, I used in.ftpd (instead of vsftpd which I was looking for - I could not find a correctly compiled version which runs on the 9G20 hardware). Link the file /usr/sbin/ftp -> in.ftpd, reboot, and it works.
If unable to ftp put to 9G20, first modify the /etc/inetd.conf  line with
21 stream tcp nowait root /usr/sbin/ftpd ftpd -w
in order to ftp put.

 7 
 on: September 06, 2010, 11:23:56 AM 
Started by energy_engr - Last post by admin
Debian Armel is EABI so the program runs fine.  The factory installed file system is ABI.  The program must be compiled as ABI to run on the factory installed file system.

 8 
 on: September 06, 2010, 08:08:40 AM 
Started by Jundle Fras - Last post by mmenti
Hi Jundle

I don't know for sure if any of the GPIO's are reserved. But I claim that directly connecting the pulse output of power/water meters might be a bad idea. One of the problems you might run into, what happens if you miss one ore more pulses from the source? And I bet you will miss some pulses, because this linux has no RTOS capabilities.

I would recommend some "interface logic" with "real time reading capabilites" by e.g. using an interface chip (microchip, tiny or whatever you prefer) which does the "real time" stuff and the line multiplexing. You can then connect this chip for example by simple Serial interface to the 9260S for further processing/reporting.


 9 
 on: September 06, 2010, 07:38:35 AM 
Started by energy_engr - Last post by tharold
"Not found" error could mean a dynamic lib was not found.  Run ldd on the executable to check, or compile it statically.

 10 
 on: September 06, 2010, 07:35:32 AM 
Started by tharold - Last post by tharold
For anyone trying to do this, here's how I enabled TC3 (first clock of the second block) as event counter, clocking on TCLK4 (pin 18 on the GESBC9260).

Tell the PMC to power it on:
    p = mem(PMC_START + PMC_PCER); *p = (1<<26); /* enable TC3 clock */
Tell the peripheral controller to set up pin 18 as:
    p = mem(PIOB_START + PIO_PDR); *p = (1<<17); /* no pio */
    p = mem(PIOB_START + PIO_ODR); *p = (1<<17); /* no output */
    p = mem(PIOB_START + PIO_PUDR); *p = (1<<17); /* no pullup */
    p = mem(PIOB_START + PIO_BSR); *p = (1<<17); /* on periph B */
Set up the counter:
    p = mem(0xFFFDC000 + TC_IDR); *p = ~1; /* disable interrupts */
    /* 0x6: use XC1; 0x8: falling edge */
    p = mem(0xFFFDC000 + TC_CMR); *p = 0x6|0x8;
    p = mem(0xFFFDC000 + TC_CCR); *p = 0x5; /* reset counter */
    delay(100);
Read counter value:
    p = mem(0xFFFDC000 + TC_CV);
    printf("%d\n", *p);

Now my problem is I can't seem to reset it to 0, it always resets to some arbitrary value.  It's not a big deal though.

Thanks,
-harold

Pages: [1] 2 3 ... 10
Theme Update by Runic Warrior Originally created by m3talc0re