WTware - using chip card reader terminal with Raspberry v3

All about WTware on Raspberry. Wtware works with Raspberry Pi 3 Model B and Pi 2 Model B devices
http://www.winterminal.com
jktz90

WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Sat Oct 14, 2017 9:13 pm

Hello,

Is it possible to connect a card reader terminal (to read patients' insurance cards) to my Raspberry PI v3 via USB? The Raspberry is part of a company network using WIN 2008 server.


jktz90

Re: WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Wed Oct 18, 2017 8:13 pm

Is there any possibility to simply redirect my "virtual COM port" (Device connected to PI using a USB converter) to my Windows 2008 server if the necessary drivers are installed on the server?

I thought serial = com1(usb) would do that, but can't figure it out yet.

Thanks

aka
SUPPORT
SUPPORT
Posts: 561
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: WTware - using chip card reader terminal with Raspberry v3

Postby aka » Sat Oct 21, 2017 11:11 pm

jktz90 wrote:redirect my "virtual COM port" (Device connected to PI using a USB converter) to my Windows 2008 server if the necessary drivers are installed on the server?

Drivers for usb-com chip should be in WTware. We have some, but many noname cheap chips have no drivers for linux. Connect device to USB, add "serial = com1(usb)" to config and show us a log: http://wtware.com/logs.html

jktz90

Re: WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Mon Oct 23, 2017 12:18 pm

I will do so as soon as possible, meanwhile I have another question: shouldn't serial = com1(usb) create an additional com port on the 2008 server? I tried listing all of my com ports on the server (using "change port") but couldnt see an additional port with my pi3 connected.

aka
SUPPORT
SUPPORT
Posts: 561
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: WTware - using chip card reader terminal with Raspberry v3

Postby aka » Mon Oct 23, 2017 12:50 pm

jktz90 wrote:..shouldn't serial = com1(usb) create an additional com port on the 2008 server? I tried listing all of my com ports on the server (using "change port") but couldnt see an additional port with my pi3 connected.


https://wtware.com/docs5/config.html#serial

Redirected by RDP COM ports are not displayed in Device Manager! To make sure, that everything is right: connect to terminal server, start command line prompt and execute change port command. Correct result is (redirected COM1 port):

Code: Select all

COM1 = \Device\RdpDrPort\;COM1:1\\tsclient\COM1
COM11 = \Device\Serial0
COM12 = \Device\Serial1


It means, that there are three serial ports available in session. COM11 and COM12 ports are physical server ports. COM1 is physical terminal COM1 port. In this session any application, that works with COM1 device, in fact works with terminal COM1 port.

jktz90

Re: WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Tue Oct 24, 2017 12:23 am

I was now able to redirect by COM Port to the server but Im still running in to a problem:

It seems like the communication between my smartcard reader (connected to PI3 via FTDI R232 to USB converter) and my program/drivers on the Win2008 server is corrupted. Im able to turn on the device via server (ehealth program) but it is not able to read the insurance card properly - as if the data the server receives is corrupted. Is there any option to set the baudrate with serial = comx(usb) manually? The FTDI to usb converter is recognized by WTware (I checked the log).

I was already able to use the smartcard reader with the exact same setup using Ubuntu MATE / rdesktop.

Thanks

akatik
SUPPORT
SUPPORT
Posts: 129
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: WTware - using chip card reader terminal with Raspberry v3

Postby akatik » Tue Oct 24, 2017 11:44 am

jktz90 wrote:Is there any option to set the baudrate with serial = comx(usb) manually?

Yes. In configuration of your program/drivers on the Win2008 server. On Windows side. Windows always reconfigures port speed opening port redirected over RDP.

Take a log with debug and show me log:

serial=comx(usb),debug


Please, remove all unnecessary lines from config and save log just when you see the first error. As manual says: https://wtware.com/logs.html

There is another redirection method in WTware:

https://wtware.com/docs5/config.html#ser2net

Here you can configure speed. Use only one of them, not both.

jktz90
Posts: 10
Joined: Tue Oct 24, 2017 1:19 am

Re: WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Tue Oct 24, 2017 2:11 pm

Any idea why it works on Ubuntu mate (using rdesktop with no modification) and not with WTware?

Normal settings for the device should be:
115200 Baud
8 data bits
even parity
1 stop bit

Here the log:

WTware 5.6.16
WTware 5.6.16/RPi supervisor.
[ KERNEL] [ 0.000000] Booting Linux on physical CPU 0x0
[ KERNEL] [ 0.000000] Linux version 4.9.51 (aka@c12) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP Sat Sep 30 11:33:59 +04 2017
[ KERNEL] [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ KERNEL] [ 0.000000] CPU: div instructions available: patching division code
[ KERNEL] [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ KERNEL] [ 0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[ KERNEL] [ 0.000000] cma: Reserved 8 MiB at 0x3ac00000
[ KERNEL] [ 0.000000] Memory policy: Data cache writealloc
[ KERNEL] [ 0.000000] On node 0 totalpages: 242688
[ KERNEL] [ 0.000000] free_area_init_node: node 0, pgdat 80b22cc0, node_mem_map ba3a1000
[ KERNEL] [ 0.000000] Normal zone: 2133 pages used for memmap
[ KERNEL] [ 0.000000] Normal zone: 0 pages reserved
[ KERNEL] [ 0.000000] Normal zone: 242688 pages, LIFO batch:31
[ KERNEL] [ 0.000000] percpu: Embedded 11 pages/cpu @ba367000 s16076 r8192 d20788 u45056
[ KERNEL] [ 0.000000] pcpu-alloc: s16076 r8192 d20788 u45056 alloc=11*4096
[ KERNEL] [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ KERNEL] [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 240555
[ KERNEL] [ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708_fb.fbdepth=16 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 quiet wtboot=mmc
[ KERNEL] [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ KERNEL] [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ KERNEL] [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ KERNEL] [ 0.000000] Memory: 942176K/970752K available (5120K kernel code, 143K rwdata, 920K rodata, 4096K init, 373K bss, 20384K reserved, 8192K cma-reserved)
[ KERNEL] [ 0.000000] Virtual kernel memory layout:
[ KERNEL] [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ KERNEL] [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ KERNEL] [ 0.000000] vmalloc : 0xbb800000 - 0xff800000 (1088 MB)
[ KERNEL] [ 0.000000] lowmem : 0x80000000 - 0xbb400000 ( 948 MB)
[ KERNEL] [ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ KERNEL] [ 0.000000] .text : 0x80008000 - 0x80600000 (6112 kB)
[ KERNEL] [ 0.000000] .init : 0x80700000 - 0x80b00000 (4096 kB)
[ KERNEL] [ 0.000000] .data : 0x80b00000 - 0x80b23f78 ( 144 kB)
[ KERNEL] [ 0.000000] .bss : 0x80b25000 - 0x80b826a0 ( 374 kB)
[ KERNEL] [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ KERNEL] [ 0.000000] Hierarchical RCU implementation.
[ KERNEL] [ 0.000000] Build-time adjustment of leaf fanout to 32.
[ KERNEL] [ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ KERNEL] [ 0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[ KERNEL] [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ KERNEL] [ 0.000006] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ KERNEL] [ 0.000017] Switching to timer-based delay loop, resolution 52ns
[ KERNEL] [ 0.000211] Console: colour dummy device 80x30
[ KERNEL] [ 0.000224] console [tty0] enabled
[ KERNEL] [ 0.000239] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ KERNEL] [ 0.000252] pid_max: default: 32768 minimum: 301
[ KERNEL] [ 0.000383] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ KERNEL] [ 0.000390] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ KERNEL] [ 0.001228] Disabling memory control group subsystem
[ KERNEL] [ 0.001280] CPU: Testing write buffer coherency: ok
[ KERNEL] [ 0.001617] CPU0: update cpu_capacity 1024
[ KERNEL] [ 0.001624] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ KERNEL] [ 0.001648] Setting up static identity map for 0x100000 - 0x100034
[ KERNEL] [ 0.003139] CPU1: update cpu_capacity 1024
[ KERNEL] [ 0.003146] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ KERNEL] [ 0.003700] CPU2: update cpu_capacity 1024
[ KERNEL] [ 0.003706] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ KERNEL] [ 0.004254] CPU3: update cpu_capacity 1024
[ KERNEL] [ 0.004260] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ KERNEL] [ 0.004336] Brought up 4 CPUs
[ KERNEL] [ 0.004346] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ KERNEL] [ 0.004349] CPU: All CPU(s) started in HYP mode.
[ KERNEL] [ 0.004352] CPU: Virtualization extensions available.
[ KERNEL] [ 0.004887] devtmpfs: initialized
[ KERNEL] [ 0.014481] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ KERNEL] [ 0.014862] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ KERNEL] [ 0.014877] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ KERNEL] [ 0.015353] pinctrl core: initialized pinctrl subsystem
[ KERNEL] [ 0.015879] NET: Registered protocol family 16
[ KERNEL] [ 0.017707] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ KERNEL] [ 0.027874] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ KERNEL] [ 0.111168] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
[ KERNEL] [ 0.113514] usbcore: registered new interface driver usbfs
[ KERNEL] [ 0.113638] usbcore: registered new interface driver hub
[ KERNEL] [ 0.113723] usbcore: registered new device driver usb
[ KERNEL] [ 0.120163] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-09-12 15:21
[ KERNEL] [ 0.122437] clocksource: Switched to clocksource arch_sys_counter
[ KERNEL] [ 0.137165] NET: Registered protocol family 2
[ KERNEL] [ 0.137735] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ KERNEL] [ 0.137841] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ KERNEL] [ 0.138026] TCP: Hash tables configured (established 8192 bind 8192)
[ KERNEL] [ 0.138113] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ KERNEL] [ 0.138154] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ KERNEL] [ 0.138333] NET: Registered protocol family 1
[ KERNEL] [ 2.240005] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ KERNEL] [ 2.275714] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ KERNEL] [ 2.275726] io scheduler noop registered
[ KERNEL] [ 2.275731] io scheduler deadline registered (default)
[ KERNEL] [ 2.285189] BCM2708FB: allocated DMA memory fad10000
[ KERNEL] [ 2.285230] BCM2708FB: allocated DMA channel 0 @ bb80f000
[ KERNEL] [ 2.305542] Console: switching to colour frame buffer device 160x64
[ KERNEL] [ 2.318972] bcm2835-rng 3f104000.rng: hwrng registered
[ KERNEL] [ 2.319125] vc-cma: Videocore CMA driver
[ KERNEL] [ 2.319132] vc-cma: vc_cma_base = 0x00000000
[ KERNEL] [ 2.319145] vc-cma: vc_cma_size = 0x00000000 (0 MiB)
[ KERNEL] [ 2.319157] vc-cma: vc_cma_initial = 0x00000000 (0 MiB)
[ KERNEL] [ 2.319527] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ KERNEL] [ 2.320317] vc-sm: Videocore shared memory driver
[ KERNEL] [ 2.326504] zram: Added device: zram0
[ KERNEL] [ 2.326553] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ KERNEL] [ 2.554698] Core Release: 2.80a
[ KERNEL] [ 2.554714] Setting default values for core params
[ KERNEL] [ 2.554739] Finished setting default values for core params
[ KERNEL] [ 2.755084] Using Buffer DMA mode
[ KERNEL] [ 2.755091] Periodic Transfer Interrupt Enhancement - disabled
[ KERNEL] [ 2.755095] Multiprocessor Interrupt Enhancement - disabled
[ KERNEL] [ 2.755102] OTG VER PARAM: 0, OTG VER FLAG: 0
[ KERNEL] [ 2.755136] Dedicated Tx FIFOs mode
[ KERNEL] [ 2.755583] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xbad04000 dma = 0xfad04000 len=9024
[ KERNEL] [ 2.755607] FIQ FSM acceleration enabled for :
[ KERNEL] [ 2.755607] Non-periodic Split Transactions
[ KERNEL] [ 2.755607] Periodic Split Transactions
[ KERNEL] [ 2.755607] High-Speed Isochronous Endpoints
[ KERNEL] [ 2.755607] Interrupt/Control Split Transaction hack enabled
[ KERNEL] [ 2.755613] dwc_otg: Microframe scheduler enabled
[ KERNEL] [ 2.755656] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x80398974
[ KERNEL] [ 2.755665] WARN::hcd_init_fiq:460: FIQ ASM at 0x80398cd8 length 36
[ KERNEL] [ 2.755675] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb925000
[ KERNEL] [ 2.755729] dwc_otg 3f980000.usb: DWC OTG Controller
[ KERNEL] [ 2.755762] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ KERNEL] [ 2.755792] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[ KERNEL] [ 2.755837] Init: Port Power? op_state=1
[ KERNEL] [ 2.755841] Init: Power Port (0)
[ KERNEL] [ 2.756019] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ KERNEL] [ 2.756028] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ KERNEL] [ 2.756035] usb usb1: Product: DWC OTG Controller
[ KERNEL] [ 2.756042] usb usb1: Manufacturer: Linux 4.9.51 dwc_otg_hcd
[ KERNEL] [ 2.756049] usb usb1: SerialNumber: 3f980000.usb
[ KERNEL] [ 2.756775] hub 1-0:1.0: USB hub found
[ KERNEL] [ 2.756816] hub 1-0:1.0: 1 port detected
[ KERNEL] [ 2.757525] dwc_otg: FIQ enabled
[ KERNEL] [ 2.757529] dwc_otg: NAK holdoff enabled
[ KERNEL] [ 2.757533] dwc_otg: FIQ split-transaction FSM enabled
[ KERNEL] [ 2.757614] Module dwc_common_port init
[ KERNEL] [ 2.758221] usbcore: registered new interface driver usbtouchscreen
[ KERNEL] [ 2.759774] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ KERNEL] [ 2.760155] bcm2835-cpufreq: min=600000 max=1200000
[ KERNEL] [ 2.761222] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[ KERNEL] [ 2.763688] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[ KERNEL] [ 2.766060] ledtrig-cpu: registered to indicate activity on CPUs
[ KERNEL] [ 2.766160] hidraw: raw HID events driver (C) Jiri Kosina
[ KERNEL] [ 2.766921] usbcore: registered new interface driver usbhid
[ KERNEL] [ 2.766929] usbhid: USB HID core driver
[ KERNEL] [ 2.767918] vchiq: vchiq_init_state: slot_zero = 0xbad80000, is_master = 0
[ KERNEL] [ 2.774811] [vc_sm_connected_init]: start
[ KERNEL] [ 2.781872] [vc_sm_connected_init]: end - returning 0
[ KERNEL] [ 2.782144] NET: Registered protocol family 17
[ KERNEL] [ 2.782255] Registering SWP/SWPB emulation handler
[ KERNEL] [ 2.782876] registered taskstats version 1
[ KERNEL] [ 2.786826] sdhost: log_buf @ bad07000 (fad07000)
[ KERNEL] [ 2.862489] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ KERNEL] [ 2.864822] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ KERNEL] [ 2.864830] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[ KERNEL] [ 2.922611] of_cfs_init
[ KERNEL] [ 2.922691] of_cfs_init: OK
[ KERNEL] [ 2.943230] Freeing unused kernel memory: 4096K
[ KERNEL] [ 2.965004] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ KERNEL] [ 2.966549] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ KERNEL] [ 2.968096] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ KERNEL] [ 2.973759] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ KERNEL] [ 2.973795] mmc0: host does not support reading read-only switch, assuming write-enable
[ KERNEL] [ 2.974294] Indeed it is in host mode hprt0 = 00021501
[ KERNEL] [ 3.035642] mmc0: new high speed SDHC card at address c4a2
[ KERNEL] [ 3.036479] mmcblk0: mmc0:c4a2 SU04G 3.69 GiB
[ KERNEL] [ 3.040705] mmcblk0: p1 p2 p3
[ hotplug] [ 3.041848] Block device 179:0. No action.
[ hotplug] [ 3.042029] Block device 179:1. No action.
[ hotplug] [ 3.042335] Block device 179:2. No action.
[ hotplug] [ 3.043788] Block device 179:3. No action.
[ KERNEL] [ 3.049808] random: fast init done
[ KERNEL] [ 3.127441] mmc1: new high speed SDIO card at address 0001
[ KERNEL] [ 3.172506] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ KERNEL] [ 3.172627] Indeed it is in host mode hprt0 = 00001101
[ hotplug] [ 3.237081] Block device 254:0. No action.
[ pfac] [ 3.279080] Run /sbin/initrd.
[ pfac] [ 3.279555] Ok, PID 610.
[ initrd] [ 3.282770] WTware shell 5.6.16/RPi
[ initrd] [ 3.302477] HDD/MMC/SD boot.
[ KERNEL] [ 3.402700] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[ KERNEL] [ 3.402711] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ KERNEL] [ 3.403493] hub 1-1:1.0: USB hub found
[ KERNEL] [ 3.403611] hub 1-1:1.0: 5 ports detected
[ KERNEL] [ 3.722469] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ KERNEL] [ 3.852720] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[ KERNEL] [ 3.852730] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ KERNEL] [ 3.952460] usb 1-1.3: new full-speed USB device number 4 using dwc_otg
[ KERNEL] [ 4.085503] usb 1-1.3: New USB device found, idVendor=067b, idProduct=2303
[ KERNEL] [ 4.085514] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ KERNEL] [ 4.085521] usb 1-1.3: Product: USB-Serial Controller
[ KERNEL] [ 4.085529] usb 1-1.3: Manufacturer: Prolific Technology Inc.
[ KERNEL] [ 4.182466] usb 1-1.5: new full-speed USB device number 5 using dwc_otg
[ KERNEL] [ 4.340377] usb 1-1.5: New USB device found, idVendor=248a, idProduct=8367
[ KERNEL] [ 4.340387] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ KERNEL] [ 4.340394] usb 1-1.5: Product: Wireless Receiver
[ KERNEL] [ 4.340401] usb 1-1.5: Manufacturer: Telink
[ KERNEL] [ 4.363156] input: Telink Wireless Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:248A:8367.0001/input/input0
[ KERNEL] [ 4.432981] hid-generic 0003:248A:8367.0001: input,hidraw0: USB HID v1.11 Mouse [Telink Wireless Receiver] on usb-3f980000.usb-1.5/input0
[ KERNEL] [ 4.444246] input: Telink Wireless Receiver as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:248A:8367.0002/input/input1
[ KERNEL] [ 4.513839] hid-generic 0003:248A:8367.0002: input,hidraw1: USB HID v1.11 Keyboard [Telink Wireless Receiver] on usb-3f980000.usb-1.5/input1
[ initrd] [ 4.611697] Success: media /dev/mmcblk0p1 mounted to /bootmedia.
/--- FILE "/bootmedia/config.txt" -----------------------
| # For more options and information see
| # http://www.raspberrypi.org/documentatio ... fig-txt.md
| # Some settings may impact device functionality. See link above for details
| # Uncomment if you get no picture on HDMI for a default "safe" mode.
| #hdmi_safe=1
| # Uncomment this if your display has a black border of unused pixels visible
| # and your display can output without overscan.
| disable_overscan=1
| # Uncomment if hdmi display is not detected and composite is being output.
| #hdmi_force_hotplug=1
| # Uncomment to force a specific HDMI mode (this will force VGA).
| #hdmi_group=1
| #hdmi_mode=1
| # Force the monitor to HDMI mode so that sound will be sent over HDMI cable.
| #hdmi_drive=2
| # Uncomment to increase signal to HDMI, if you have interference, blanking, or
| # no display.
| #config_hdmi_boost=4
| # Uncomment to overclock the arm. 700 MHz is the default.
| #arm_freq=800
| disable_splash=1
| hdmi_group=2
| # 800x600: hdmi_mode=9
| # 1024x768: hdmi_mode=16
| 1280x1024: hdmi_mode=35
| # 1360x768: hdmi_mode=39
| # 1400x1050: hdmi_mode=42
| # 1440x900: hdmi_mode=47
| # 1600x1200: hdmi_mode=51
| # 1680x1050: hdmi_mode=58
| # 1366x768: hdmi_mode=81
| # 1920x1080: hdmi_mode=82
| # 1920x1200: hdmi_mode=69
| # framebuffer_depth=32
| # Uncomment for 16-bit color. It is up to two
| # times faster than default 32-bit.
| framebuffer_depth=16
| # Enable onboard audio (HDMI or jack).
| dtparam=audio=on
| # Removes the warning overlay.
| #avoid_warnings=1
| # Additionally allows turbo when low-voltage is present.
| #avoid_warnings=2
\----------------------------------------------------
[ initrd] [ 4.627014] WTpassword present: 14ff5875e9c121ae060cc88d8a3d8a73.
[ initrd] [ 6.779842] Start Setup.
[ KERNEL] [ 8.558153] random: crng init done
[ initrd] [ 9.700151] Remount /bootmedia for writing.
[ initrd] [ 16.384054] Remount /bootmedia as read-only.
/--- FILE "/bootmedia/configs/initrd.wtc" -----------------------
| [BOM]
| clientIP=192.168.0.116
| config=local
| setupPassword=14ff5875e9c121ae060cc88d8a3d8a73
| netmedia=ethernet
| paranoid=none
| nameserverIP=192.168.0.100
\----------------------------------------------------
[ initrd] [ 19.420768] Load ethernet drivers.
[ initrd] [ 19.420850] modprobe smsc95xx.
[ KERNEL] [ 19.430246] smsc95xx v1.0.5
[ KERNEL] [ 19.516199] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:7e:81:b6
[ KERNEL] [ 19.516427] usbcore: registered new interface driver smsc95xx
[ KERNEL] [ 19.604337] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[ initrd] [ 21.007498] WTpassword present: 14ff5875e9c121ae060cc88d8a3d8a73.
[ KERNEL] [ 21.007644] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
WTC listener is active.
WTC broadcast listener is active.
Send broadcast WTCU discover.
[ pfac] [ 21.009493] Run /sbin/httpd.
[ initrd] [ 21.009547] Run '/sbin/httpd', log '/tmp/httpd.out', env '', pid ''.
[ pfac] [ 21.009639] Ok, PID 653.
[ httpd] [ 21.014544] HTTP Server, WTware 5.6.16/RPi
[ initrd] [ 21.133225] USB: 248a:8367 Maxxter.
[ initrd] [ 21.133356] USB: 067b:2303 Prolific Technology, Inc. PL2303 Serial Port.
[ initrd] [ 21.133430] USB: 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter.
[ initrd] [ 21.133504] USB: 0424:9514 Standard Microsystems Corp. SMC9514 Hub.
[ initrd] [ 21.133575] Copy /bootmedia/configs/config.wtc to /tmp/config.wtc.
[ initrd] [ 21.133692] Common local disk config:
/--- FILE "/tmp/config.wtc" -----------------------
| [BOM]
| server = 192.168.0.100
| user = AP16:Praxis; Benutzerdefiniert
| mouse_accel_mult = 2
| keyboard = de
| language = de
| numlock = off
| autoshutdown = 5
| turnoffmenu = on
| infobox = never
| serial = com8(usb)
\----------------------------------------------------
/--- FILE "/etc/config.compiled" -----------------------
| [BOM]
| server=192.168.0.100
| user=AP16:Praxis; Benutzerdefiniert
| mouse_accel_mult=2
| keyboard=de
| language=de
| numlock=off
| autoshutdown=5
| turnoffmenu=on
| infobox=never
| serial=com8(usb)
| connection
\----------------------------------------------------
[ initrd] [ 21.135435] Hostname: "wtwB827EB7E81B6".
Everyone can control terminal by RSH.
RSH: listener is active.
Send broadcast WTCU discover.
[ httpd] [ 21.140142] Reread settings.
[ httpd] [ 21.140291] Everyone can control terminal by HTTP.
[ gm] [ 21.144511] WTware session manager 5.6.16/RPi.
[ gm] [ 21.145871] Add keyboard event1: Telink Wireless Receiver.
[ gm] [ 21.145949] Add keyboard event0: Telink Wireless Receiver.
[ gm] [ 21.146091] Display mode: 1280x1024, 16 bit, 0 Hz, modeline "", DDC enabled, connector 0.
[ gm] [ 21.158102] Framebuffer device found.
[ gm] [ 21.158179] LINELENBYTES 2560
[ gm] [ 21.158249] VLEN 2621440
[ gm] [ 21.170980] Use /lib/ui16.so.
[ gm] [ 21.192881] Load usb <-> serial bridges drivers.
[ gm] [ 21.195824] modprobe usbserial.
[ gm] [ 21.205953] modprobe pl2303.
[ KERNEL] [ 21.206479] usbcore: registered new interface driver usbserial
[ KERNEL] [ 21.206561] usbcore: registered new interface driver usbserial_generic
[ KERNEL] [ 21.206648] usbserial: USB Serial support registered for generic
[ KERNEL] [ 21.216131] usbcore: registered new interface driver pl2303
[ KERNEL] [ 21.216215] usbserial: USB Serial support registered for pl2303
[ KERNEL] [ 21.216304] pl2303 1-1.3:1.0: pl2303 converter detected
[ KERNEL] [ 21.222487] usb 1-1.3: pl2303 converter now attached to ttyUSB0
[ gm] [ 21.221036] modprobe ftdi_sio.
[ gm] [ 21.233881] modprobe cp210x.
[ KERNEL] [ 21.233577] usbcore: registered new interface driver ftdi_sio
[ KERNEL] [ 21.233665] usbserial: USB Serial support registered for FTDI USB Serial Device
[ gm] [ 21.243445] modprobe ch341.
[ KERNEL] [ 21.243479] usbcore: registered new interface driver cp210x
[ KERNEL] [ 21.243622] usbserial: USB Serial support registered for cp210x
[ KERNEL] [ 21.252020] usbcore: registered new interface driver ch341
[ KERNEL] [ 21.252166] usbserial: USB Serial support registered for ch341-uart
[ gm] [ 21.252269] modprobe metro-usb.
[ gm] [ 21.259476] modprobe symbolserial.
[ KERNEL] [ 21.260695] usbcore: registered new interface driver metro_usb
[ KERNEL] [ 21.260836] usbserial: USB Serial support registered for Metrologic USB to Serial
[ gm] [ 21.267884] modprobe opticon.
[ KERNEL] [ 21.269089] usbcore: registered new interface driver symbolserial
[ KERNEL] [ 21.269229] usbserial: USB Serial support registered for symbol
[ gm] [ 21.276704] modprobe cdc-acm.
[ KERNEL] [ 21.277923] usbcore: registered new interface driver opticon
[ KERNEL] [ 21.278072] usbserial: USB Serial support registered for opticon
[ KERNEL] [ 21.287507] usbcore: registered new interface driver cdc_acm
[ KERNEL] [ 21.287516] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ gm] [ 21.345861] Nobody can control terminal by VNC.
[ gm] [ 23.101254] Run '/sbin/resolver 0x17b0d58 dns [192.168.0.100]', log '', env '', pid ''.
[ pfac] [ 23.101409] Run /sbin/resolver 0x17b0d58 dns [192.168.0.100].
[ pfac] [ 23.101648] Ok, PID 703.
[ gm] [ 23.105358] 192.168.0.100 => 192.168.0.100.
[ pfac] [ 23.105639] Process pid 703 terminated, status 00000000.
[ gm] [ 23.115029] Free ram before fork terminal client /sbin/rdpclient (session 1): 931080 Kb.
[ pfac] [ 23.115188] Run /sbin/rdpclient 1.
[ gm] [ 23.115234] Run '/sbin/rdpclient 1', log '/tmp/rdpclient.out', env '', pid ''.
[ pfac] [ 23.115450] Ok, PID 704.
[ rdpclient 704] [ 23.122488] RDP Terminal Client, WTware 5.6.16/RPi, pipe 1, pid 704.
[ gm] [ 23.123141] ttyUSB0, single device.
[ gm] [ 23.123228] Run serial daemon for ttyUSB0.
[ pfac] [ 23.123300] Run /sbin/rdpdr[serial] 0 0.
[ gm] [ 23.123344] Run '/sbin/rdpdr[serial] 0 0', log '', env '', pid ''.
[ rdpclient 704] [ 23.123387] Use /lib/ui16.so.
[ pfac] [ 23.123621] Ok, PID 705.
[rdpdr-serial 0] [ 23.126414] RDP Serial Port Redirector, WTware 5.6.16/RPi, device ttyUSB0.
[ gm] [ 23.173774] COM8 => ttyUSB0.
[ rdpclient 704] [ 23.174012] Add serial redirection, COM8 in the session = hardware ttyUSB0.
[ rdpclient 704] [ 23.174630] Make RDP session with 192.168.0.100, port 3389.
[rdpdr-serial 0] [ 23.174824] New client connection, id 1.
[ rdpclient 704] [ 23.174919] Username: "Benutzerdefiniert".
[ rdpclient 704] [ 23.174997] No password.
[ rdpclient 704] [ 23.175074] No PIN.
[ rdpclient 704] [ 23.175151] No domain.
[ rdpclient 704] [ 23.175226] No shell.
[ rdpclient 704] [ 23.175301] No directory.
[ rdpclient 704] [ 23.175375] Window: 1280x1024@16.
[ rdpclient 704] [ 23.175450] PFlags 0x0000002F.
[ rdpclient 704] [ 23.175525] Keyboard 00000407:00000000.
[ rdpclient 704] [ 23.175600] My hostname "wtwB827EB7E81B6".
[ rdpclient 704] [ 23.175674] TCP: connecting to 192.168.0.100:3389.
[ rdpclient 704] [ 23.177366] TCP: connection with 192.168.0.100:3389 established.
[ rdpclient 704] [ 23.177499] Turn keepalive on.
[ rdpclient 704] [ 23.178238] Free ram after buffers allocation: 930412 KB.
[ rdpclient 704] [ 23.195705] Process RDP server certificate.
[ rdpclient 704] [ 23.195811] RDP5 encryption (X.509).
[ rdpclient 704] [ 29.461196] errorInfo 0x00000000.
[ rdpclient 704] [ 29.512094] SessionId 0x00000002: XSERVER\AP02.


