Hide thumbs Also See for SBL2e:

Advertisement

Quick Links

SBL2e Dual Serial-to-Ethernet
User's Manual
Downloaded from
Elcodis.com
electronic components distributor

Advertisement

Table of Contents
loading

Summary of Contents for NetBurner SBL2e

  • Page 1 SBL2e Dual Serial-to-Ethernet User's Manual Downloaded from Elcodis.com electronic components distributor...
  • Page 2: Table Of Contents

    Read Analog to Digital Input Channel 1....................26 8.6.5 Change Pin to GPIO and Set Output to High ....................26 LEDs ............................27 RS-232 NULL Modem Wiring ....................27 Network IP Address Configuration ..................27 SBL2e Dual Serial-to-Ethernet User's Manual Page 2 Downloaded from Elcodis.com electronic components distributor...
  • Page 3 Web Browsers and Proxy Servers ..................28 Testing with a Telnet Connection ..................28 Telnet to Serial Test Procedure ..................... 29 Revision History ..........................30 SBL2e Dual Serial-to-Ethernet User's Manual Page 3 Downloaded from Elcodis.com electronic components distributor...
  • Page 4: Overview

    3. Initial Configuration Before you can begin using your SBL2e, three areas of configuration are required to tell your SBL2e what type of serial interface you want to use, the network IP address network port number, and the serial data baud rate.
  • Page 5: Serial Port Hardware

    2. Locate your SBL2e in the "Select a Unit" pane by matching its MAC address. The MAC address is located on the bottom of your SBL2e. If your SBL2e device does not appear in the list box, verify the power, speed, and link LEDs are illuminated, and click the Search Again button.
  • Page 6: Operational Configuration

    SBL2e. We recommend using the web interface first to familiarize yourself with the operation of the SBL2e. To access the web page, click on the Launch Webpage button in IP Setup, or you can open your web browser, and enter the numeric IP Address in the address field (e.g.
  • Page 7: Web

    4. Web Page Configuration Once you have configured the IP address of your device you can connect to the SBL2e web server to configure your serial and network settings. The SBL2e can be configured in one of 3 modes: 1. TCP Server: Listen for incoming TCP connections.
  • Page 8: Incoming Connections (Server Mode)

    4.2 Incoming Connections (Server Mode) This section configures the SBL2e in a device server mode in which it listens for incoming TCP connections (or UDP packets if enabled) for each serial port. Listen for incoming network Select checkbox to enable the port to listen for connections incoming TCP connection requests or UDP packets.
  • Page 9: Outgoing Connections (Client Mode)

    This feature has no effect on UDP. Retry failed outgoing connections after Number of seconds to wait before retrying an outgoing this many seconds. connection. This feature has no effect on UDP. SBL2e Dual Serial-to-Ethernet User's Manual Page 9 Downloaded from Elcodis.com electronic components distributor...
  • Page 10: Custom Packetization

    Custom packetization can apply to TCP and UDP communication. Unlike TCP, UDP is a connectionless protocol. The SBL2e provides two methods to determine the destination network IP address: you can specify a static IP address, or you can use the source IP address of the last received UDP packet by selecting the “Learn UDP Reply Address”...
  • Page 11 SBL2e Dual Serial-to-Ethernet User's Manual Page 11 Downloaded from Elcodis.com electronic components distributor...
  • Page 12: Serial Settings

    5. Serial Settings The SBL2e provides two TTL level UARTs, Port 0 and Port 1. The RS-232 setting will enable the TTL level signals for transmit, receive, RTS and CTS, but you will need to add external level shifters if you need the RS-232 electrical signals instead of 0-3.3VDC TTL RS-232 Select for use as TTL or if you have a RS-232 level shifter.
  • Page 13: Password Settings

    6. Password Settings Use the Password Settings screen to enable, disable or change an existing password. Only one password is allowed. To clear a password leave the fields blank and click on submit. SBL2e Dual Serial-to-Ethernet User's Manual Page 13 Downloaded from Elcodis.com...
  • Page 14: Multi-Function Pin Control

    7. Multi-Function Pin Control The 16-pin interface connector of the SBL2e has 10 signals with multiple functions, such as general purpose digital I/O, analog to digital conversion, and serial hardware handshaking. The GPIO Settings configuration screen enables you to select the functions of the multi-function pins.
  • Page 15: Multi-Function Pin Control

     The function of each multi-function pin is set in the GPIO configuration web page (GPIO is the most common function).  The "GPIO Network Server" on the SBL2e listens on the TCP port number specified in the "GPIO Server Port" field. For a quick test, you can use the telnet utility: "telnet <ip address>...
  • Page 16 Firmware Version : Query firmware version Example: "V\n" , returns "0, Firmware Version: SBL2e 1.3 8/5/2009\r\n" Command and Query Return Strings: Each command and query will return an integer value followed by a ',' and optional text to provide details on the response.
  • Page 17: Machine Command Mode

    Save current settings as the power-on state Query all A/D and GPIO values Terminate the GPIO command TCP connection Return all GPIO input and output pin values, low (0) or high (1). SBL2e Dual Serial-to-Ethernet User's Manual Page 17 Downloaded from Elcodis.com...
  • Page 18: Machine Command Examples

    // Return value of 0 for success // Read A/D inputs // 0=success, A/D values of pins 7,8,9,10, all GPIO inputs as a 16-bit word 0, 0x4F38, 0x4910, 0x42A0, 0x4FE0, 0x3BCC SBL2e Dual Serial-to-Ethernet User's Manual Page 18 Downloaded from Elcodis.com...
  • Page 19: At Commands

    8. AT Commands As an alternative to the web page configuration, you can configure the SBL2e over a serial port using an AT command format. The configuration sequence is: 1. Enter command mode 2. Send configuration change commands 3. Save changes and exit The AT command operation is different for configuration commands versus GPIO pin programming commands.
  • Page 20: Command Syntax

     All white space outside quotations is ignored  All commands and queries are terminated by a carriage return <cr> (decimal value 13), if a line feed <lf> follows a <cr>, it will be ignored. SBL2e Dual Serial-to-Ethernet User's Manual Page 20 Downloaded from Elcodis.com...
  • Page 21: System/Network Configuration

     Connected to IP xx.xx.xx.xx  Listening on port xx  UDP mode with learned send-to IP Address : xx.xx.xx.xx  UDP mode send to Address : xx.xx.xx.xx  Idle SBL2e Dual Serial-to-Ethernet User's Manual Page 21 Downloaded from Elcodis.com electronic components distributor...
  • Page 22: Serial Port Configuration

    // outgoing connection mode: never (listen mode only), power-up or upon received serial data CI=<dest ip name/addr> CP=<destination port number> CD=<disconnect timeout in seconds> CR=<retry timeout in seconds> SBL2e Dual Serial-to-Ethernet User's Manual Page 22 Downloaded from Elcodis.com electronic components distributor...
  • Page 23: Custom Packetization

    The custom packetization settings provide control over when serial data is packetized and sent to the destination network host. You can configure the SBL2e to send serial data after a certain number of characters have been received, a certain amount of time has expired, or upon receipt of a specific character.
  • Page 24: Gpio Server And Analog To Digital Readback

    #PD? // Return the system pin current drive level: 0 = 2mA, 1 = 10mA #PD=<1|0> // Set all pin current drive levels: 0 = 2mA, 1 = 10mA SBL2e Dual Serial-to-Ethernet User's Manual Page 24 Downloaded from Elcodis.com electronic components distributor...
  • Page 25: At Command Examples

    8.6 AT Command Examples The following examples display the full transcript of serial communication including commands sent and replies from the SBL2e. Commands are marked in red, responses are marked in blue. 8.6.1 Changing the System IP Address This example first queries the current IP address, and then changes the current IP to 10.1.1.79. Once the IP address change request is made, the settings are saved, and the device reboots.
  • Page 26: Read Analog To Digital Input Channel 1

    This example checks the current pin mode, and finds it in a2d channel 1. The mode is then updated to GPIO, and set to high. OK>AT#P08M?AD1 OK>AT#P08M=GPIO OK>AT#P08M?GPIO In=1 OK>AT#P08=1 OK> SBL2e Dual Serial-to-Ethernet User's Manual Page 26 Downloaded from Elcodis.com electronic components distributor...
  • Page 27: Leds

    Intranet/Internet. If you are on your own LAN there are some standard private address ranges that are commonly used: Class A: 10.0.0.0 to 10.255.255.255 Class B: 172.16.0.0 to 172.31.255.255 Class C: 192.168.0.0 to 192.168.255.255 SBL2e Dual Serial-to-Ethernet User's Manual Page 27 Downloaded from Elcodis.com electronic components distributor...
  • Page 28: Sbl2E Dual Serial-To-Ethernet User's Manual

    When you type text in the telnet window, it should appear in the serial terminal window and visa versa. In the following example, an IP Address of 10.1.1.79 is be used for the SBL2e. Replace this IP address with the actual IP Address of your SBL2e.
  • Page 29: Telnet To Serial Test Procedure

    5. In your command prompt window, run Telnet by typing: “telnet 10.1.1.79 23” after the prompt, and press the Enter key. The “23” is the network port number of the SBL2e that is listening for incoming connections. This example syntax uses the default value of 23 for SBL2e serial port 0, which is connected to the USB serial interface and to the SBL2e serial port 0.
  • Page 30: Revision History

    Added AT command set 2/22/2010 Clarified description of packetization settings to indicate the settings only apply to the outgoing serial to Ethernet direction. 5/5/2010 Added machine commands SBL2e Dual Serial-to-Ethernet User's Manual Page 30 Downloaded from Elcodis.com electronic components distributor...

Table of Contents