진행할 프로젝트에 적용을 위해 wiz750sr ttl을 2대 구매해서 테스트를 진행중입니다.
클라이언트로 적용을 해서 uart r/tx를 ttl로 연결을 한다음 헥사값을 전송하는데 전혀 엉뚱한값이 나옵니다. 수신은 서버에서 보내는대로 헥사값이 정확히 나옵니다. 문제는 송신쪽인데 uart TX값은 wiz750모듈에 정확히 들어갑니다.
예를 들어 2b 04 5d 72 값을 보내면 02001860 서버쪽에 값이 이렇게 나옵니다.
41 41 41 61 61 61 4a 4a 4a 4a 을 보내면 00000040404000000000 이렇게 나오고요
셋팅은 debug port에서 나온값은 하기와 같습니다.
WIZ750SR
WIZnet Serial to Ethernet Device
Firmware version: 1.3.3 Stable
==================================================
- Device name: WIZ750SR
- Device mode: TCP_CLIENT_MODE
- Network settings:
- Obtaining IP settings: [Automatic - DHCP]
- TCP/UDP ports
- S2E data port: [5000]
- TCP/UDP setting port: [50001]
- Firmware update port: [50002]
- TCP Retransmission retry: [8]
- Search ID code:
- Disabled: [None]
- Ethernet connection password:
- Disabled (TCP server / mixed mode only)
- Connection timer settings:
- Inactivity timer: Disabled
- Reconnect interval: [3000] (msec)
- Serial settings:
- Data UART port: [UART0]
- UART IF: [RS-232/TTL]
- 115200-8-N-1 / Flow control: NONE
- Debug UART port: [UART2]
- 115200-8-N-1 / NONE (fixed)
- Data UART port: [UART0]
- Serial data packing options:
- Time: Disabled
- Size: Disabled
- Char: Disabled
- Serial command mode switch code:
- Disabled
- [2B][2B][2B] (Hex only)
- Hardware information: Status pins
- Status 1: [PA_10] - PHY link
- Status 2: [PA_01] - TCP connection
- Hardware information: User I/O pins
- UserIO A: [PC_13] - Digital / Input
- UserIO B: [PC_12] - Digital / Input
- UserIO C: [PC_09] - Digital / Input
- UserIO D: [PC_08] - Digital / Input
==================================================
SEGCP:UDP:STARTED
MAC: 00:08:DC:73:63:D5
IP : 192.168.1.58 / Port: 5000
GW : 192.168.1.1
SN : 255.255.255.0
DNS: 192.168.1.1
Destination IP: 192.168.1.60 / Port: 7000
DHCP IP Leased time : 86400 seconds
SEG:TCP_CLIENT_MODE:SOCKOPEN
셋팅에 무슨 문제가 있는지요?