Перейти к содержанию
Old Phone Forum
  • Вход

    Вы сейчас не залогинены на форуме.

    Для возможности комментариев, загрузки файлов, подписок на ответы - вам надо войти.

Новые возможности Usb On-the-go Otg или Usb флешку в мобилу.


Рекомендуемые сообщения

Был потрясён сегоняшней находкой. :28:

Открыл тему.

 

 

post-112476-1486242240,2057_thumb.jpg

 

Завтра-же приступаю к созданию и тестированию переходника. :132:

 

 

Добавлено чуть позже. Известные пока модели Nokia с OTG

 

Оказалось поддержка ON-THE-GO (OTG) Есть у следующих моделей.

6500 classic, 7900 Prism, 770 N800, N810, 8800 Arte Edition (Из того что пока нашёл)

Самый простой способ подключить флешку - это USB A F-F переходник (с родным кабелем.)

 

Добавлена краткая мануалка на Англ. яз. И приведены примеры схем.

 

 

USB On-The-Go Basics

Abstract: USB On-The-Go (OTG) allows two USB devices to talk to each other without requiring the services of a personal computer. Although OTG appears to add "peer to peer" connections to USB, it does not. Instead, USB OTG retains the standard USB host/peripheral model, where a single host talks to USB peripherals. OTG introduces the dual-role device (DRD), capable of functioning as either host or peripheral. Part of the magic of OTG is that a host and peripheral can exchange roles if necessary.

 

Before OTG, the concept of an embedded host was already established in the USB world. Instead of duplicating the full UHCI/OHCI USB controllers and drivers built into personal computers, most embedded host chips provide limited hosting capabilities. This makes them better suited to the embedded environment than to the PC with its huge resources and infinite capacity for drivers and application software.

 

Introduction

USB On-The-Go (OTG) allows two USB devices to talk to each other without requiring the services of a personal computer (PC). Although OTG appears to add peer-to-peer connections to the USB world, it does not. Instead, USB OTG retains the standard USB host/peripheral model, in which a single host talks to USB peripherals. OTG does introduce, however, the dual-role device, or simply stated, a device capable of functioning as either host or peripheral. Part of the magic of OTG is that a host and peripheral can exchange roles if necessary.

 

Before OTG, the concept of an embedded host was already established in the USB world. Instead of duplicating the full UHCI/OHCI USB controllers and drivers built into PCs, most embedded host chips provide limited hosting capabilities. This makes them better suited to the embedded environment than a PC with its huge resources and infinite capacity for drivers and application software.

 

An OTG device may, or may not be capable of functioning as a host. It is likely, nonetheless, that most OTG devices will be dual-role.

USB Peripherals

Figure 1 illustrates the basic USB peripheral circuitry on which OTG builds. These example peripherals operate at low or full speed, and are commonly known as USB 1.1 devices. This nomenclature is used even though the USB 2.0 Specification includes the current USB 1.1 specification and introduces a third, higher speed.

post-112476-1486242240,2696_thumb.gif

Figure 1. A USB peripheral controller and its associated circuitry.

 

The controller in Figure 1 might be a microprocessor plus USB SIE (Serial Interface Engine), an integrated microprocessor/USB chip, or an ASIC connected to a USB transceiver. A bus-powered peripheral requires a 3.3V regulator, both to power the logic and to supply the proper voltage to a 1500Ω resistor connected to either the D+ or D- USB pins. This pullup resistor signals the host that a device is connected, and indicates the device's operating speed. A pullup to D+ indicates full speed; a pullup to D- indicates low speed. The other end of the connection—host or hub—contains 15kΩ pulldown resistors on D+ and D- so the pullup resistor can be detected. Finally, an ESD protection circuit is advisable on D+, D-, and VBUS pins because USB is designed to be hot-plugged.

How to Be a Host

The Figure 1 circuit functions only as a USB peripheral device. To add OTG dual-role capability, the transceiver must be augmented to allow the OTG device to function as either host or peripheral. Adding the following to Figure 1 lets the system also function as a host:

15kΩ pulldown resistors on D+ and D-

A means to supply, rather than draw, power on VBUS

The ASIC or controller must also contain logic to function as a USB host. Some of the host duties absent in a peripheral device are:

Send SOF (Start of Frame) packets.

Send SETUP, IN, and OUT packets.

Schedule transfers within USB 1ms frames.

Signal USB reset.

Provide USB power management.

In addition to requiring a dual-role peripheral/host USB controller, OTG requires additional circuitry to support two new protocols, called HNP and SRP.

Host Negotiation Protocol

An OTG dual-role device can operate either as a host or peripheral. In OTG nomenclature, the initial host is called the A-Device, and the initial peripheral is called the B-Device. The word initial is important. Once connected, OTG dual-role devices can exchange roles—host and peripheral—by using the new Host Negotiation Protocol (HNP). HNP raises two obvious questions: (a) how are the initial roles determined; and (B) why is the role reversal necessary?

post-112476-1486242240,2861_thumb.gif

Figure 2. Fifth ID pin determines default host.

 

