пятница, 18 октября 2013 г.

3g модем и уровень сигнала в linux

Простой способ померить уровень сигнала в консоли linux.
Открываем две консольки, в одной выполняем команду:

cat /dev/ttyUSB1
В другой:
echo -e "AT+CSQ\r\n" > /dev/ttyUSB1

И быстренько смотрим первую консольку, ищем там строчки:
+CSQ: 23,99

OK
Пробуйте ttyUSB0, ttyUSB2... если не удается на первом.
Расшифровываем по табличке, нас интересует первая цифра до запятой:

Value RSSI dBm Condition
2 -109 Marginal
3 -107 Marginal
4 -105 Marginal
5 -103 Marginal
6 -101 Marginal
7 -99 Marginal
8 -97 Marginal
9 -95 Marginal
10 -93 OK
11 -91 OK
12 -89 OK
13 -87 OK
14 -85 OK
15 -83 Good
16 -81 Good
17 -79 Good
18 -77 Good
19 -75 Good
20 -73 Excellent
21 -71 Excellent
22 -69 Excellent
23 -67 Excellent
24 -65 Excellent
25 -63 Excellent
26 -61 Excellent
27 -59 Excellent
28 -57 Excellent
29 -55 Excellent
30 -53 Excellent

Подробнее о команде читаем тут.


1 комментарий:

  1. This identified as|is called|is named} ‘holding time’ and can vary from milliseconds to minutes relying on sort of|the sort of} thermoplastic and complexity of the part. This holding time is key to ensuring that the plastic packs out the software and is formed correctly. This cost-effectiveness, efficiency and element high quality are just a number of the} reasons why why} many industries choose to use injection molded elements for his or her merchandise. Thermoplastic elastomer , or thermoplastic rubber , is a mix of rubber and plastic materials. Although TPE novelty shower curtains has the properties and efficiency of rubber, it's processed like plastic. The elasticity of TPR is {part of|a part of} what makes it enticing to designers and engineers.

    ОтветитьУдалить