strings sent to 0:2:0 doesn't get sent
yan_benyamin
Junior Veteran
the ip_client_open was successful. at least, if I try to send some strings and it's not open, there will be an error message, right?
one strange thing is that when I restart the master, everything is sent at once. I'm using a programmer2 exam emulator, and see the lighting part just ramps up everytime i did a reboot. what am I doing wrong? is it a program fault or do I have to set something first?
the program is simple. ip_client_open on define_start and this button event below:
any clues?
one strange thing is that when I restart the master, everything is sent at once. I'm using a programmer2 exam emulator, and see the lighting part just ramps up everytime i did a reboot. what am I doing wrong? is it a program fault or do I have to set something first?
the program is simple. ip_client_open on define_start and this button event below:
button_event[dvTP_DIMMER,nBtnLightRaise]
{
push:
{
send_string dvLight,"'RAISEDIM,[1:',itoa(get_last(nBtnLightRaise)),']'"
}
release:
{
send_string dvLight,"'STOPDIM,[1:',itoa(get_last(nBtnLightRaise)),']'"
}
}
any clues?
Comments
-
I am just guessing, but is there a chance that the connection closes after receiving a message? Try this logic:
data_event[dvLight]{ offline:{ fnReconnect(); } onerror:{ send_string 0,"'Error connecting to dvLight'"; fnReconnect(); } }
fnReconnect() should be smart enough to only try connecting every so often and not flood the network
Jeff -
I had always been told that port 2 was reserved and 0:3:0 was the first available port for use by us meer humans.
-
Also note that you will not see strings going to/from to any Ethernet port (0:x:0) in Notifications. This is a shortcoming of NetLinx Studio and the strings are actually being sent, you just won't be able to see them unless you trap for them in a string event or something.
-
i only have ip_client_open on offline. the master is a java app running on a pc (the amx p2 emulator), and it receives everything only on master reboots. it accepts things i sent through telnet. is there something i should set first?
tried using 0:3:0, 0:4:0, nothing changes. -
yan_benyamin wrote: »i only have ip_client_open on offline. the master is a java app running on a pc (the amx p2 emulator), and it receives everything only on master reboots. it accepts things i sent through telnet. is there something i should set first?
tried using 0:3:0, 0:4:0, nothing changes.
I didn't know we could have the java app??? I must not have gotten the memo... -
yan_benyamin wrote:
The released the emulator? So if you did your P2 practical when they said it had to be done by you had to do it blind but if you didn't do it you when you were supposed to you get an entire new year to complete it and you get an emulator to boot. That seems fair.I'm using a programmer2 exam emulator,
So much for the AMX's hard & fair line on recertifications.
The code looks a little too familiar to be the P2 course practical.
Such is life I guess! -
i should've gotten my result back in november but they sent it back to me late last month. I guess that's why they sent me the emulator to test it for.
-
I think you may have been told wrong. AFAIK, port 2 is not reserved.I had always been told that port 2 was reserved and 0:3:0 was the first available port for use by us meer humans.
As per Netlinx.axi
INTEGER FIRST_LOCAL_PORT = 2; -
Joe Hebert wrote: »I think you may have been told wrong. AFAIK, port 2 is not reserved.
As per Netlinx.axi
INTEGER FIRST_LOCAL_PORT = 2;
While this may be true, I was told (and checked my original class notes to be sure) to stay off port 2 and start working at port 3 and above. -
Yeah, I was told that port 2 is reserved for future use. They told me in training that it will work fine for now but may not work in the future if AMX decides to make use of it.
-
Yeah, I was told that port 2 is reserved for future use. They told me in training that it will work fine for now but may not work in the future if AMX decides to make use of it.
eminent domain and all that...
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