The cable orientation determines the initial roles (Figure 2). Dual-role devices use a new receptacle called the mini-AB. The mini-A plug, the mini-B plug and the mini-AB receptacle add a fifth pin (ID) to give different electrical identities to the cable ends. This fifth ID pin is connected to ground inside the mini-A plug and left floating in the mini-B plug. The OTG device receiving the grounded ID pin is the default A-Device (host); the device with the floating ID pin is the default B-Device (peripheral).

post-112476-1486242240,2973_thumb.gif

Figure 3. OTG cable is inserted backwards.

 

To understand the need for the HNP and host/peripheral role reversal, the example in Figure 3 shows two dual-role devices, a PDA and a printer. The PDA has a printer driver inside. The two devices are connected with the new OTG cable as shown, making the printer the default host (A-Device) and the PDA the default peripheral (B-Device). But this setup is backwards. The PDA, which has the printer driver, needs to act as USB host to the printer, which contains no driver. Rather than bothering the user to reverse the cable, HNP allows the devices' roles to reverse automatically and silently.

Session Request Protocol

The OTG Specification adds a second new protocol to USB, called Session Request Protocol (SRP). SRP allows a B-Device to request an A-Device to turn on VBUS power and start a session.

 

An OTG session is defined as the time that the A-Device is furnishing VBUS power. (Note: the A-Device always supplies VBUS power, even if it is functioning as a peripheral due to HNP.) The A-Device can end a session by turning off VBUS to conserver power, a very important requirement in a battery-powered device such as a cell phone.

post-112476-1486242240,3075_thumb.gif

Figure 4. OTG Session Request Protocol (SRP).

 

Figure 4 shows a common OGT application: two cell phones connected together to exchange information. The right phone received the mini-A end of the cable, making it the A-Device and thus defaulting into the host role. The left phone is the B-Device, defaulting to peripheral. If there is no need to communicate over USB, the A-Device can power down the VBUS wire, which the B-Device can detect so that it too can enter a low-power state.

 

Now suppose that the user of the left phone presses a button to synchronize address books, or any other action that requires a USB session. The ‘SRP Pulse' block in the left phone pulses first the D+ wire, and then the VBUS wire to wake up the A-Device. (The A-Device can respond either to D+ or VBUS pulsing.) The A-Device then detects the pulse, causing it to switch on VBUS and start a session.

 

The SRP protocol is more complex than this simple illustration. The B-Device, for example, must first measure VBUS to ensure that a session is not in progress. It must also be able to differentiate between a classic PC or an OTG device at the other end of the cable. It does this by delivering measured amounts of current to the VBUS wire and noting the resulting voltage.

 

Once a session is underway, the devices may or may not use HNP.

OTG Transceiver

We are now ready to examine the requirements for an OTG transceiver, illustrated in Figure 5

post-112476-1486242240,3175_thumb.gif

Figure 5. An OTG transceiver.

 

The Figure 5 system builds on the Figure 1example circuit. The ASIC block could also be a microprocessor or DSP with USB capability. Three additions make the transceiver OTG compatible:

Switchable pull-up and pull-down resistors on D+/D- to allow peripheral or host functionality.

Circuitry to monitor and supply 5V power on VBUS as an A-Device, and to monitor and pulse VBUS as a B-Device initiating SRP.

An ID input pin, which is made available as an output to the ASIC.

For this system to operate as a dual-role OTG device, the ASIC, DSP, or whatever is connected to the transceiver must be capable both of functioning as a peripheral or host, and of switching roles on-the-fly as a result of HNP.

 

Most of the added transceiver circuitry manages the VBUS pin, which now must also supply 5V power at 8mA as a host, and perform VBUS pulsing as a peripheral. Analog switches configure the transceiver for the various roles that it must play.

Изменено пользователем Doctor Lector

Добрый доктерЪ

N(okia)INJA

Ссылка на комментарий
Поделиться на другие сайты

USB On-The-Go (OTG), версия 0.9 или USB для маленьких

 

Шина USB уже успела завоевать более чем весомую популярность, набрав в свой лагерь сотни производителей и продуктов только на USB 1.1, а USB 2.0 обещает как минимум повторить результаты своей предшественницы. При этом USB 2.0 фактически является лишь дальнейшим развитием более ранних спецификаций, сосредоточившимся, по сути, лишь на увеличении пропускной способности, пусть и в весьма внушительные 40 раз. Тем не менее, одной из основных задач развития любой технологии – экспансии на новые рынки – USB 2.0 не решает.

 

И это правильно, поскольку эта задача возложена на дополнение к USB 2.0, спецификацию USB On-The-Go (OTG), версия 0.9 которой была принята неделю назад, и которая определяет использование шины в таких устройствах, как мобильные телефоны, PDA, Internet и игровые приставки и т.д. и т.п, вплоть до бытовой электроники. Большинство этих устройств можно было бы подключить к PC уже сегодня, но ведь речь-то идет о том, чтобы они без проблем могли связываться и друг с другом, а в USB, что 1.1, что 2.0, есть ряд факторов, этому мешающих.

 

