1 of 1 people found this helpful
Hello.. in reading through your post it appears you want to use the On_key functionality.. below is a sample of the On_Key..
Activate( On_Key, 0x79, None )
i hope this helps..
the problem is that I want to enable RFID from a script.
I enabled RFID with F10 key, but if I press F10 on the keyboard of the handheld (FUNCT+F10) it works and read the tags, and if I use it in a script as a Keypress_Key(0x79), it don't works.
I need to enable RFID from a script.
Are you saying that you want the script automated? To fire off the RFID automatically on a certain screen?
Yes! I need to fire off or on the RFID automatically on a certain screen.
If in the screen appears an X in a certain position I need to enable RFID. Else disable it.
In order for a script to fire off on certain screens, you will first need to verify what on that screen is unique from the other screens.. be low is an example of a verify.. you can also use the Reformatter ,that is free with the 7.3 Telnet clients, to complete alot of this as well.
Activate( Screen_Update )
If_Not( String_Equal( Get_Screen_Text_Length( 1, 36, 7 ), "Sign On", 0, FALSE ) )
Set_Cursor_Position( 6, 53 )
In order to fire off the RFID reader you will need to use a custom escape sequence. Below is a link to a community article that discusses how to do this..This article will give the format needed for the script
You will also you will need the enable and disable functions for the RFID, which are below..
ESC $ Pe ; Pr R
Enable/Disable the RFID reader
Pe=0 Disable RFID
Pe=1 Enable RFID
Pe=2 Don’t change RFID state
Pr=0 Don’t return new state
Pr=1 Return new state
If Pr=1, it returns:
ESC $ Pe R
Where Pe=0 if the RFID reader is disabled, or Pe=1 if the RFID reader is enabled.
I should also add that RFID in some situtions does need to be tweaked a bit.. Below are some further examples of that..
RFID Attenuation (Transmit Power)
(Telnet 7.2.40 or later only)
ESC $ 1 ; Po A
ESC $ 0 A
Set the RFID attenuation (transmit power) to the desired level.
Po = Power Level. A value between 0 and 255, where 0 is the maximum power and 255 is the minimum power.
Get the current RFID attenuation.
The returned format is:
ESC $ 0 ; Po A
Clear RFID Tags
ESC $ C
Erase all the RFID tags stored by the RFID reader. This will allow future scanning to return tags that have already been reported.
ESC $ 1 ; 0 F
ESC $ 1 ; Pl ; Po ; Pm F
ESC $ 0 F
Clear (disable) the filter for the RFID reader.
Set the filter for the RFID reader.
Pl = Length (in bits) of the mask Pm.
Po = Starting bit offset of the filter mask.
Pm = Filter mask as a lower-case hexadecimal string.
EXAMPLE: ESC $ 1 ; 24 ; 32 ; 37d2a9 F
(Sets the filter to test that the 4th – 6th bytes match
37h, D2h and A9h respectively.)
Get the current filter for the RFID reader.
The returned format is:
ESC $ 0 ; Pl ; Po ; Pm F
if a filter is set, or
ESC $ 0 ; 0 F
if filtering is not enabled.
Really I don't know how to thank you...this is the thing I need! THANKS
I'm sorry Cachilli but I tried in these days and I noticed that don't works...I don't know if I'm wrong.
I tried a simple:
Script( RFID_ON )
Activate( From_Menu )
Escape_Sequence( "$1" )
I went on mine right screen with an input field and called manually the script I created, but without success.
It seems to launch it, but when I push the trigger it don't read and start the laser scanner reader, not the RFID reader.
Can you help me?
Hi Cachilli, it did not work for me also, i am using TelnetCE 7.3.172 version and Motorola 919Z. The pop-up says 'Attempting to Enable RFID reader' and screen stucks there.
It actually worked in older Motorola Handheld models 909Z models.
Can you please help.
found the root cause-
we have emulation parameter 'Enable RFID' as YES and also we have the above script that enables it when session connects.
so these 2 settings are overlapping eachother and failing to activate it.
so, I put a delay of 10sec before starting the script and the problem solved.
Script( RFID_Scanner_Auto_Enable )
Activate( Connection )
Delay( 10000 )
Escape_Sequence( "$1;1R" )
Hi...thanks for the idea!
I'll try it in the next days!!!