KeyDuino forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Un échange d'information autour de la carte KeyDuino
 
HomeHome  Latest imagesLatest images  RegisterRegister  Log inLog in  

 

 Before using it, I have the following questions.

Go down 
2 posters
Go to page : Previous  1, 2
AuthorMessage
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 11:28

Salut, des nouvelles ?
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 12:35

Hola!
Je termine ça cet après midi, j'ai ajouté quelque petites modifications à la librairie également Wink
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 12:59

cool !! Merci, j'attend to go pour récupérer la mise a jours des derniers exemple de la librairie
tu les postes bien sur GITHUB de keyduino: https://github.com/CITCEuraRFID/KeyDuino sinon ou ?
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 13:19

Voilà, le lien est le suivant : https://github.com/mrstein/KeyDuino

A noter: maintenant, NDEF est intégré dans le repertoire library, du coup je te conseille de supprimer l'ancien Wink
Hésite pas à me dire s'il y a des soucis de compilation.
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 15:43

Merci beaucoup
tu trouveras ci-joint mon fichier "Test du nouveau GITHUB de keyduino.xlsx" qui reprend les résultats que j'ai constaté avec ton nouveau GITHUB.
en résumer tous les exemples que j'ai testé compile bien (merci) et pour la plupart marche avec les Tag "KeyDuino" fournies avec la carte électronique qui sont de type : ISO 14443-3A (MXP MIFARE Ultralight NTAG213) mais pas avec les Tag que j'ai acheté chez "whiztags" qui sont de type : ISO 14443-3A (Innovision R&T Jewel – Topaz 512).
Donc première résolution, je vai acheter d'autre TAG de type: ISO 14443-3A MIFARE.
Par contre pour moi les exemples :
-P2P_Send
-read_ndef_message
ne donne rien même avec mon Tag "KeyDuino" , pourquoi ?

et enfin , l'exemple "WriteTagMultipleRecords" compile et écrit bien sur le Tag "KeyDuino", mais sur mon smartphone, les 3 instructions suivante :
message.addTextRecord("Hello, Arduino!");
message.addUriRecord("http://arduino.cc");
message.addTextRecord("Goodbye, Arduino!");
sont bien afficher sur l’écran du smartphone mais elles ne se lance pas automatiquement ou au fil de l'eau (les une après les autres), est-ce normal ? as-tu une solutions pour qu'elle (les instructions) s’exécutent les une après les autres ?
A plus

Back to top Go down
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 15:45

le fichier de résultat de test Test du nouveau GITHUB de keyduino.JPG
Back to top Go down
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 15:46

Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 17:35

Super merci du partage!
les exemples P2P_Send et read_ndef_message c'est normal que ça ne fasse rien avec un tag; c'est fait pour être utilisé avec un smartphone NFC.
Normalement pour utiliser p2p_send:
- active la NFC depuis ton tel
- depuis l'écran d’accueil, passe le téléphone sur l'antenne
par défaut ça doit te renvoyer vers le forum, mais il arrive en fonction des téléphones que cette fonctionnalité ne marche pas correctement...

Le code multi ne sert pas à lancer plusieurs application l'une à la suite, il permet juste de rajouter plusieurs textes ou liens sur un tags. Pour faire un système qui fait plusieurs taches à la suite, ça sera impossible juste avec les tags sans application spécifique.

Est ce que tu peux lire les tags whiztags avec ton téléphone et une application style "NFC tag info" et me faire un screen?
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 10 Dec - 20:48

