Discussion in "Software" started by    Anigurl    Jul 9, 2010.
Fri Jul 09 2010, 12:39 am
#1
any1 help me plz...i need d codes for max 232 chip.in order to send d data from one modem to one modem..this is low cost infrared wireless modem for pc to pc communication...what are a simple modification which i can do in this circuit....mail me to [email protected]


• The schematic of Low Lost Infra-Red Wireless Link for PC-to-PC Communication is as follow:



Tue Jul 13 2010, 12:12 am
#2
there doesnt seems to be any code involved in this.. just send data from your PC's uart to other which also connected to similar module.

what language are you using?
Wed Jul 14 2010, 11:06 pm
#3
i need c codes.then only i can send data from this module to another same module...by using infrared
Wed Jul 14 2010, 11:11 pm
#4


i need c codes.then only i can send data from this module to another same module...by using infrared

Anigurl



do u mean the computer side software
Thu Jul 15 2010, 01:56 am
#5
Mon Sep 13 2010, 06:29 pm
#6
Public Class Form1
    Private mintbaud As Integer

    
    Dim varRX As String
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Try
            AxMSComm1.PortOpen = True
        Catch ex As Exception
            MsgBox(" already in used by other application.", vbExclamation, "Message")
            Exit Sub
        End Try
        AxMSComm1.CommPort = TextBox1.Text
        AxMSComm1.Settings = TextBox2.Text & ",N,8,1"

        Button1.Enabled = False
        Button2.Enabled = True
        Button3.Enabled = True
        AxMSComm1.DTREnable = True
        AxMSComm1.RTSEnable = True

    End Sub
    Private Sub MSComm1_OnComm(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxMSComm1.OnComm
        varRX = AxMSComm1.Input
        RichTextBox2.Text = varRX
        AxMSComm1.Output = RichTextBox1

    End Sub

    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

    End Sub

    Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged

    End Sub


    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        AxMSComm1.PortOpen = False
        Button1.Enabled = False
        Button2.Enabled = True
        Button3.Enabled = False
        AxMSComm1.DTREnable = False
        AxMSComm1.RTSEnable = False


    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
        RichTextBox1.Text = ""

    End Sub

    Private Sub RichTextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RichTextBox2.TextChanged

    End Sub
End Class


above is my code.when i debug this code...there is error stated tat "A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in AxInterop.MSCommLib.dll" and a new exception unhandlled open..and state "Exception from HRESULT: 0x800A1F4C"..i really need ur guys help..


[ Edited Mon Sep 13 2010, 11:22 pm ]
Tue Sep 14 2010, 12:03 am
#7
you're asking something that is out of our hands well atleast my hands.
you can however go through this tutorial maybe you get some help on how to program serial port in VB.net
http://www.innovatic.dk/knowledg/SerialCOM/SerialCOM.htm

PS: Its easy to program serial ports in VB6 than in vb.net, thats what i feel

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm
Robertgurse
Wed Apr 24 2024, 02:43 pm
Richardedils
Wed Apr 24 2024, 04:07 am
Malcolmaccek
Wed Apr 24 2024, 01:21 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am