conncetion between AMX and Iphone

62 views
Skip to first unread message

Ayser

unread,
Feb 5, 2009, 9:57:40 AM2/5/09
to CommandFusion
Hello,

I'm new in AMX. I would like to make a connection between my iphone
and NI-2100 AMX controller. I used the beta AMX module. I followed the
instructions in the module, but i get some connection problems. Do i
need to make the configuration in GuiDesigner like in project
propertie - Control system ip adress and port? in Crestron i used that
port to make a connection. How is that in AMX?

One more thing: The AMX TPDesign4 uses Address code and Channel code.
In GuiDesigner there is only Join numbers. Do i need to use macro's?

A little help will be appreciated.


Best regards,

Ayser

Jarrod Bell

unread,
Feb 5, 2009, 11:12:02 AM2/5/09
to CommandFusion
HI Ayser,

First off, the macros and commands are completely separate from the
"control system" definition in project properties. Commands and macros
are sent to their associated 'system' as show in the command manager
list when you add commands.

Join numbers are parsed using the beta module, I cant remember the
exact formula, but its something like joins 1-999 = channel 1,
1000-1999 = channel 2. Please look at the module code to see the
correct assignments for address code and channel code parsing.

Sorry I cant help with the rest, hopefully some other AMX programmers
here can help.

Jarrod

Ang JunHuiJeffery

unread,
Feb 6, 2009, 3:02:59 AM2/6/09
to comman...@googlegroups.com
Hi Ayser,

Have you uploaded the GUI file into the controller via FTP?
And Secondly, check if the port which you are currently using, has it been used by another Device?
Thirdly, have you set the IP Address in the GUI file to the IP and Port of your Controller?

With Regards,
Jeffery

> Date: Thu, 5 Feb 2009 08:12:02 -0800
> Subject: Re: conncetion between AMX and Iphone
> From: jar...@guilink.com
> To: comman...@googlegroups.com

>
>
> HI Ayser,
>
> First off, the macros and commands are completely separate from the
> "control system" definition in project properties. Commands and macros
> are sent to their associated 'system' as show in the command manager
> list when you add commands.
>
> Join numbers are parsed using the beta module, I cant remember the
> exact formula, but its something like joins 1-999 = channel 1,
> 1000-1999 = channel 2. Please look at the module code to see the
> correct assignments for address code and channel code parsing.
>
> Sorry I cant help with the rest, hopefully some other AMX programmers
> here can help.
>
> Jarrod
>
> On Feb 6, 1:57燼m, Ayser <tro...@gmail.com> wrote:
> > Hello,
> >
> > I'm new in AMX. I would like to make a connection between my iphone
> > and NI-2100 AMX controller. I used the beta AMX module. I followed the
> > instructions in the module, but i get some connection problems. Do i
> > need to make the configuration in GuiDesigner like in project
> > propertie - Control system ip adress and port? in Crestron i used that
> > port to make a connection. How is that in AMX?
> >
> > One more thing: The AMX TPDesign4 uses Address code and Channel code.
> > In GuiDesigner there is only Join numbers. Do i need to use macro's?
> >
> > A little help will be appreciated.
> >
> > Best regards,
> >
> > Ayser
> More than mail–Windows Live™ goes way beyond your inbox. More than messages

Ayser

unread,
Feb 6, 2009, 10:40:53 AM2/6/09
to CommandFusion
Hello Jeffery,

I uploaded the GUI file by using NetLinx Studio AMX application. Do i
need to use FTP instead of this application?
The port is not used by another Device. I use the AMX controller port.
That wil be by default 1319. Do i need to use different port number?
I set the IP address in the GUI file. There i set the ip and port
number of my controller (192.168.10.76:1319)

Any suggestions?

Thank you,

Ayser
> _________________________________________________________________
> More than messages–check out the rest of the Windows Live™.http://www.microsoft.com/windows/windowslive/- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -

tuxtof

unread,
Feb 6, 2009, 12:58:00 PM2/6/09
to CommandFusion
Hi Ayser

this is the problem you must choose an unitilized port like 8087 for
example

Bye
> > More than messages–check out the rest of the Windows Live™.http://www.microsoft.com/windows/windowslive/-Tekst uit oorspronkelijk bericht niet weergeven -

Ang JunHuiJeffery

unread,
Feb 7, 2009, 12:31:58 AM2/7/09
to comman...@googlegroups.com
Hi Ayser
Yes like what tuxtof said,
The port should be an un-utilize port
1319 is being used by AMX itself
If changing of the port did not work, u will have to check the local port that u r using and then upload the GUI file via FTP
 
Hope these helps
With Regards
Jeffery

> Date: Fri, 6 Feb 2009 09:58:00 -0800

> Subject: Re: conncetion between AMX and Iphone

Ayser

unread,
Feb 12, 2009, 8:06:08 AM2/12/09
to CommandFusion
Hello,

Thank you very much for this information. I tried port 8087. This
works wel. It parse the Gui from the controller. But after +- 20
seconds i get an Error (Connecting to host cf://http://192.168.1.200:8087
failed (error 2) Attempting to reconnect) What can i do to fix this
problem? one more thing:

