Ok. Here is an outline of what you need to do:
On the TC55:
In Datawedge change your apps profile to:
Disable Keyboard Wedge Emulation
Enable Intent Output.
Set the intent action: use your apps package name and a description (yourpackagename.SCAN for example)
Set the intent category: I just use android.intent.DEFAULT
Set the intent delivery: You have a choice about which sort of Intent you want to use. I think the simplest to setup will be a broadcast intent.
In B4A you need to:
Download the
BroadCastReciever library
Create a service to handle the intents broadcast by datawedge.
The instructions for the library are pretty straight forward. In the AddAction method you will just pass yourpackagename.SCAN.