Home WTware diskless client.

aka
SUPPORT
SUPPORT
Posts: 561
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: WTware - using chip card reader terminal with Raspberry v3

Postby aka » Wed Oct 25, 2017 8:57 am

Add 'debug' keyword and make a log after first error:

Code: Select all

serial=com8(usb),debug

jktz90
Posts: 10
Joined: Tue Oct 24, 2017 1:19 am

Re: WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Thu Oct 26, 2017 12:02 am

This time with the correct log.
I saved it as rar because text document was too large for upload (not sure what I could have deleted, sorry for that)
Last edited by jktz90 on Mon Nov 13, 2017 2:22 am, edited 1 time in total.

akatik
SUPPORT
SUPPORT
Posts: 129
Joined: Mon Jan 17, 2005 6:30 pm
Contact:

Re: WTware - using chip card reader terminal with Raspberry v3

Postby akatik » Sat Oct 28, 2017 1:09 pm

Mode is 8-E-1. It's not common 8-N-1. Do you really need even parity?

Speed is different in this log. Seems test tried different speed to find the one that works.

[rdpdr-serial 0] [ 45.928240] [DEBUG] Set baud rate 115200.
..
[rdpdr-serial 0] [ 45.960454] [DEBUG] IRP_MJ_WRITE
[rdpdr-serial 0] [ 45.960529] 00000000:12C000D2 ...
..
[rdpdr-serial 0] [ 45.968917] [DEBUG] IRP_MJ_READ
..
[rdpdr-serial 0] [ 45.980447] 00000000:21 !
..
[rdpdr-serial 0] [ 45.991193] [DEBUG] IRP_MJ_READ
..
[rdpdr-serial 0] [ 45.991493] 00000000:6000 `.
..
[rdpdr-serial 0] [ 46.002215] [DEBUG] IRP_MJ_READ
..
[rdpdr-serial 0] [ 46.002515] 00000000:41 A

Three times. Then:

[rdpdr-serial 0] [ 46.934681] [DEBUG] Set baud rate 9600.
..
[rdpdr-serial 0] [ 46.968339] [DEBUG] IRP_MJ_WRITE
[rdpdr-serial 0] [ 46.968412] 00000000:12C000D2 ...
..
[rdpdr-serial 0] [ 46.976415] [DEBUG] IRP_MJ_READ
..
[rdpdr-serial 0] [ 47.443357] 00000000:7C |
..
[rdpdr-serial 0] [ 47.836529] [DEBUG] IRP_MJ_WRITE
..
[rdpdr-serial 0] [ 47.836604] 00000000:12C000D2 ...
..
[rdpdr-serial 0] [ 47.845075] [DEBUG] IRP_MJ_READ
..
[rdpdr-serial 0] [ 48.343461] 00000000:00 .

And so on. "Set baud rate 57600." "Set baud rate 38400." "Set baud rate 19200." Every time it writes four bytes "12C000D2" and reads result. Result is different at different speeds.

Are you sure you need 8-E-1, not common 8-N-1?

Do you know at what speed it works?

jktz90
Posts: 10
Joined: Tue Oct 24, 2017 1:19 am

Re: WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Sat Oct 28, 2017 2:01 pm

Thanks for your reply.

Yes the standard configuration of the device is:
– 115200 Baud
– 8 databits
– even parity
– 1 stopbit

When I try to communicate with the smart card reader the reader turns on but crashes and requires a restart.

Some more info:
I have the smartcard reader in two different versions: one mobile version with direct USB connection (works totally fine with serial = comx(USB)) and one version with RS232 to USB converter (does work with Ubunutu MATE but not with WTware).
Any idea why it works with Ubuntu/rdesktop but not with WTware?

The manufacturer also released the whole source code for its device:
https://www.medline-online.com/fileadmi ... 080814.zip

* The communication between the DLL and the card terminal
* uses T=1 protocol on a serial line without handshake control:
* 9600...115200 baud, 8 databits, EVEN parity, 1 stopbit.

aka
SUPPORT
SUPPORT
Posts: 561
Joined: Fri Dec 03, 2004 2:05 pm
Contact:

Re: WTware - using chip card reader terminal with Raspberry v3

Postby aka » Sat Oct 28, 2017 11:23 pm

jktz90 wrote:I have the smartcard reader in two different versions: one mobile version with direct USB connection (works totally fine with serial = comx(USB))

Show me same log with working reader.

jktz90
Posts: 10
Joined: Tue Oct 24, 2017 1:19 am

Re: WTware - using chip card reader terminal with Raspberry v3

Postby jktz90 » Sun Oct 29, 2017 7:08 pm

Hi,

I added the USB version debug log as an attachment.
I did not find any rdesktop command to debug the working R232 version using Ubuntu MATE.



USB version:
Image



R232 version:
Image
Last edited by jktz90 on Mon Nov 13, 2017 2:21 am, edited 1 time in total.


Return to “WTware on Raspberry Pi 3 / Raspberry Pi 2”

Who is online

Users browsing this forum: No registered users and 1 guest