AT commands

Dear Experts,

Please help:

I have Declared
   
   Dim cescQuote As Char

   cescQuote = Char.ConvertFromUtf32(34)

How do i write the following AT commands using cescQuote  in VB.net

1. .WriteLine("AT+CMGF=1\r")

2. .WriteLine("AT+CMGL=\"REC UNREAD\"")


Thank you all.


ukconceptsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Todd GerbertIT ConsultantCommented:
I'm not sure I understand the question...you need to know how to open a serial port?
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ukconceptsAuthor Commented:
The port is opened and all those.

  .WriteLine("AT+CMGF=1\r")

  .WriteLine("AT+CMGL=\"REC UNREAD\"")

The two lines above are ma problems. How do i write then out in Vb.Net such that it doesn't give me errors, prefarably using cescQuote to replace "".

Thank you.

0
Kalpesh ChhatralaSoftware ConsultantCommented:
0
Learn Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

Todd GerbertIT ConsultantCommented:
So you just need to know how strings work in VB.Net?  You're getting an error in VB.Net because of those strings, not an error response from your device?

And you're sure you mean VB.Net and not C#, right? (Tthose strings resemble C# code, and you've posted this question in the C# Zone, but you're also referring to VB.Net, which is why I'm not sure what language you're talking about).

Here's a couple tutorials that describe strings in VB.Net:
http://www.c-sharpcorner.com/UploadFile/mahesh/WorkingWithStringsP311232005021723AM/WorkingWithStringsP3.aspx
http://msdn.microsoft.com/en-us/library/aa903372(v=vs.71).aspx
0
Todd GerbertIT ConsultantCommented:
Here's a silly console program that might give you a hint.

Module Module1

    Sub Main()
        Dim string1 As String

        string1 = "world"

        Console.WriteLine("Hello """ & string1 & "!""")
        Console.Write("Press any key to exit...")
        Console.ReadKey()
    End Sub

End Module

Open in new window

0
käµfm³d 👽Commented:
To tack on to terbert's comment, unfortunately, in VB you can't use the "\r" or "\n" syntax. You'll have to concatenate one of VB's constants:
' Carriage return: vbCr
' Line feed:       vbLf
' CR/LF:           vbCrLf

.WriteLine("AT+CMGF=1" & vbCr)

Open in new window

0
Todd GerbertIT ConsultantCommented:
The syntax for using quotes in string literals is different too.

I STRONGLY recommend you have a look at some tutorials; if you don't have a good understanding  of strings I think it's going to be very difficult for you to write anything useful.
0
ukconceptsAuthor Commented:
I was able to sort out the technical problem from my hardware.

so i would love to award it to tgerbert for the various attempts.

Thanks everyone all the same.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.