RaspiSMS avec clef Huawei E3531
25 décembre 2020Bonjour, une rapide adaptation du post https://miniprojets.net/index.php/2020/04/02/raspisms-ou-comment-faire-un-serveur-sms-pour-son-installation-domotique/ pour les personnes possédant une clef Huawei E3531.
Lors de l’état d’installation et pendant la configuration de la clef, créez le fichier /etc/usb_modeswitch.d/12d1:1f01 avec comme contenu :
Huawei E3531i-2 ou E3531s-2 switch mode vers 12d1:1001 (mode GSM modem, 3 ports) TargetVendor=0x12d1 Targetproduct=0x1f01 MessageContent=”55534243123456780000000000000011062000000100000000000000000000″
Puis débranchez et rebranchez la clef
Vous pouvez continuer la suite de l’installation comme pour le post d’origine.
Normalement tout fonctionne.
Encore merci à Guillaume Richard pour cette configuration. Il a pu trouver la solution sur la page suivante: https://community.jeedom.com/t/presentation-akenad/2440/21
Bonnes fêtes de fin d’année à tous,
Jérôme Ferrari
Bonjour,
Merci pour ces précision.
Comme l’installation ne fonctionne pas chez moi (voir message ci-dessous)
Deprecated: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/share/raspisms/composer.phar/vendor/symfony/console/Helper/HelperSet.php on line 112
Deprecation Notice: Optional parameter $schema declared before required parameter $path is implicitly treated as a required parameter in phar:///usr/share/raspisms/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:62
Deprecation Notice: Optional parameter $schema declared before required parameter $path is implicitly treated as a required parameter in phar:///usr/share/raspisms/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/UndefinedConstraint.php:108
Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///usr/share/raspisms/composer.phar/vendor/justinrainbow/json-schema/src/JsonSchema/Constraints/Constraint.php:48
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/share/raspisms/composer.phar/src/Composer/Repository/ArrayRepository.php:196
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/share/raspisms/composer.phar/src/Composer/Repository/ArrayRepository.php:196
Deprecation Notice: Return type of Composer\Repository\ArrayRepository::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///usr/share/raspisms/composer.phar/src/Composer/Repository/ArrayRepository.php:196
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in phar:///usr/share/raspisms/composer.phar/src/Composer/Repository/RepositoryManager.php:130
Deprecation Notice: Method ReflectionParameter::getClass() is deprecated in phar:///usr/share/raspisms/composer.phar/src/Composer/Repository/RepositoryManager.php:130
Updating to version 2.6.5 (stable channel).
Downloading (100%)
Deprecation Notice: Function openssl_free_key() is deprecated in phar:///usr/share/raspisms/composer.phar/src/Composer/Command/SelfUpdateCommand.php:230
Use composer self-update –rollback to return to version 1.9.3
Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
Do not run Composer as root/super user! See https://getcomposer.org/root for details
No composer.lock file present. Updating dependencies to latest instead of installing from lock file. See https://getcomposer.org/install for more information.
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
– Root composer.json requires ralouphie/mimey ^2.1 -> satisfiable by ralouphie/mimey[2.1.0].
– ralouphie/mimey 2.1.0 requires php ^5.4|^7.0 -> your php version (8.2.7) does not satisfy that requirement.
Done.
Do Phinx migrations…
Could not open input file: vendor/bin/phinx
Done.
Create RaspiSMS default user.
PHP Warning: require_once(/usr/share/raspisms/vendor/autoload.php): Failed to open stream: No such file or directory in /usr/share/raspisms/descartes/load.php on line 11
PHP Fatal error: Uncaught Error: Failed opening required ‘/usr/share/raspisms/vendor/autoload.php’ (include_path=’.:/usr/share/php’) in /usr/share/raspisms/descartes/load.php:11
Stack trace:
#0 /usr/share/raspisms/console.php(3): require_once()
#1 {main}
thrown in /usr/share/raspisms/descartes/load.php on line 11
Error during user generation.
dpkg: error processing package raspisms (–configure):
installed raspisms package post-installation script subprocess returned error exit status 1
Processing triggers for man-db (2.11.2-2) …
Processing triggers for libc-bin (2.36-9+rpt2+deb12u3) …
Processing triggers for php8.2-cli (8.2.7-1deb12u1) …
Processing triggers for mariadb-server (1:10.11.4-1deb12u1) …
Processing triggers for libapache2-mod-php8.2 (8.2.7-1~deb12u1) …
Errors were encountered while processing:
raspisms
E: Sub-process /usr/bin/dpkg returned an error code (1)
Je m’interroge sur un détail.
Dans le tuto de JÉRÔME FERRARI, la commande lsusb retourne Bus 001 Device 007: ID 12d1:15e7 Huawei Technologies Co., Ltd. Il dit ensuite de créer un fichier nommé 12d1:157d qui est différent du 12d1:15e7 que l’on voie ci-dessus.
Dans ton tuto tu mentionne un fichier qui s’appel 12d1:1f01.
Quand je passe la commande lsusb chez moi j’ai:
Bus 001 Device 004: ID 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Pourrais tu me confirmer le nom du fichier qu’il faut créer STP?
Si tu as une idée sur les raisons de la non finalisation correcte de mon installation je suis preneur.
J’ai essayé d’installer RaspiSMS 3 sur un Raspberry PI4 4Go avec SSD de 120Go monté dans un boitier Argon M2
D’avance merci.
PS: Je ne connais pas Linux donc les commande non plus. Si tu pouvais détailler ta réponse cela m’aiderait beaucoup.