Autore Topic: OpenWRT su AGPF  (Letto 6935 volte)

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #30 il: Marzo 01, 2011, 10:36:47 pm »
Ha fatto qualcuno dei test per verificare il margine di errore effettivo dei sensori di temperatura DS1621? I datasheet riportano +-1 grado Celsius. Lo farei io ma, purtroppo, non ho in casa un termometro attendibile  :|

emilius3m

  • Novellino
  • *
  • Post: 12
    • Mostra profilo
    • E-mail
Re: OpenWRT su AGPF
« Risposta #31 il: Marzo 05, 2011, 11:10:19 pm »
una domanda a fpaliuc: ma la voce con chan_datacard come si sente? a me va a tratti ed e' incomprensibile

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #32 il: Marzo 08, 2011, 09:40:27 am »
una domanda a fpaliuc: ma la voce con chan_datacard come si sente? a me va a tratti ed e' incomprensibile

Purtroppo la chiavetta 3G mi deve arrivare il 23 marzo ... Non ho fatto alcun test. Volendo, ti potrei inviare via email l'ipk che sono riuscito a compilare per asterisk 1.8.x, cosi potresti vedere se c'? qualche cambiamento.

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #33 il: Marzo 11, 2011, 08:19:00 pm »
Intanto, ecco in p? di foto:

1. Il sensore di temperatura DS1621


2. La schedina dove attacco i 2 sensori di temperatura e dove ho saldato il PCF8574:


3. Tutto assemblato:

truthahn

  • Global Moderator
  • Hero Member
  • *****
  • Post: 1546
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #34 il: Marzo 12, 2011, 05:17:10 pm »
Ottimo!!! complimenti!

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #35 il: Marzo 17, 2011, 11:08:37 am »
Ho aggiunto anche una webcam - Microsoft VX5500 - per? rallenta parecchio l'AGPF anche impostando valori "decenti" per il refresh rare e qualit?. Risolvo qualcosa aggiungendo una partizione sawap su un HDD USB?

marco1979

  • Novellino
  • *
  • Post: 34
    • Mostra profilo
    • E-mail
Re: OpenWRT su AGPF
« Risposta #36 il: Marzo 17, 2011, 01:58:23 pm »
..a occupazione di ram come stai messo??

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #37 il: Marzo 17, 2011, 03:41:53 pm »
..a occupazione di ram come stai messo??

