Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
231 views
in Technique[技术] by (71.8m points)

ios - QR Code possible data types or standards

I am developing an iOS Application for scanning QR Codes. I am successfully able to scan and get code from QR code.

Question:

My question is what are possible data types and format I can expect from QR Codes?

During my search on google I found QR Code can be used for

  1. Contact data
  2. Calendar data
  3. URL
  4. Email address
  5. Phone number
  6. SMS
  7. Plain text
  8. Geo location

Is this the complete list and is there same standard to represent above data in QR Codes? Means same way of generating QR Code for above QR types.

Is there any standard way of generating and representing data in QR Code?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Basically your text information has to be identifiable for what it is:

There is a very good summary here.

  1. Contact data - use MeCard, or vCard (much more verbose), e.g.: MECARD:Surname, First;ADR:123 Some St., Town, Zip Code, Country;EMAIL:some_name@some_ip.com;TEL:+11800123123;BDAY:19550231;; Gives: ExampleMeCard

  2. Calendar data - No standard seems to be set yet

  3. URL: Start your url with the standard format specifier such as http://, e.g.: http://stackoverflow.com/questions/19900835/qr-code-possible-data-types-or-standards Gives: ExampleUrl

  4. Email address - Start with mailto:SomeOne@SomeWhere.org gives: Example Mail To

  5. Phone number - Start with tel: e.g. tel:+1-212-555-1212 gives: Example Tel No

  6. SMS - See the RFC 5724.

  7. Plain text - Just include the text. Example Text

  8. Geo location - Use the geo:lat,long,alt format URI: geo:40.71872,-73.98905,100 (100 feet above Googles offices) gives: Example Geolocation

  9. WIFI - (ssid is 'abc' and password is '1234'). For WEP encryption: WIFI:S:abc;T:WEP;P:1234;;. For WPA/WPA2: WIFI:S:abc;T:WPA;P:1234;;. Without encryption: WIFI:S:abc;T:nopass;P:1234;;. Example WIFI NoPass

All the above example were generated with the Python qrcode package from the command line.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...