I forgot to comment that you can use the on-screen keyboard in conjunction with the barcode reader.
You have to configure it in Settings -> Language and text entry -> Physical keyboard = NO
I wanted to do it programmatically, so I do not have to manually change it in each of the devices.
Anyway, that's how it works, it's the momentary solution.
Thanks friends.