Once i programmed an AMX touchpanel and i used for a button the
following details: Address code = 7 and Channel code is 200. This
should pulse an IR port 7 on my AMX NI-2000. Now i'm using the
GuiDesigner program. How should i insert the Address code and the
channel code in Guidesigner? do i need to modifie the module and add
Address port in the code?


Ayser


On 6 feb, 18:58, tuxtof <tux...@gmail.com> wrote:
> Hi Ayser
>
> this is the problem you must choose an unitilizedportlike 8087 for
> example
>
> Bye
>
> On 6 fév, 16:40, Ayser <tro...@gmail.com> wrote:
>
>
>
> > Hello Jeffery,
>
> > I uploaded the GUI file by using NetLinx StudioAMXapplication. Do i
> > need to use FTP instead of this application?
> > Theportis not used by another Device. I use theAMXcontrollerport.
> > That wil be by default 1319. Do i need to use differentportnumber?
> > I set the IP address in the GUI file. There i set the ip andport
> > number of my controller (192.168.10.76:1319)
>
> > Any suggestions?
>
> > Thank you,
>
> > Ayser
>
> > On 6 feb, 09:02, Ang JunHuiJeffery <yagam...@hotmail.com> wrote:
>
> > > Hi Ayser,
>
> > > Have you uploaded the GUI file into the controller via FTP?
> > > And Secondly, check if theportwhich you are currently using, has it been used by another Device?
> > > Thirdly, have you set the IP Address in the GUI file to the IP andPortof your Controller?
>
> > > With Regards,
> > > Jeffery
>
> > > > Date: Thu, 5 Feb 2009 08:12:02 -0800
> > > > Subject: Re: conncetion betweenAMXand Iphone
> > > > From: jar...@guilink.com
> > > > To: comman...@googlegroups.com
>
> > > > HI Ayser,
>
> > > > First off, the macros and commands are completely separate from the
> > > > "control system" definition in project properties. Commands and macros
> > > > are sent to their associated 'system' as show in the command manager
> > > > list when you add commands.
>
> > > > Join numbers are parsed using the beta module, I cant remember the
> > > > exact formula, but its something like joins 1-999 = channel 1,
> > > > 1000-1999 = channel 2. Please look at the module code to see the
> > > > correct assignments for address code and channel code parsing.
>
> > > > Sorry I cant help with the rest, hopefully some otherAMXprogrammers
> > > > here can help.
>
> > > > Jarrod
>
> > > > On Feb 6, 1:57燼m, Ayser <tro...@gmail.com> wrote:
> > > > > Hello,
>
> > > > > I'm new inAMX. I would like to make a connection between my iphone
> > > > > and NI-2100AMXcontroller. I used the betaAMXmodule. I followed the
> > > > > instructions in the module, but i get some connection problems. Do i
> > > > > need to make the configuration in GuiDesigner like in project
> > > > > propertie - Control system ip adress andport? in Crestron i used that
> > > > >portto make a connection. How is that inAMX?
>
> > > > > One more thing: TheAMXTPDesign4 uses Address code and Channel code.
> > > > > In GuiDesigner there is only Join numbers. Do i need to use macro's?
>
> > > > > A little help will be appreciated.
>
> > > > > Best regards,
>
> > > > > Ayser
>
> > > _________________________________________________________________
> > > More than messages–check out the rest of the Windows Live™.http://www.microsoft.com/windows/windowslive/-Tekstuit oorspronkelijk bericht niet weergeven -
>
> > > - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk bericht niet weergeven -

Ang JunHuiJeffery

unread,
Feb 12, 2009, 10:24:58 AM2/12/09
to comman...@googlegroups.com
There is something about wait 10seconds for heartbeat if there is not heartbeat it will close the connection find that one then comment it out and try if it works

> Date: Thu, 12 Feb 2009 05:06:08 -0800

> Subject: Re: conncetion between AMX and Iphone

Ayser

unread,
Feb 16, 2009, 9:39:01 AM2/16/09
to CommandFusion
Hello,

I really would like to use my Iphone with AMX NI2000. I'm stil getting
problems with the connection between iphone and AMX. I realized that i
have to make some changes in my program environment:

Here is my Main program:

PROGRAM_NAME='iphonemain'

DEFINE_DEVICE

vdviphone = 33001:1:0 (* VIRTUAL DEVICE *)
idvTP = 0:6:0 (* iphone *)


DEFINE_CONSTANT


DEFINE_TYPE


DEFINE_VARIABLE
Char ciViewerPswd[] = 'password'
Integer nLvlRange = 600
Char sFileName[] = 'amxiphone.gui'
Integer nDEBUG = 1


DEFINE_LATCHING

DEFINE_MUTUALLY_EXCLUSIVE

DEFINE_START

DEFINE_MODULE 'CF_VIEWER' CF_VIEWER (vdviphone, idvTP, ciViewerPswd,
nLvlRange, sFileName, nDEBUG)

DEFINE_EVENT

DEFINE_PROGRAM

--------------------------------------------------------------------------------------------------------

