Simbank512

Материал из Makegadget.com wiki
Перейти к: навигация, поиск

Variables[править]

$ip — your simbank ip address. Default is 192.168.1.2

$ch — channel number, unsigned int, range from 1 to 32.

$ch_start — channel number, unsigned int, range from 1 to 32.

$ch_stop — channel number, unsigned int, range from 1 to 32.

$ch_start must be less then $ch_stop

$sim — sim number, unsigned int, range from 0 to 16. Where 0 means off state.

Sim numeration[править]

Front


Back

Known issues[править]

Web interface load problem [FIXED!][править]

Simbank does not support tcp ack delays.

Solution 1

Using firefox go to about:config and put network.http.max-persistent-connections-per-server to 1.

about:config


network.http.max-persistent-connections-per-server

Control simbank over USB[править]

Set sim to channel[править]

Request:
swb $ch $sim\r
Response success:
OK\r\n
Response fail:
ERROR\r\n

Set sim to many channels[править]

Request:
swb $ch_start $ch_stop $sim\r
Response success:
OK\r\n
Response fail:
ERROR\r\n


Get sim in channel[править]

Request:
swb $ch\r
Response success:
$sim\r\n
Response fail:
ERROR\r\n

Restore simbank settings[править]

Request:
restore\r
Response:
OK\r\n

Reboot simbank[править]

Request:
reset\r
Response:
OK\r\n

Get version[править]

Request:
ver\r
Response (example):
OK\r\n2014_09_26_16_32\r\n

Turn bootloader[править]

Request:
update\r
Response (example):
OK\r\n

Get network settings[править]

Request:
ifconfig\r
Response (example):
OK\r\n
HWaddr 00:00:11:c3:ab:66\r\n
inet addr:192.168.1.2\r\n
Bcast:192.168.1.255\r\n
Mask:255.255.255.0\r\n

Get unique id[править]

Request:
uid\r
Response (example):
OK\r\n30002D3333470436303632\r\n

Control simbank over WEB[править]

Set sim to channel[править]

Request:
http://$ip/sim.cgi?user=admin&pass=admin&$ch=$sim
Response success:
SUCCESS
Response fail:
ERROR

Get sim in channel[править]

Request:
http://$ip/status.cgi?user=admin&pass=admin
Response (example):
1=10&2=10&3=1&4=1&5=1&6=1&7=1&8=1&9=1&10=1&11=1&12=1&13=1&14=1&15=1&16=1&17=1&18=1&19=1&20=1&21=1&22=1&23=1&24=1&25=1&26=1&27=1&28=1&29=1&30=1&31=1&32=1

Change password[править]

Request (example, set "1234" for password):
http://$ip/auth.cgi?user=admin&pass=admin&newPass=1234
Response success:
SUCCESS
Response fail:
ERROR

After password set you must reset simbank.

Using wget set sim[править]

This way you can use any different requests.

Request:
wget -qO- -S "http://$ip/sim.cgi?user=admin&pass=admin&$ch=$sim"

Response success:

  HTTP/1.0 200 OK
  Server: lwIP/1.3.1 (http://savannah.nongnu.org/projects/lwip)
  Content-type: text/html
SUCCESS

Response fail:

  HTTP/1.0 200 OK
  Server: lwIP/1.3.1 (http://savannah.nongnu.org/projects/lwip)
  Content-type: text/html
ERROR

Reset simbank in bootloader mode[править]

Request:
http://192.168.1.254/resetmcu.cgi

Control simbank over SNMP[править]

Set sim to channel[править]

Request:
snmpset -v 1 -c public -r 0 $ip 1.3.6.1.2.1.1.5.0 s "swb $ch $sim"
Request:
snmpget -v 1 -c public -r 0 $ip 1.3.6.1.2.1.1.6.0
Response success:
OK
Response fail:
ERROR

Get sim in channel[править]

Request:
snmpset -v 1 -c public -r 0 $ip 1.3.6.1.2.1.1.5.0 s "swb 1"
Request:
snmpget -v 1 -c public -r 0 $ip 1.3.6.1.2.1.1.6.0
Response success:
$sim
Response fail:
ERROR

Firmware update[править]

  1. Power off simbank {{#ev:youtube|http://youtu.be/U1dRPjJDDcg%7C400%7Cright%7CSimbank512 firmware update|frame}}
  2. Connect ethernet cable
  3. Hold the button
  4. Power on simbank
  5. When green led blink, release the button
  6. Go to http://192.168.1.254
  7. Login/pass is user/user.
  8. Select firmware file and click Upload

Windows driver[править]

Simbank 512 Windows driver

Adapters[править]