Основные: слишком большие коннекторы; слишком высокое энергопотребление; зашитая в USB идеология главное-подчиненное устройство, делающая невозможным соединение на уровне равный-равный – обязательно должен быть хост, который имеет следующие возможности: хранение большого количества данных (драйвера подключаемых устройств), возможность подачи достаточно высокого напряжения на подключенное устройство, хост-коннектор серии "A" – см. на задней панели своего PC.

 

Результатом принятия спецификации должна стать возможность для устройств, ранее способных связываться только с PC, соединяться напрямую друг с другом: MP3 плееры смогут обмениваться файлами, цифровая камера или сканер передадут изображение на принтер для печати, PDA подключится к мобильному телефону для доступа в Internet и т.д. и т.п. – стоящий по соседству со всем этим добром PC становится попросту ненужным, поскольку каждое из устройств будет обладать ограниченными возможностями хоста. А его, этого самого добра, между прочим, к 2003 году ожидается порядка миллиарда единиц.

 

В общем, есть ради чего поработать, и, как обычно, для воплощения этой святой цели производители без каких-либо проблем встали под единый флаг, забыв все свои разногласия. И какие производители! Самая малость из списка: Palm, TI, Philips, Hewlett-Packard, Motorola, Nokia, Intel, NEC, Microsoft, Ericsson, Qualcomm. В принципе, более чем достаточно для того, чтобы внушить уважение, не так ли?

 

Итак, что из себя представляет спецификация, вкратце. Имеем три вида устройств: тип "А", способный выступать ограниченным хостом (коннектор "А" или мини-коннектор "А"; может подавать напряжение на устройство типа "B"; в начале сессии выступает хостом, при определенных обстоятельствах может уступить эту роль устройству двойного назначения), тип "B" (коннектор "B" или мини-коннектор "B" (известный многим владельцам, например, MP3 плееров); выступает подчиненным в начале сессии), а также устройство двойного назначения (мини-коннектор "AB", понимающий как Mini-B, так и Mini-A кабели; может подавать напряжение на подключенное устройство; может выступать как в роли хоста, так и в роли подчиненного устройства; имеет зашитый в память список устройств, с которыми может устанавливаться связь).

 

Но в любом случае, эти различия имеют место только для OTG устройств – как бы то ни было, а любое USB устройство обязано корректно распознаваться в роли подчиненного при подключении его к PC. При этом работая на полных 480 Мбит/с, в отличие от связи друг с другом, когда зачастую доступного напряжения будет хватать лишь на 12 Мбит/с, чего, впрочем, вполне достаточно для большинства "малышей".

 

Таким образом, мы получаем (точнее, получим к концу года, когда выйдет OTG 1.0) унифицированный стандарт для множества мобильных устройств, в отсутствие которого производители вынуждены разрабатывать собственные, несовместимые друг с другом стандарты. Чего стоит, например, одна только ситуация с разъемами расширения мобильных телефонов: попробуйте подключить hands-free от Siemens к телефону Ericsson или клавиатуру от Ericsson к какому-нибудь телефону Motorola.

 

Картоводы флэш-карт для подключения к мобильному телефону или PDA, сбрасывание фотографий с камеры на MP3 плеер в случае нехватки места, подключение MP3 плеера к музыкальному центру, зарядка мобильного телефона через USB порт компьютера – да мало ли возможностей откроется перед нами в следующем году, когда на рынок выйдут первые OTG продукты!

Есть 2 типа телефонов - Nokia и ВсеОстальные...!

Ссылка на комментарий
Поделиться на другие сайты

За OTG давно наблюдал, но вот лично для себя сделал открытие, что теперь смарт может работать не только как Slave.

Но и недавнее нововведение как Master. :shock:

 

И распознаёт конкретно такой девайс как USB-накопитель.

Не смотря на все упрёки буду развивать тему.

Так хоть будут знать массы а не единицы.

Добрый доктерЪ

N(okia)INJA

Ссылка на комментарий
Поделиться на другие сайты

  • 8 месяцев спустя...

Слышал что ище даную функцыю поддержывает N81,N85 и N96. Как сделать переходник? Или его можна где нибудь купить?

Ссылка на комментарий
Поделиться на другие сайты

  • 3 недели спустя...

Вообще 6233 поддерживает такую фиху?Напишите все модели,кот-ые поддерж.-и людям будет проще! :)

Nokia N97 v21.0.045 L1Man из Aks-cityЯ Вконтакте!!!http://vkontakte.ru/id22226240 Добавляйтесь!!!

Ссылка на комментарий
Поделиться на другие сайты

  • 4 недели спустя...
  • 2 года спустя...

Есть кабель OTG для Nokia N8, родной, НОВЫЙ (Nokia CA-157), куплен в салоне Nokia по ошибке.

Отдам недорого, если кому надо...

Ссылка на комментарий
Поделиться на другие сайты

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйте новый аккаунт в нашем сообществе. Это очень просто!

Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.

Войти


×
×
  • Создать...