This paper presents a model for communication between mobile devices and TV programs, through applications that use a middleware named Ginga, proposing a generic architecture that allows a single mobile application interact with various Ginga applications. A fundamental requirement for the project is the definition of a model that allows iDTV (interactive Digital Television) applications communicate with devices of various operating systems. Despite the increasing and fast use of various portable devices around the world, including Brazil, simultaneously the traditional way of watching television, there is still a lack of direct interaction between TV programming and the second screen of the viewer. The proposed model consists of an application for the Android mobile operating system and other developed NCLua ginga connected by a wireless network, enabling communication, control and interaction via smartphone. The components of the model, its main features, results and difficulties in the construction of the platform are presented.