среда, 30 июня 2010 г.

Coupling Parallax Robot with iPaq – Part 2

You can read Part 1 here

So, I was able to successfully create a C# application for WinMo5 which reads input from BoeBot and can send data back to the robot. On the BoeBot I uploaded a program which reads data from IR sensors, reports it back to the COM port and wait for instructions where to go to.

The program on the iPaq has a built-in web server which allows me to connect to the application via WiFi and to read data from BoeBot, there is also a text field which can be used to send instructions back to the robot. So, for instance, via WiFi I can send a message to go forward and then receive on the web page values from IR sensors. It’s like a remote control via WiFi via built into the robot webserver.

I’ll post my current source code later.

пятница, 18 июня 2010 г.

Coupling Parallax Robot with iPaq

Recently I started a project of coupling parallax Boe bot robot with ipaq rx1950. Initially I thought it can’t be done since my Boe Bot only have a serial port, but then I found that rx1950 actually has a serial port and I can assemble a connector for this.

You might ask “why do I bother?” – the thing is that I always had a thought of implementing my science work in the university in the real life. It is a neural network which is being trained and programmed by a genetic algorithm. Basically this simulates how homo-sapience and other animals with abilities to collect knowledge evolved through the generations, but with computer you can speedup this process for a neural networks to a few minutes (it depends on the size of the network though).

PBasic that Parallax has in their robots and in controllers is quite modern and quite good language, but it won’t do what I need to implement for the whole thing. Plus, hardware restrictions won’t allow me to collect data for several thousands of virtual “species” (individual configurations of the neural network). That’s why I quickly realized that with BoeBot I can only create an “animal” with the “brain” (neural network), in order to train this thing I have to use external tools. I.E. I could select best fit for the brain, switch boebot on and program it to collect some performance data for the selected brain sample, then I can use collected data on a PC to optimize values. But this process will be very very time-consuming and not scalable and not flexible enough.

So, then I realized that I could use ipaq and connect it directly to the robot. Then I decided to proceed with 2 phases

- Phase I – a program on the iPaq will collect data from robot’s sensors and return back commands for actuators (motors). The program will include neural network and GA (genetic algorithm which will adjust the network).

- Pase II – a program will collect data about robot’s sensors and will train network which resides on the robot itself. So, even if ipaq is switched off, the “animal” will live, it just won’t evolve.

I thought I can use Linux on the iPaq (I already tried to port it and it worked quite well even with the wifi – send me a message if you want to know how, I know that it’s hard for the rx1950), but then I decided that it will be very unstable and again not flexible – it’s hard to compile for embedded Linux (I just never had enough time to learn how to do this). So I decided to go with WinMo5. VS2005+WinMo5SDK are very good development tools I should say, it was very easy to create ComPort application with C# and .Net Compact Framework.

Now I need to put everything together. I’ll let you know what I make.

P.S. iPaq rx1950 pinout for serial port:

http://www.gomadic.com/comipseradca.html

http://pinouts.ru/PDA/ipaq_22p_pinout.shtml

пятница, 6 ноября 2009 г.

Apple AppStore is a nightmare for developers

We submitted an app to the AppStore more than a week ago, usually it take 3-4 days to approve our product, we were OK with that, but when you release a hotfix (X.X.1 version) – why the hell on earth it should take more than a week?

Are you serious? For other our products we still have even older version. This is totally unacceptable, didn’t you know about a huge load that you will experience with all of these apps in the store? Looks like you have a single person per developer, who is wasting their time doing unnecessary QA tests.

I am very disappointed with you Apple! And when developers are very disappointed with platform for which they develop an application – this is something that should be taken care of.

четверг, 10 сентября 2009 г.

Самый простой способ купить билет в Ryanair

Недавно спланировал и съездил с женой в Голландию, Германию и отдыхал на Сардинии. По сложившейся традиции :) отдых = зарплате (никаких накопить, сэкономить, взять кредит). По–этому Тампере, по-этому Ryanair.