J’ai re tester les NDEF> P2P_Send et NDEF > read_ndef_message avec mon tel avec le NFC actif depuis l'écran d’accueil (déverrouillé) , en passant mon téléphone sur l'antenne et voici les résultats :
- P2P_Send et NDEF, sur le tel pas d’action et sur le moniteur de serie «Send a message to Peer, Failed »
- read_ndef_message , sur le tel pas d’actio, la KeyDuinon beep et sur le moniteur de serie «NDEF Message 0 records, 0 bytes
Donc je suis sur un téléphone ou cette fonctionnalité ne marche pas correctement...
Question, est-ce normal qu’avec les Tag "KeyDuino" fournies avec la carte électronique sont de type : ISO 14443-3A (MXP MIFARE Ultralight NTAG213) les exemples MifareClassic (mifareclassic_read_card, mifareclassic_reset et mifareclassic_write) ne marche pas ?
Je vien da passer commande chez Amazon des ZipNFC NXP 10 NTAG216 (https://www.amazon.fr/dp/B00RLROLKU/ref=pe_3044141_185740131_TE_item) j’espere qu’ils seront ok pour les exemples MifareClassic. Qu’en pense-vous ?
Quand tu dis « Pour faire un système qui fait plusieurs taches à la suite, ça sera impossible juste avec les tags sans application spécifique » cela veu dire qu’il faut un développent spécifique sur les TAG ou sur le smartphone ? Connais-tu quelqu’un capable de faire cela ?
Et je peux lire, formater, ecrire les tags whiztags avec mon téléphone et l’application style "NFC Tool"
Et le pire c’est quand utilisant l’application NFC Tasks en plus de l’application style "NFC Tool" je peux programmer un Tag avec 2 actions : url et appel téléphonique et sur mon téléphoné cela s’enchaine.
C’est cela que j’aimerai refaire avec le keyduino mais je vois pas comment faire. As-tu une solution ?
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptyMon 11 Dec - 9:14

En faite read NDEF message c'est ton telephone qui transfert un NDEF. Normalement tu peux utiliser ça avec l'application android (présent sur le github Wink )

Pour le P2P, c'est quand même bizarre, c'est quoi ton téléphone / ta version android?

Les tags KeyDuino sont des mifare ultralight, les exemples sont faits pour des mifare classic.

Pour l'histoire des multi actions, tu peux effectuer plusieurs NDEF de suite mais pas d'autre actions complexe (Je dis ça vis à vis de ton message sur kickstarter). du coup l'idéal serait de développer une application qui permet de réaliser l'ensemble des actions. Si ça reste des choses simple comme renvoyer sur un site, préparer un mail / un message, essaye ce sketch (non testé):



Code:
#include <KeyDuino.h>
#include <NfcAdapter.h>


/****************************************************************************************************
/ This sketch is made to be used with a formatted NFC tag.
/ NFC Forum tags like NTAG213 and Mifare Ultralight will work by default.
/ If you want to use it with a Mifare Classic, first use the example to format Mifare Classic to NDEF.
/****************************************************************************************************/


String URI_1 = "http://github.com/CITCEuraRFID/KeyDuino"; //Website URL
String URI_2 = "tel:0600000000"; //Phone number
String URI_3 = "mailto:keyduino@outlook.com"; //Email address


KeyDuino keyDuino;
NfcAdapter nfc = NfcAdapter(keyDuino);

void setup() {
  Serial.begin(115200);
  Serial.println("NDEF Writer");
  nfc.begin();
}

void loop() {
  Serial.println("\nPlace a formatted Mifare Classic NFC tag on the reader.");
  if (nfc.tagPresent()) {
    NdefMessage message = NdefMessage();
    message.addUriRecord(URI_1);
    message.addUriRecord(URI_2);
    message.addUriRecord(URI_3);
    boolean success = nfc.write(message);
    if (success) {
      Serial.println("Success. Try reading this tag with your phone.");
    } else {
      Serial.println("Write failed");
    }
  }
  delay(3000);
}
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptyMon 11 Dec - 22:43

Merci pour ton retour et le sketch plusieurs NDEF.
Pour ton info, ce sketch se compil bien et programme bien les TAG KeyDuino mais sur le téléphone, il n’exécute que le premier record « String URI_1 » et après il ne passe pas aux autres !!!! Dommage !!
Quand je li le contenue du TAG KeyDuino, le moniteur de série sort bien les trois records :
UID 04 82 86 62 CA 48 80
NDEF Message 3 records, 70 bytes
NDEF Record
TNF 0x1 Well Known
Type Length 0x1 1
Payload Length 0xF 15
Type 55 U
Payload 00 74 65 6C 3A 30 36 37 33 33 32 36 33 37 37 .tel:0673326377
Record is 19 bytes
NDEF Record
TNF 0x1 Well Known
Type Length 0x1 1
Payload Length 0x15 21
Type 55 U
Payload 00 68 74 74 70 3A 2F 2F 77 77 77 2E 67 6F 6F 67 6C 65 2E 66 72 .http://www.google.fr
Record is 25 bytes
NDEF Record
TNF 0x1 Well Known
Type Length 0x1 1
Payload Length 0x16 22
Type 55 U
Payload 00 6D 61 69 6C 74 6F 3A 73 61 62 6F 75 64 40 66 72 65 65 2E 66 72 .mailto:saboud@free.fr
Record is 26 bytes

Avec NFC Tool (logiciel téléchargé sur mon tel) j'ai programmé sur le TAG KeyDuino les deux premières tâches (tel:0673326377 et http://www.google.fr) et sur le téléphones les tâches s’enchaînent !!! Yes !!!!

Quand je li le contenue du le TAG programmé avec NFC Tool, le moniteur de série sort :
NDEF Message 3 records, 82 bytes
NDEF Record
TNF 0x2 Mime Media
Type Length 0x5 5
Payload Length 0xA 10
Type 77 38 2F 32 37 w8/27
Payload 30 36 37 33 33 32 36 33 37 37 0673326377
Record is 18 bytes
NDEF Record
TNF 0x2 Mime Media
Type Length 0x4 4
Payload Length 0x14 20
Type 77 38 2F 32 w8/2
Payload 68 74 74 70 3A 2F 2F 77 77 77 2E 67 6F 6F 67 6C 65 2E 66 72 http://www.google.fr
Record is 27 bytes
NDEF Record
TNF 0x4 External
Type Length 0xF 15
Payload Length 0x13 19
Type 61 6E 64 72 6F 69 64 2E 63 6F 6D 3A 70 6B 67 android.com:pkg
Payload 63 6F 6D 2E 77 61 6B 64 65 76 2E 6E 66 63 74 61 73 6B 73 com.wakdev.nfctasks
Record is 37 bytes

Si on fait la différence entre les deux résultats on voit des différences

Exemple ; dans le premier recode tel:0673326377
TNF 0x1 Well Known alors qu’avec le codage de NFC Tool il a TNF 0x2 Mime Media
Type 55 U alors qu’avec le codage de NFC Tool Type Length 0x5 5

Why ?

Y-t-il un exemple sketch sur KeyDuino permettant d’écrire sur le TAG directement ces codes (TNF, Type Length, Payload Length, Type et Payload) ?

Merci d’avance de ton retour

Bonne soirée de La Rochelle
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptyTue 12 Dec - 18:11

Tu peux modifier ces paramètres directement dans la librairie NDEF (NDEFMESSAGE.cpp), mais je viens d'essayer avec Mime Media ça ne marche pas..
Je me demande si le dernier NDEF :
Type 61 6E 64 72 6F 69 64 2E 63 6F 6D 3A 70 6B 67 android.com:pkg
Payload 63 6F 6D 2E 77 61 6B 64 65 76 2E 6E 66 63 74 61 73 6B 73 com.wakdev.nfctasks
ne permet pas à l'application de faire les deux actions... est ce que en désinstallant l'apk ça marche encore?
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptySun 17 Dec - 12:18

Bonjour MrStein, désolé de la réponse tardive.
Pour répondre à ta remarque, le dernier NDEF lance l’application NFCTasks sur mon smartphone.
Ce dernier record tans le TAG est inscrit automatiquement lorsqu’avec l’application NFC Tools j’ajoute les tâches « appel téléphonique sur le 0673326377 » et « lancement d’une URI http://www.google.fr » et que j’écris ces instruction sur le TAG.
Je ne peux donc pas désinstaller l'apk pour vérifier si cela ça marche encore.
C’est pour cela que je cherche un moyen avec le KeyDuino pour écrire sur le TAG directement ces codes (TNF, Type Length, Payload Length, Type et Payload). N’as-tu pas une solution ?
Bien cordialement.
Back to top Go down
MrStein
KeyDuino TEAM
MrStein


Messages : 85
Reputation : 4
Date d'inscription : 2015-10-10
Age : 30
Localisation : Lille, FRANCE

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptyMon 18 Dec - 12:53

Oui, tu peux faire la modification directement dans la librairie de NDEF (NDEF record).
Par contre comme la librairie est réalisée par DON et non par nous, ça sera difficile de t'aider sur cette partie là...
Back to top Go down
https://keyduino.forumsactifs.com
Stef de la rochelle
beginner
beginner



Messages : 29
Reputation : 0
Date d'inscription : 2017-11-16

Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 EmptyTue 19 Dec - 13:59

Merci.
je compte donc me rapprocher de DON en cas de difficultés.
As-tu des coordonner a me communiquer pour que je puisse rentrer en relation avec DOM stp ?
Back to top Go down
Sponsored content





Before using it, I have the following questions. - Page 2 Empty
PostSubject: Re: Before using it, I have the following questions.   Before using it, I have the following questions. - Page 2 Empty

Back to top Go down
 
Before using it, I have the following questions.
Back to top 
Page 2 of 2Go to page : Previous  1, 2
 Similar topics
-
» Before using it, I have the following questions.

Permissions in this forum:You cannot reply to topics in this forum
KeyDuino forum :: KeyDuino informations & questions :: SOFTWARE questions & informations-
Jump to: