IrTrans WiFi IRDB

Ethernet specific questions and answers - IRTrans LAN, LAN Controller devices

Moderator: marcus

IrTrans WiFi IRDB

Postby trikom » Thu 23. Jun 2011, 15:09

Our company purchased two IRTrans devices for testing and if everything is OK
purchase a greater amount to market in Argentina.
I have a device with Wi-fi IRTrans DB Ver 1.5.

At this time I am developing a small application in vb.net using IRTrans.ocx, But I have also tested an application with TCP / IP commands in ASCII and I got the same error

The code for ocx is as follows:

ublic Class Form1
Dim ConOK As Boolean = False

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Not ConOK Then
AxIRTrans1.ServerIP = "10.0.0.131"
AxIRTrans1.Connect()
End If
End Sub

Private Sub AxIRTrans1_Connected(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxIRTrans1.Connected
ConOK = True
MsgBox("Conexion OK")
End Sub

Private Sub AxIRTrans1_ConnectError(ByVal sender As Object, ByVal e As AxIRTransOCX.__IRTrans_ConnectErrorEvent) Handles AxIRTrans1.ConnectError
ConOK = False
MsgBox("Error Conexion: " & e.msg)
End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
If ConOK Then
AxIRTrans1.SendIR(TextBox1.Text, TextBox2.Text)
End If
End Sub

Private Sub AxIRTrans1_CommandReady(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxIRTrans1.CommandReady
MsgBox("Comando Listo")
End Sub

Private Sub AxIRTrans1_Error(ByVal sender As Object, ByVal e As AxIRTransOCX.__IRTrans_ErrorEvent) Handles AxIRTrans1.Error
MsgBox("Error: " & e.msg)
End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If ConOK Then
AxIRTrans1.IRClose()
ConOK = False
End If
End Sub

End Class

As clarification:
When I click the connect button (button1) the connection is successful. Before configuring the IP team and defined this property in the ocx control.
But when I click on the Send button (button2) generates the following error: IR database not loaded.
Button3 is only for close.
The textbox is to enter the remote computer name and the command to send.

And the code for TCP/IP is as follows:


Imports System.Net.Sockets

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Try

Dim Trama() As Byte
Dim TramaResp(50) As Byte

Dim client As New TcpClient
client.Connect("10.0.0.131", 21000)
Dim stream As NetworkStream = client.GetStream()
Dim sndRemote As String = "dream"
Dim sndCommand As String = "vol+"
Dim Command As String = "ASCI"
Dim FinLinea As String = ControlChars.CrLf
Dim strTramaResp As String

TextBox1.Text = ""

'SEND INITIALIZATION COMMAND
Trama = StrToByteArray(Command)
stream.Write(Trama, 0, Trama.Length)

'SEND ASCII STANDART COMMAND
Command = "Asnd"
Trama = StrToByteArray(Command & " " & sndRemote & "," & sndCommand & FinLinea)

stream.Write(Trama, 0, Trama.Length)
stream.Read(TramaResp, 0, TramaResp.Length)
strTramaResp = System.Text.Encoding.ASCII.GetString(TramaResp)
TextBox1.Text = strTramaResp

client.Close()

Catch Err As Exception

MsgBox(Err.Message)

End Try

End Sub

Public Shared Function StrToByteArray(ByVal str As String) As Byte()
Dim encoding As New System.Text.ASCIIEncoding()
Return encoding.GetBytes(str)
End Function

End Class




I'm sending commands DB's own standard. For example: Remote: dream and command: vol +

What is wrong?
Any ideas?
please help..
thank you very much
trikom
 
Posts: 5
Joined: Wed 22. Jun 2011, 13:59

Re: IrTrans WiFi IRDB

Postby IRTrans » Thu 23. Jun 2011, 15:17

Hi,
the reason for that error is exactly what the error message tells you: The IR Database has not been loaded.

After you have learned the IR Codes they are stored on your PC (in the folder remotes of the IRTrans SW). To send them directly you will need to upload them to the IRTrans device. That is done using the “Device Database” dialog of the GUI Client. Simply select all the needed remotes (via Right click-Select) and then Click on “Flash” to upload them.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: IrTrans WiFi IRDB

Postby trikom » Thu 23. Jun 2011, 15:31

OK, but I do this by connecting the device IRTrans USB to PC and use software USB IRTranstray (Config) and then the GUIClient? or it can be done by Ethernet Wi-Fi or some other option?

Thank, Trikom
trikom
 
Posts: 5
Joined: Wed 22. Jun 2011, 13:59

Re: IrTrans WiFi IRDB

Postby IRTrans » Thu 23. Jun 2011, 15:59

Hi,
the upload can be done the same way as learning.

As learning it is possible via WLAN or via USB.

The procedure is as follows:

For USB:
1. Start IRTrans Tray USB
2. Start GUI Client
3. Learn your IR Codes with the GUI Client
4. Upload your IR Codes with the GUI Client

For WLAN:
1. Start IRTrans Tray lan
2. Start GUI Client
3. Learn your IR Codes with the GUI Client
4. Upload your IR Codes with the GUI Client

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: IrTrans WiFi IRDB

Postby trikom » Thu 23. Jun 2011, 16:57

With USB it´s OK.
But when I start IRTranstray LAN is generated the following error "IRServer Version 6.03.08 / No IrTrans Device found / Aborting... " and then close
The device has the IP configured in the same range that I have the PC

Other cuestion:
With the device without DB IR. The commands can be sent directly, using the OCX or TCP / IP command?

And For ipad with IR software you need wifi with DB or you can use the wifi device without a DB?

Many Thank
Trikom
trikom
 
Posts: 5
Joined: Wed 22. Jun 2011, 13:59

Re: IrTrans WiFi IRDB

Postby IRTrans » Thu 23. Jun 2011, 17:40

Regarding your questions:

- On devices with multiple network interfaces the server sometime does not find the LAN device. If that happens you can modify the start link (in the start menu) and replace the parameter "lan" with the IP address of the IRTrans device.

- Direct sending to the device can only work with IRDB devices - the codes need to be stored inside the device for direct access.

- For most external applications the IRDB version is needed. Only iredTouch can access a device without IRDB.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32


Return to Ethernet

Who is online

Users browsing this forum: No registered users and 14 guests