Подождал Жутчайшего promotion от Ryanair – все билеты мне обходились по 5 евро итого – 4 перелёта на двоих = 40 евро. Но встала проблема – оплата по visa добавляет к каждому перелёту ещё по 5 евро и стоимость перелётов удваивается – не очень-то радостно. Promotion заканчивался на следующий день – ни она из Visa Electron что была на руках не сработала :). Но “русские не здаются” :) вычитал в интернете что вродебы Промсвязьбанк выдаёт Электроны которые работают, кроме того у них появилась услуга Visa Electron Express или что-то типа того. Поехал – оказалось действительно – платишь 250 р (годовое обслуживание) и тебе за пол-часа выдают Электрон.

Могу подтвердить – хоть на этой карте нету Вашей фамилии, в инете карта работает на ура. Ryanair схавал! :)

Да здравствует победа русской смекалки над иностранным маркетингом – не на тех напали :)

P.S. Правда на след день цена на билет опустилась до 1 евро :)

P.P.S. Чёто я уже писал оказывается :) – ну теперь по русски заголовок :)

вторник, 14 июля 2009 г.

Ryanair Tickets to Europe with Visa Electron. Райанэиром в Европу – оплата Visa Electron

Тут Ryanair поменял немного схему продажи билетов. Теперь в случае если у тебя не Visa Electron приходится доплачивать по 5 евро на человека на перелёт. Учитывая что я обычно сложные маршруты придумываю с несколькими перелётами – выходит в копеечку. Кроме того собирался покупать билеты по теже 5 евро, так что платить 10 как то не очень хотелось. Выход был найден.

Оказывается не все Visa Electron-ы у нас в стране одинаково полезны :). Судя по форумам Ryanair кушает старые VTB-шные и Промсвязьбанка. Промоакция по которой я собирался билеты брать заканчивалась на следующий день. Карточку выдают 3-5 дней. Но оказалось Промсвязьбанк выдаёт Visa Electron Мгновенного использования (без имени владельца на карте), я получил такую за 120 рублей в течение 30 минут ;)

Карта сработала like a charm :)

Мораль сей басни – на следующий день Ryanair сбросил часть билетов до 1евро :(, правда при этом конкретно мои дни подорожали и значительно – так что нечего особо расстраиватся

вторник, 12 мая 2009 г.

среда, 6 мая 2009 г.

Asterisk 1.6 + Voiceone + Exchange 2007

Almost finished this configuration. For those who don’t know – Voiceone is a great gui for asterisk. I was able to install it with asterisk 1.6, although it was not intended to work with it (so I rewrote its code a little bit), you can reed more in this topic

http://voiceone.it/forum/viewtopic.php?t=973

In the last post I added a link to download my code. Also now I’m adding a link to my dialplan and some configuration (I will be updating this site, right now it doesn’t have all configs).

http://sites.google.com/site/sgoncharenko/Home/asterisk-configs

With respect to

Voiceone – it’s great – I like it – it is very intuitive and it’s very convenient to modify settings of my asterisk box. I even was able to do a provisioning of Linksys PAP2 boxes – check my code.

Asterisk 1.6 – it’s super. With respect to previous versions – it is more stable and works perfectly in real-time asterisk mode. They also fixed many bug with SIP and NAT. So right now my new asterisk server is sitting behind a NAT, we forwarded ports from one of our external IPs to this box (these a SIP UDP ports, you can google for them) using our CISCO ASA firewall. So, I was able to connect external client that was behind a router/NAT to the asterisk, in previous version it was a problem. All my SIP providers are working perfectly. Moreover they added TCP SIP support to this version which allowed me to connect it to Exchange unified messaging.

Exchange UM – this is awesome. Right now I can call to a person by calling to Exchange auto attendant and saying a name of that person. I can log into my mailbox by voice and Exchange will read emails for me, reschedule my meetings, compose voice messages and call people. I was able to use exchange as a voice messaging system of my Asterisk PBX. Hopefully it is already supports faxes the same way, although I am not sure :).

With these 2 (plus voiceone) guys, Exchange UM and Asterisk 1.6 I can do even more. Will tell you of course… :)

P.S. Probably will add more details in the future. If I’d have a time…