Skip to content

Wrong DLE escape implemattion in SerialPortDeviceCommunication #56

@PasHGR

Description

@PasHGR

NuGet Package Version

No response

Payment service provider

PAYONE

Payment terminal

P400 Plus

Communication Logs

08:09:41.251 INF Portalum.Zvt.ZvtClient PaymentAsync - Execute with amount of:1,9
08:09:41.252 DBG Portalum.Zvt.ZvtClient SendCommandAsync - Send command to PT
08:09:41.252 DBG Portalum.Zvt.SerialPortDeviceCommunication SendRaw - 10-02-06-01-07-04-00-00-00-00-01-90-10-03-76-57
08:09:41.279 INF Portalum.Zvt.SerialPortDeviceCommunication SendAsync - Acknowledge received
08:09:41.292 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 10
08:09:41.292 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.293 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 02
08:09:41.293 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.294 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 80
08:09:41.294 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.295 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 00
08:09:41.295 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.296 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 00
08:09:41.296 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.297 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 10
08:09:41.297 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.299 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 03
08:09:41.299 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.300 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - F5
08:09:41.300 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.301 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 1F
08:09:41.301 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Process buffer 10-02-80-00-00-10-03-F5-1F
08:09:41.301 DBG Portalum.Zvt.SerialPortDeviceCommunication SendRaw - 06
08:09:41.301 DBG Portalum.Zvt.ZvtClient DataReceiveSwitch - wait for Command Completion
08:09:41.616 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 10
08:09:41.616 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.617 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 02
08:09:41.617 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.618 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 04
08:09:41.618 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.620 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - FF
08:09:41.620 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.621 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 37
08:09:41.621 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.622 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 0A
08:09:41.622 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.623 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 03

08:09:41.623 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.624 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 06
08:09:41.624 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.625 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 33
08:09:41.625 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Process buffer 10-02-04-FF-37-0A-03-06-33
08:09:41.625 WRN Portalum.Zvt.SerialPortDeviceCommunication Receive - Checksum invalid
08:09:41.626 DBG Portalum.Zvt.SerialPortDeviceCommunication SendRaw - 15
08:09:41.626 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 24
08:09:41.626 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer
08:09:41.627 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - 31
08:09:41.627 DBG Portalum.Zvt.SerialPortDeviceCommunication Receive - Add to buffer

More information

When ETX is in the APDU Data there are issues with block framing. The CRC Calculation is done in the middle in the block (Checksum invalid) and there should be a propper handling of the escape sequences.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions