Apply Tilde

149 views
Skip to first unread message

Nicolas Etienne

unread,
Nov 27, 2015, 2:14:21 AM11/27/15
to zxing
Hi

I have a DataMatrix code to generate.

The code is composed of the bluetooth address + this code "~3B" that I must had as a prefix to
the barcode.

So, I need to encode :

string toEncode = "~3B" + BluetoothAddress;


I've never managed to achieve this with ZXing.

So, I've decided to buy Neodynamic barcode library because there is an "apply Tilde" property.

I've test the generated barcode and it works fine.

this happened 6 months ago for the Compact framework platform.

Now, I have to deal with the same issue on Android platform.


My question is simple:

Can anyone tell me what to put in the string to be encoded in order to fully generate the right
code taking into account this "tilde" (~) character...

I CAN'T get rid off the use of the tilde because it is for pairing bluetooth device and the "~3B" code
is mandatory for pairing on this kind of machine (Zebra stuff).

Thanks

Nicolas, Toulouse, France

Sean Owen

unread,
Nov 28, 2015, 7:45:37 PM11/28/15
to zxing
I'm not sure what you mean. You can always encode whatever text you like in a barcode. You haven't said what your problem is.

Nicolas Etienne

unread,
Nov 29, 2015, 3:37:36 AM11/29/15
to zxing
Le dimanche 29 novembre 2015 01:45:37 UTC+1, Sean Owen a écrit :
> I'm not sure what you mean. You can always encode whatever text you like in a barcode. You haven't said what your problem is.

Well, What I say is that when using Neodynamic library, I can generate a datamatrix code
by using ApplyTilde and when encoding a string like "~3B" + value of the bluetooth, I get a correct
datamatrix code.
If I use zxing with the same string "~3B" + bluetooth address, I don't get the same result. I'm sur that the datamatrix code produced by Neodymanic works because I use it every day to pair device.

Here is the code for instance I get for "~3B" + "00C0AF0243A3" with Neodynamic...
The picture is the generated code...

Nicolas Etienne

unread,
Nov 29, 2015, 3:38:13 AM11/29/15
to zxing
Sorry, I can't add a picture

Sean Owen

unread,
Nov 30, 2015, 2:52:16 AM11/30/15
to zxing
I don't know what "ApplyTilde" is but it's not a DataMatrix thing. You can successfully encode "~3B" in DataMatrix with this library. I don't know what results you are looking at but think you are misunderstanding the function of the encoder or decoder.

Nicolas Etienne

unread,
Nov 30, 2015, 2:57:49 AM11/30/15
to zxing
Le lundi 30 novembre 2015 08:52:16 UTC+1, Sean Owen a écrit :
> I don't know what "ApplyTilde" is but it's not a DataMatrix thing. You can successfully encode "~3B" in DataMatrix with this library. I don't know what results you are looking at but think you are misunderstanding the function of the encoder or decoder.

I may misunderstand the meaning of encoder or decode, but tell me, how can I get the same
result with ZXing that I get with this page :

http://www.racoindustries.com/barcodegenerator/2d/datamatrix.aspx
Code : ~3B00C0AF0243A3
Datamatrix process tilde option is checked

How can I get exactly the same barcode with ZXing ?

Lachezar Dobrev

unread,
Nov 30, 2015, 5:10:37 AM11/30/15
to Sean Owen, zxing
  This looks to me as one of those *magic* combinations to instruct specific encoders to do a specific text-to-binary conversion or to output specific code-words.
  Shame the original poster is not supplying an example matrix.
  Either way I'm pretty sure ZXing Data Matrix Encoder does not allow binary representation and special code-words. Similar to the problem with GS1 Data Matrix symbols (they require a special code-word as a separator).

2015-11-30 9:52 GMT+02:00 Sean Owen <sro...@gmail.com>:
I don't know what "ApplyTilde" is but it's not a DataMatrix thing. You can successfully encode "~3B" in DataMatrix with this library. I don't know what results you are looking at but think you are misunderstanding the function of the encoder or decoder.

--
You received this message because you are subscribed to the Google Groups "zxing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages