Your comments

Hi Aleksandr,

i have send my projects yesterday, but clearly you not receive it...


Now i send again.

Also, you can use the parameter "Script Modifier" on Channels. With this parameter you can call one function on JS.

So, for example, if you write this function

function virtual_to_virtual (in_Type, in_Name, in_Value) 
{
   var namepart = in_Name.split(".");  
   IR.SetVariable("Server.Tags."+ in_Name, in_Value);
   return in_Value;
}

and set "Script Modifier" parameter of channel named as getTechnicalData for run function "virtual_to_virtual" then you can copy the value of channel on tag with same name.

[code]

   IR.SetGlobalListener(IR.EVENT_GLOBAL_TAG_CHANGE, function (name, value)
   {
      IR.Log(name + ">" + value);
      
      switch (name){
         case ("Server.Channels.getTechnicalData"):
            //Insert code
            break;

         case ("Server.Channels.getAreaData"):

            //Insert code

            break;

         case ("Server.Channels.getAreaNumbersAndNames"):

            //Insert code

            break;

      }
   });
   IR.SubscribeTagChange("Server.Channels.getTechnicalData");

   IR.SubscribeTagChange("Server.Channels.getAreaData");

   IR.SubscribeTagChange("Server.Channels.getAreaNumbersAndNames");

[/code]


Remeber, You can have _only one_ "EVENT_GLOBAL_TAG_CHANGE" on you project.

Hi Aleksandr,

i use Studio 1.1.4.19408 and auto-update show that I have the lastest version.

OK, now is very urgent fix it....today another project have this shift!

This is only a visul issue or i have real problem on runtime?

I insert 150 commands before have this problem, 230 between commands and feedbacks.

Sorry Dmitry,

i have filtered packet with "ip.src==192.168.0.250||ip.dst==192.168.0.250" so in this file i captured all packet form and to pbx. 192.168.0.11 is ip of pc with emulator (where i install wireshark).


More, i see all packet (w/o filter) and i not see packet from 192.168.0.11...


CorrectAnswer_All.pcapng

WrongAnswer_All.pcapng

PC with My Program and Hercules:

IP: 192.168.0.38

Listen port: 11080

IP Host: 192.168.0.11 ("i3Pro" PC)

Port Host: 11081

Communication: from _Dinamic Port_ (My program open a free random port each time i send a packet, after send the program close it) to _Port Host_


PC with i3Pro:

IP: 192.168.0.11

Listen port: 11081

IP Host: 192.168.0.38 ("My Program" PC)

Port Host: 11080

Communication: from _Listen port_ to _Port Host_



As You can see on Wireshark File, i3Pro PC recevie all 2 packet (from my program and from Hercules), but iRidium Driver receive only packet sended from Hercules.

The difference is only one: Sender Port, random on my program and Listen port on Hercules.

So...Why now I can't use an different sender port to communicate with iRidium Driver?

Hi Dmitry,

My Customer try new project on your system. Nothing is change.

He can send command but can't receive the feedback.


I do more test on office and I find a possible cause.

Hercules send packet from local port (11080) to remote port (11081) and it work (same iridium).

My application send packet from free port (dinamically) to remote port (11081) and iridium not recieve it.

(see wireshark packet UDPServer.pcapng).

I can't understand: how can I send an packet from same port that I need open with listener socket?

Why iRidium not receive packet from different port?

yes, "Hercules PC" have ip 192.168.0.39 and "i3Pro PC" have 192.168.0.11.

I try only comunication from "Hercules PC" and "i3Pro PC".

i not send command from "i3Pro PC" in this test, so I think that ip address on driver is not important.


Now i change the address on driver (in any case i use the broadcast address to send command from Hercules to i3Pro) and work.


I check the parameter on customer project and now I wait the result of him test.