Any qrencode experts?
Would like to create a QR Code with both a phone number and a URL.
Looks like you can with some of the graphic encoders (but can’t find any available for Linux), but can’t find how to do with qrencode…?
Is there something available for linux to do this, or a complete qrencode info somewhere that explains this?
Thanks.
Not an expert here, but I don’t get what the problem is.
For instance, the following:
qrencode -o QRCode.png 'kontakt-at@suse.com *** Tel: 41 79 200 84 61 *** https://www.suse.com/de-de/contact/'
generates the following QR image that has a telephone number and an URL:
Maybe man qrencode is a starting point?
OK, thanks, well, yes and no…
That just seems to take me to the website?
After something that will more give a choice or similar, which I saw a post mention??
Am I trying to do something that you just can’t do??
Thanks.
How a QR code with multiple pieces of information in it is handled doesn’t depend at all on the QR code, but rather on the application that’s interpreting it. In this case, it’s the app that you’re using to decode it.
AIUI basically you can write whatever you want to a text file (say text.txt) then transfer it to a code with something like:
qrencode -o QRCode.png -r text.txt
There are more options for the format of the QR code to be produced, but the basics are that whatever you can write to a text file is transferred to a graphic symbol.
A basic phone QR reader will reproduce that text. Custom apps can do other things with the recovered text.
Yeah, the sort of thing I am after.
As in, I think for Telephone number to be recognised, you need to add ‘Tel:’ (or similar), and thinking that if that is a thing, there are probably many (at least, some!), more options as well, to put things in the barcode, but cannot seem to find this info, except for the occasional mention in some random blogs/forums, etc.
Thanks.
You can encode a vcard using a QR code - I have done that and store that code on my smart watch and phone as a sort of digital business card.
As OrsoBruno says, it’s just an encoding format for arbitrary data.
Any hints on how the vcard is encoded…?
I’m sure there must be this info, somewhere, but can’t find it??
Do you mean something like rfc6350 ?
Or an example like
BEGIN:VCARD
VERSION:4.0
N:Doe;John;Philip;Dr.;Jr.
FN:Mr. Johny
NICKNAME:Phil
X-MAIDENNAME:MaidenName
X-PHONETIC-FIRST-NAME:PhoneticFirstName
X-PHONETIC-MIDDLE-NAME:PhoneticMiddleName
X-PHONETIC-LAST-NAME:PhoneticLastName
X-PRONUNCIATION-FIRST-NAME:PronunciationFirstName
X-PRONUNCIATION-MIDDLE-NAME:PronunciationMiddleName
X-PRONUNCIATION-LAST-NAME:PronunciationLastName
ORG:My Company\, Inc.
TITLE:CEO
ROLE:Executive
EMAIL;PREF=1;TYPE=work:john@mycompany.com
EMAIL;PREF=2;TYPE=home:johndoe@example.com
TEL;PREF=1;TYPE=work:1 (234) 567-8901
TEL;PREF=2:(123) 123-1234
TEL;VALUE=uri;PREF=3:tel:1234567890
ADR;PREF=1;TYPE=work:;;123 Forbes Ave\, Apt 1;San Francisco;CA;12345;USA
ADR;PREF=2;TYPE=home:;;456 Home St;Homeland;CA;23456;USA
X-SOCIALPROFILE;PREF=1;TYPE=facebook:http://www.facebook.com/johndoe
X-SOCIALPROFILE;PREF=2;TYPE=twitter;x-user=johnie:x-apple:johnie
URL;PREF=1;TYPE=internet:http://www.mycompany.com
URL;PREF=2;TYPE=personal:http://www.johndoe.com
PHOTO;PREF=1;TYPE=work:https://upload.wikimedia.org/wikipedia/en/8/80/Wikipedia-logo-v2.svg
PHOTO;PREF=2;TYPE=home:data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAD///+l2Z/dAAAAM0lEQVR4nGP4/5/h/1+G/58ZDrAz3D/McH8yw83NDDeNGe4Ug9C9zwz3gVLMDA/A6P9/AFGGFyjOXZtQAAAAAElFTkSuQmCC
BDAY:20000131
GENDER:M
NOTE;PREF=1:John Doe has a long and varied history\, being documented on more police files that anyone else.\nReports of his death are alas numerous.
NOTE;PREF=2:Another note.
END:VCARD
(taken from vcard-generator )
BTW, LibreOffice Draw has a QR code generator ( just Insert > OLE Object > QR and Barcode ); the example above inserted in the “URL/Text” area generated graphics that were recognized by my Motorola phone, which offered to add the contact to my contacts db.
Thanks for all the info.
Have been doing a bit more googling myself, and came across this page which has a good description of various features.
Still haven’t found any page giving info on how to add multiple blocks of info, but, yes,
not sure how this would work…
Also can’t find the page that suggested this was do-able… ![]()
Thanks.
Not sure what you are looking for, maybe Feature 6 on qrcode.com ? Other useful info on that site too.
A QR code is just a way of encoding text. So structure the text however you want it structured. A vCard is an example.
If you encode something in a QR code (say, a phone number and a URL), the way it’s encoded doesn’t tell the QR code scanning software what to do with that information.
Only that application can decide what to do with it.
An encoded vCard, for example, on my Samsung phone, gets pulled in as a new contact.
It seems like what you’re looking to do is encode a URL and a phone number in a code, and then be able to scan the code with an app on your phone and be able to select whether you visit the website OR make a call to the phone number.
It’s up to the application that scans the QR code what to do when it detects those two pieces of information. There’s nothing you can do in the code itself that will make an application behave a certain way.
This is demonstrated historically by using QR codes to “Rickroll” people, because the apps used to just scan the code and go straight to the website that was encoded (if it was a website). Most QR code scanning apps now tell you where the URL points and let you decide whether to visit the site or not.
That’s a function of the app - no QR codes were changed to implement that behavior. The apps were changed to introduce a level of safety.
QR codes are data. They’re not software. What happens to the data depends entirely on how the code processing it interprets and uses it.
Does that make sense?
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
