ilteris kaplan blog

Archive of blog posts since 2005

April 5, 2008

Wiki

Networkedobjects Xport_First_Steps

#wiki

Experiences through xport

  • Wow, it has been fun and lots of learning. First of all what I did; first I plugged my xport’s serial tx/rx to my usbserial adapter and to my computer through a rs232 connector and it didn’t work. (I will come to this later.) I wasted some time on this, it didn’t work neverthless. So I went ahead and used arduino without AVR and reversing the tx/rx. It worked like a charm. I was able to see the setup menu of xport when I reset it and press x on the terminal. Later I telnet to it. It was working too. When I tried to connect to a remote site through my xport, that’s where I stumbled.
  • I never get that modem commands like D or CI[ipnumber] I should be getting. Later when I read it in the User Guide of Xport I have found out that I needed to set them. I set the ConnectMode to D4 from the default C0. That solved my problem. Now when I telnetted to xport, I could see the CI[ipnumber] in the local terminal window. Everything was ok more or less. I still haven’t quite figured out how to remotely connect to another server. When I typed C[ipnumberhere] and tried to connect to google for example and press return, I got the callback modem command of C. But then even when I typed GET etc. etc. I just couldn’t list it on my terminal. This is still an issue that I am having.
  • So my next step was using my usb2serial adapter’s chip instead of arduino’s. Since I need arduino to program right? So I went ahead and tried to connect my usb2serial and then I remembered what Tom said about powering the xport. He advised me to power it 1000mA and said arduino 5v doesn’t give that much. So I went ahead and powered my xport through a 12v power supply using a regulator. Also I used a hex inverter 7404N. It worked!! I was pretty happy about it. You can see the picture below:

  • So it meant I didn’t have to use the arduino as an usbserial converter anymore. Then the time came to connecting xport through arduino by basic program that Tom wrote. That experience was kind of interesting. I compiled the code and upload it to my chip and then I connected rx/tx of arduino to xports tx/rx. The program was supposed to do this: If I connected to xport through telnet, which I did ok, and type characters, in my local terminal which is connected to arduino should be printing hello world text for each byte that I was sending from telnet. Well that didn’t work quite expected. When I did it, only the character reecho in the telnet window, and nothing showed up in my terminal. But this happened: When I press letters when my terminal screen was selected, it sent hello world to the telnet window and I saw it was printing there! Now what’s going on here? I left the answer of this question to tomorrow.

Continue Reading

Back to Archive