69%

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #38 il: Aprile 12, 2011, 07:27:10 pm »
Ci ho perso anch'io, come Truthahn, un paio di settimane a ricompilare chan_datacard con vari makefile, asterisk 1.6, 1.8 ma c'ho lo stesso problema: rumore al posto dell'audio. Contattando il tizio che ha portato OpenWRT sull'AGPF, mi ha detto che ? un problema di endianness (l'AGPF usa big-endian).

Le altre piattaforme sulle quali funziona chan_datacard - Marvell Kirkwood, AR7 ecc. - utilizzano little-endian. Per il momento...niente da fare.

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #39 il: Maggio 01, 2011, 04:40:41 pm »
Ci ho perso anch'io, come Truthahn, un paio di settimane a ricompilare chan_datacard con vari makefile, asterisk 1.6, 1.8 ma c'ho lo stesso problema: rumore al posto dell'audio. Contattando il tizio che ha portato OpenWRT sull'AGPF, mi ha detto che ? un problema di endianness (l'AGPF usa big-endian).

Le altre piattaforme sulle quali funziona chan_datacard - Marvell Kirkwood, AR7 ecc. - utilizzano little-endian. Per il momento...niente da fare.

Eh no .... buone notizie: chan_datacard funziona sul nostro AGPF (ho fatto solo un test semplice con l'audio dal l'AGPF verso il cellulare). L'unico problema: quando la chiamata termina, asterisk viene chiuso (lo devo avviare a mano ...). Comunque, ? un passo in avanti  :-D.
Volevo postare qui il makefile, patch e il pacchetto compilato ... ma non posso allegare archivi .rar

PATCH:
Codice: [Seleziona]
diff -ur chan_datacard-1.0.r310.old/channel.c chan_datacard-1.0.r310/channel.c
--- chan_datacard-1.0.r310.old/channel.c 2011-05-01 16:20:42.000000000 +0400
+++ chan_datacard-1.0.r310/channel.c 2011-05-01 17:39:55.000000000 +0400
@@ -651,6 +651,7 @@
 
  cpvt->a_read_frame.samples = res / 2;
  cpvt->a_read_frame.datalen = res;
+ ast_frame_byteswap_le (&cpvt->a_read_frame);
 /*
  cpvt->a_read_frame.ts;
  cpvt->a_read_frame.len;
@@ -848,6 +849,7 @@
  int iovcnt;
  struct iovec iov[2];
 
+ ast_frame_byteswap_le (f);
  iov[0].iov_base = f->data.ptr;
  iov[0].iov_len = FRAME_SIZE;

MAKEFILE:
Codice: [Seleziona]
#
# Copyright (C) 2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#

include $(TOPDIR)/rules.mk

PKG_NAME:=asterisk18-chan-datacard
PKG_REV:=310
PKG_VERSION:=1.0.r$(PKG_REV)
PKG_RELEASE:=198

#PKG_SOURCE_URL:=http://datacard.googlecode.com/svn/trunk/
#PKG_SOURCE_VERSION:=$(PKG_RELEASE)
#PKG_SOURCE_PROTO:=svn
# or
PKG_SOURCE:=chan_datacard-$(PKG_VERSION).tgz
PKG_SOURCE_URL=http://datacard.googlecode.com/files/
PKG_MD5SUM:=8cff8433f8f3ff67bd1f19d0384671f1

PKG_SOURCE_SUBDIR:=chan_datacard-$(PKG_VERSION)
PKG_BUILD_DIR=$(BUILD_DIR)/$(PKG_SOURCE_SUBDIR)

WITH_ASTERISK=asterisk-1.8.3.2

include $(INCLUDE_DIR)/package.mk

define Package/asterisk18-chan-datacard
SUBMENU:=asterisk18 (Complete Open Source PBX), v1.8.x
SECTION:=net
CATEGORY:=Network
URL:=http://www.asterisk.org/
MAINTAINER:=Hans Zandbelt <hans.zandbelt@gmail.com>
DEPENDS:= +asterisk18 +libiconv-full
TITLE:=Huawei UMTS 3G datacards support
endef

define Package/asterisk18-chan-datacard/description
Asterisk channel driver for Huawei UMTS 3G datacards
endef

MAKE_ARGS:= \
CC="$(TARGET_CC)" \
LD="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS) -DLOW_MEMORY $(TARGET_CPPFLAGS) -I$(STAGING_DIR)/usr/lib/libiconv-full/include -I$(BUILD_DIR)/$(WITH_ASTERISK)/include -DHAVE_CONFIG_H -I. -fPIC" \
LDFLAGS="$(TARGET_LDFLAGS)" \
DESTDIR="$(PKG_INSTALL_DIR)/usr/lib/asterisk/modules"

# for svn
#        (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
#                        autoconf \
#                                );
#        $(call Build/Configure/Default)

define Build/Configure
$(call Build/Configure/Default, \
    --with-asterisk=$(BUILD_DIR)/$(WITH_ASTERISK)/include \
    $(MAKE_ARGS) \
)
endef

define Build/Compile
mkdir -p $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules
$(MAKE) -C "$(PKG_BUILD_DIR)" $(MAKE_ARGS) all install
endef

define Package/asterisk18-chan-datacard/conffiles
/etc/asterisk/datacard.conf
endef

define Package/asterisk18-chan-datacard/install
$(INSTALL_DIR) $(1)/etc/asterisk
$(INSTALL_DATA) $(PKG_BUILD_DIR)/etc/datacard.conf $(1)/etc/asterisk/
$(INSTALL_DIR) $(1)/usr/lib/asterisk/modules
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/asterisk/modules/chan_datacard.so $(1)/usr/lib/asterisk/modules/
endef

$(eval $(call BuildPackage,asterisk18-chan-datacard))
« Ultima modifica: Maggio 01, 2011, 06:38:50 pm da fpaliuc »

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #40 il: Maggio 03, 2011, 09:41:25 pm »
Ricompilato tutto oggi (anche l'immagine OpenWRT per l'AGPF) e chan_datacard funziona senza mandare in crash asterisk.

Ho utilizzato gli stessi file postati senza nessuna modifica.

Posso dire che abbiamo un chan_datacard funzionante .... dopo 2 mesi di tentativi  :-D :-D :mrgreen:

truthahn

  • Global Moderator
  • Hero Member
  • *****
  • Post: 1546
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #41 il: Maggio 03, 2011, 09:47:14 pm »
Complimentissimissimi!!!!!
Per la costanza e il risultato!!!
Magari metti a disposizione l'opk, penso che sar? molto apprezzato!!

fpaliuc

  • Full Member
  • ***
  • Post: 140
  • www.cristinasurbera.it
    • Mostra profilo
Re: OpenWRT su AGPF
« Risposta #42 il: Maggio 03, 2011, 10:09:51 pm »
Io metterei volentieri a disposizione il package ma:

1. Non ho un server dove caricarlo
2. Ho utilizzato l'ultima versione del trunk di OpenWRT e credo il package non funzioni con le vecchie immagini per l'AGPF.

Se qualcuno mette a disposizione un server posso caricare l'immagine (molto basilare, solo con i pacchetti base), qualche pacchetto compilato e chan_datacard.

lupin73

  • Full Member
  • ***
  • Post: 128
    • Mostra profilo
    • E-mail
Re: OpenWRT su AGPF
« Risposta #43 il: Maggio 05, 2011, 07:00:27 pm »
Io metterei volentieri a disposizione il package ma:

1. Non ho un server dove caricarlo
2. Ho utilizzato l'ultima versione del trunk di OpenWRT e credo il package non funzioni con le vecchie immagini per l'AGPF.

Se qualcuno mette a disposizione un server posso caricare l'immagine (molto basilare, solo con i pacchetti base), qualche pacchetto compilato e chan_datacard.
Grande notizia bravo! Comprer? la chiavetta  :-D

lupin73

  • Full Member
  • ***
  • Post: 128
    • Mostra profilo
    • E-mail
Re: OpenWRT su AGPF
« Risposta #44 il: Maggio 06, 2011, 04:48:24 pm »
Io metterei volentieri a disposizione il package ma:

1. Non ho un server dove caricarlo
2. Ho utilizzato l'ultima versione del trunk di OpenWRT e credo il package non funzioni con le vecchie immagini per l'AGPF.

Se qualcuno mette a disposizione un server posso caricare l'immagine (molto basilare, solo con i pacchetti base), qualche pacchetto compilato e chan_datacard.
Il package di fpaliuc lo trovate qui:
http://www.x-slay-clan.com/farcry2/download.php?view.55