I inserted CF_VIEWER as a Module in the Workspace. I didn't make any
changes in this module. Do i did the right thing?

Any help will be appreciated.


Ayser





digimenet

unread,
Feb 16, 2009, 11:21:15 AM2/16/09
to CommandFusion
I would like to help you out here, since I wrote 99% of the module and
I feel a certain level of responsibility to helping ones implement
this module into there AMX systems. I am a AMX ACE Programmer and have
a large test setup of AMX gear (several Netlinx masters, G4 and G3
touch panels, and misc equipment.

If you could send me your program, I will upload and test to look for
potential problems. Also, send your network config as well so I can
simulate properly.

Also, just to verify, you are waiting until the entire *.gui is read-
in to the AMX master. It will not open the IP port until completion,
and that can take up to a minute or so if the GUI file is quite large.

I chose to read-in the GUI file in to try to reduce the "one-off"
approach when using the iPhone/iTouch as a UI. What I mean by this is
that you can use standard commands to control the iViewer UI so as
page flipping.

The hope here is to make the module in a way that it would be
transparent to the programmer in the end so that almost all G4
commands would be available.

Joker

unread,
Feb 18, 2009, 2:59:57 AM2/18/09
to CommandFusion
Hi Ayser

Few things u need to check
In the AMX Module, i do not know if anyone has solved it yet but, u
might have to take away the IP_SERVER_CLOSE which happens after
10seconds, and After loading ur GUI file via FTP, u have to search for
the File directory in the AMX module, i suspect its that problem.

Regards
Jeffery

Ayser

unread,
Feb 18, 2009, 4:51:49 PM2/18/09
to CommandFusion
Hello jairo,

Did you receive a mail from me? i sent you a mail with some files.

Please let me know,

Ayser
> > ---------------------------------------------------------------------------­-----------------------------
>
> > I inserted CF_VIEWER as a Module in the Workspace. I didn't make any
> > changes in this module. Do i did the right thing?
>
> > Any help will be appreciated.
>
> > Ayser- Tekst uit oorspronkelijk bericht niet weergeven -

Ting

unread,
Apr 16, 2009, 6:41:51 PM4/16/09
to CommandFusion
How exactly do you upload the gui to the Netlinx Master?
I have it added in the project under others and that doesn't seem to
work out well for it. I get the Connection has been lost error.

Thanks!

Ting

On Feb 16, 11:21 am, digimenet <ja...@digime.net> wrote:
> I would like to help you out here, since I wrote 99% of the module and
> I feel a certain level of responsibility to helping ones implement
> this module into thereAMXsystems. I am aAMXACE Programmer and have
> a large test setup ofAMXgear (several Netlinx masters, G4 and G3
> touch panels, and misc equipment.
>
> If you could send me your program, I will upload and test to look for
> potential problems. Also, send your network config as well so I can
> simulate properly.
>
> Also, just to verify, you are waiting until the entire *.gui is read-
> in to theAMXmaster. It will not open the IP port until completion,
> and that can take up to a minute or so if the GUI file is quite large.
>
> I chose to read-in the GUI file in to try to reduce the "one-off"
> approach when using the iPhone/iTouch as a UI. What I mean by this is
> that you can use standard commands to control the iViewer UI so as
> page flipping.
>
> The hope here is to make the module in a way that it would be
> transparent to the programmer in the end so that almost all G4
> commands would be available.
>
> On Feb 16, 7:39 am, Ayser <tro...@gmail.com> wrote:
>
> > Hello,
>
> > I really would like to use my Iphone withAMXNI2000. I'm stil getting
> > problems with the connection between iphone andAMX. I realized that i

Jarrod

unread,
Apr 22, 2009, 8:17:02 PM4/22/09
to CommandFusion
Can any of you AMX guys help Ting out? I wish I could help, but I'm
not familiar with the AMX side of things.

Jarrod

digimenet

unread,
Apr 23, 2009, 1:12:12 AM4/23/09
to CommandFusion
Use any FTP application to connect to the AMX Master.

The standard login is:
User: administrator
Pass: password

Be sure to put the file in the root folder of the AMX master, not
under "DOC:USER".

I typically user a higher TCP Port such as 10001, though this is not a
requirement for the module.

Be sure you pass the full file name, including the gui extension when
declaring the module. Also, make you spell it out correctly, including
any capitalization.

As an example:
If the file name is: CommandFusion.gui
And you pass it as commandFusion.GUI, it will not work because the "c"
is lower case and the extension is capitalize.

Also, it takes about a minute or so to read in the command fusion GUI
file into memory. The TCP Port will not open until this is completed.
If you open the diagnostics window, in netlinx studio, you will be
able to see the file being read in and when the TCP is open to accept
a connection.

I hope this is a starting point.

Jairo Martinez
AMX ACE Programmer
ESC, LLC
Aspen, Colorado

Jarrod

unread,
Apr 23, 2009, 4:25:11 AM4/23/09
to CommandFusion
Many thanks for that Jairo!

Any chance of a release-version of the module, and some docs? Been a
while since I've checked in with the AMX module status.

Thanks,

Jarrod
Reply all
Reply to author
Forward
0 new messages