SBL2E TCP Encoding

Discussion to talk about hardware related topics only.
Post Reply
elie.n
Posts: 3
Joined: Tue Dec 22, 2020 3:05 am

SBL2E TCP Encoding

Post by elie.n »

Hi,

I have a microcontroller, which sends data through a FTDI UART to USB cable, but we wanted to change the USB to ethernet, so we bought a SBL2E-100IR.
The data we used to receive via USB was i nthis format (via Putty) : >>2504,4,14,24,34,44,54,64,74,84,94,104,4
But when I change the USB cable to the SBL2E (Connecting TX and RX from the microcontroller to the UART0 of the SBL2E), I receive random garbage chars in my data like this : >>17▒b▒▒b▒4,54,64,▒ ▒b▒▒,104,114,▒&)▒▒b▒

I updated the SBL2E with the latest firmware available from the NetBurner website.

Any ideas why I cannot receive correct data ?

Thanks in advance !
User avatar
pbreed
Posts: 1080
Joined: Thu Apr 24, 2008 3:58 pm

Re: SBL2E TCP Encoding

Post by pbreed »

Did you change the Baud Rate to match your serial device?
elie.n
Posts: 3
Joined: Tue Dec 22, 2020 3:05 am

Re: SBL2E TCP Encoding

Post by elie.n »

Yes, baud rate, data bits, stop bits and parity are set correctly with the microcontroller !
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: SBL2E TCP Encoding

Post by TomNB »

Are you running with RS-232 level shifters, or are you just using 3.3V signals? How long is the cable?
elie.n
Posts: 3
Joined: Tue Dec 22, 2020 3:05 am

Re: SBL2E TCP Encoding

Post by elie.n »

I only have 3.3V signals, no level shifters. The cable is about 30cm long.
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: SBL2E TCP Encoding

Post by TomNB »

I can think of a few possibilities:
1. Somehow the usb to uart cable had shielding or twisted pair wiring so it was less susceptible to noise
2. The cable you are using is not wired properly, and may be missing a ground connection. Are you wired with rx, tx and ground?
3. Many usb to uart cables are designed for 5V. Just a check to verify your device is 3.3V

Can you send a photo and/or a description of what your cabling looks like?
Post Reply