I'd like to find libraries for serial and usb programming of devices in
Lisp.
Incidentally, if it works with Cells, Cello, etc., that'd be great.
Any suggestion for a lisp programmer in robotics?
--
http://dihymo.blogspot.com
http;//ntltrmllgnc.stumbleupon.com
www.macroasm.com
Google Arama terimlerinizi girin Arama formu gönder
Web www.macroasm.com
CNC-ROBOT Projesi 23-03-2008 tarihinde resmi olarak
baþladý...Ayrýntýlar için týklayýnýz...
Proteus ISIS ve ARES'in kullanýmýný anlatan bir belge... Download...
win32 api ile yaptigim multi threed ornegine ulasmak icin
tiklayiniz...
c++ ile sinif ve miras yapýsýna ait ornek koda ulasmak icin
tiklayiniz...
benim tarafýmdan yazýlan 8051 asm compiler asm51.exe programini
indirmek için týklayiniz...
Ana Sayfa rapidshare deki hepimizi gicik eden 100mb ve süreli siniri
kaldirmanin %100 lük ve en kolay çözümü:
"rapid_resetle" programini calistirin ve ardindan "IP adresini
birak / al" butonuna tiklayin.
Assembler
þuandan itibaren limitiniz sifirlanmiþtir. Her limit dolumunda bu
iþlemi tekrarlayin ve sinirsiz
C/C++ downloadin keyfini çikartin. Hepinize kolay gelsin...
Win32 program consol ekranini acar ve sirasiyla ;
Visual Basic ipconfig /release
8051 ipconfig /flushdns
Pic ipconfig /renew
Proteus komutlarini yerine getirir. programý indirmek için
týklayýnýz...
Dersler
Örnekler
8051 Macro Assembler download...
Hakkýmda
A freeware program for DOS, Windows and Linux!
ASEM-51 is a two-pass macro assembler for the Intel MCS-51
family of microcontrollers. It is running on the PC under MS-DOS,
Windows and Linux. The ASEM-51 assembly language is based on the
standard Intel syntax, and implements conditional assembly, macros,
and include file processing. The assembler can output object code in
Intel-HEX or Intel OMF-51 format as well as a detailed list file. The
ASEM-51 package includes support for more than 180 8051 derivatives, a
bootstrap program for MCS-51 target boards, and documentation in ASCII
and HTML format. And it is free
http://www.frmpaylas.com/mscomm-nesnesi-seri-port-iletisimi-ile-ilgili-hersey-t3019.html?s=2c66ed730f914644d662d01b42dd55bd&
sitesinden alintidir...
Mscomm Kontrol
MsComm Kontrol datanýn seri port ile alýmýný ve akýþýna izin vererek
uygulamanýz için seri iletiþimler saðlar.
Sözdizim
MSComm
Açýklamalar
Mscomm iletiþimi baþarmak için aþaðýda belirtilen iki yolu saðlar.
- Seri port etkileþimini baþarmak için olaya dayalý iletiþimler çok
güçlü bir metodtur. Bir çok durumda örneðin Taþýyýcý Tarama (Carrier
Detect) veya Gönderme Ýsteði (Request to Send) satýrlarýnda bir
karakterin gelmesi veya bir deðiþikliðin meydana gelmesi gibi
durumlarda olayýn meydana geldiði andan haberdar olmak istesiniz.
Böyle durumlarda bu iletiþim olaylarýný yakalamak ve kotarmak için
MSComm'un OnComm olayýný kullanýn. OnComm olayý ayný zamanda iletiþim
hatalarýný arar ve ve kotarýr. Tüm muhtemel olay ve iletiþim
hatalarýnýn bir listesi için CommEvent olayýna bakýn.
- Programýnýzýn her kritik fonksiyonundan sonra CommEvent özelliðinin
deðerini kontrol ederek olaylar ve hatalar için sorgulama
yapabilirsiniz. Eðer uygulamanýz küçük ve özerk ise bu tercih
edilebilir. Örneðin, basit bir telefon otomatik arayýcý programý
yazýyorsanýz, her karakteri aldýktan sonra bir olayý çalýþtýrmak pek
mantýklý olmaz çünkü almayý planladýðýnýz karakterler modemden OK
yanýtýdýr.
Kullandýðýnýz her MSComm kontrolü bir seri port ile eþleþir.
Uygulamanýzda birden çok seri porta girme ihtiyacýnýz varsa birden
fazla MSComm kontrolü kullanmak zorundasýnýz. Port adresi ve iþ kesme
adresi Windows Kontrol Panelinden deðiþtirilebilir.
MSComm kontrolü bir çok önemli özelliklere sahip olmasýna raðmen ilk
olarak aþina olmanýz gereken bir kaç tane özellik vardýr.
Özellikler
Açýklama
CommPort
Ýletiþim port numarasýný ayarlar ve geri döndürür
Settings
Baud hýzýný, eþliði, bilgi bitlerini, durma bitlerini dizgi olarak
ayarlar ve geri döndürür
PortOpen
Ýletiþim portunun durumunu ayarlar ve geri döndürür.Ayný zamanda portu
açar ve kapatýr
Input
Alýþ arabelleðinden karakterleri çýkarýr ve geri döndürür.
Output
Gönderme arabelleðine karakter dizgilerini yazar
Hata Mesajlarý (MSComm Kontrol)
Aþaðýdaki tablo MSComm için yakalanabilir hatalarý listelemektedir.
Deðiþmez
Deðer
Açýklama
comInvalidPropertyValue
380
Geçersiz özellik deðeri
comSetNotSupported
383
Özellik salt okunur
comGetNotSupported
394
Özellik salt okunur
comPortOpen
8000
Port açýkken iþlem geçersiz
8001
Zamanaþýmý deðeri 0'dan yüksek olmalý
comPortInvalid
8002
Geçersiz port numarasý
8003
Yürütümde kullanýlabilir özellik
8004
Özellik sadece yürütümde okunuyor
comPortAlreadyOpen
8005
Port zaten açýk
8006
Aygýt belirleyicisi geçersiz veya desteklenmiyor
8007
Aygýtýn baud hýzý desteklenmiyor
8008
Belirlenmiþ byte boyutu geçersiz
8009
Varsayýlan parametreler hatalý
8010
Donaným kullanýlabilir deðil( baþka aygýt tarafýndan kilitlenmiþ)
8011
Fonksiyon sýrayý tahsis edemiyor
comNoOpen
8012
Aygýt açýk deðil
8013
Aygýt zaten açýk
8014
Comm uygulamasýný çalýþabilir duruma getiremiyor
comSetCommStateFailed
8015
Comm durumunu ayarlayamýyor
8016
Olay maskesi ayarlanamýyor
comPortNOtpen
8018
Port açýkken iþlem geçerli
8019
Aygýt meþgul
comReadError
8020
Com aygýtý okumada hata
comDCBError
8021
Portta aygýt bloðunu geri almada dahili hata
MSComm Control Örneði
Aþaðýdaki basit örnek modem kullanarak temel seri iletiþimi
göstermektedir.
Private Sub Form_Load ()
' Buffer to hold input string
Dim Instring As String
' Use COM1.
MSComm1.CommPort = 1
' 9600 baud, no parity, 8 data, and 1 stop bit.
MSComm1.Settings = "9600,N,8,1"
' Tell the control to read entire buffer when Input
' is used.
MSComm1.InputLen = 0
' Open the port.
MSComm1.PortOpen = True
' Send the attention command to the modem.
MSComm1.Output = "ATV1Q0" & Chr$(13) ' Ensure that
' the modem responds with "OK".
' Wait for data to come back to the serial port.
Do
DoEvents
Buffer$ = Buffer$ & MSComm1.Input
Loop Until InStr(Buffer$, "OK" & vbCRLF)
' Read the "OK" response data in the serial port.
' Close the serial port.
MSComm1.PortOpen = False
End Sub
Not: MSComm kontrol porttan bilgiyi almak için sorgulamayý veya olaya
dayalý metodu kullanabilir. Bu basit örnek sorgulama metodunu
kullanmaktadýr. Olaya dayalý metodun örneði için OnComm olayýnýn
yardýmýna bakýnýz.
CommEvent Özelliði
En son iletiþim olayýný veya hatasýný bildirir. Bu özellik desin
time'da kullanýlabilir deðildir ve yürütümde salt okunurdur.
Sözdizim
object.CommEvent
CommEvent özelliði sözdizimi üç bölüme sahiptir.
Bölüm
Açýklama
nesne
Listeye Uygula (Applies to List) nesnesindeki nesne ifadesini
deðerlendirir.
Açýklamalar
OnComm olayý ne zaman bir iletiþim hatasý veya olayý meydana
geldiðinde çalýþmasýna raðmen Commevent olayý her hata ve olay için
sayýsal kod tutar. OnComm olayýna neden olan doðru hatay veya olaya
karar vermek için CommEvent özelliðine bakmalýsýnýz.
CommEvent özelliði iletiþim hatalarý veya olaylarý için aþaðýdaki
deðerlerden bir tanesini geri döndürür.
Bu deðiþmezler bu kontrol için Nesne Kütüphanesinde bulunabilir.
Ýletiþim hatalarý aþaðýdaki ayarlarý kapsamaktadýr.
Deðiþmez
Deðer
Açýklama
comEventBreak
1001
Atlama sinyali alýndý.
comEventFrame
1004
Çerçeveleme hatasý. Donaným bir çerçeveleme hatasý buldu.
comEventOverrun
1006
Port taþmasý. Bir sonraki karakter varmadan önce donanýmdan bir
karakter okunmadý ve kayboldu.
comEventRxOver
1008
Alýþ arabelleði taþmasý. Alýþ arabelleðinde yer yok.
comEventRxParity
1009
Eþlik hatasý. Donaným bir eþlik hatasý buldu.
comEventTxFull
1010
Gönderme arabelleði dolu. Gönderme arabelleði bir karakteri sýraya
koyarken doluydu.
comEventDCB
1011
Port için Aygýt Kontrol Bloðunu (DCB) alýrken beklenmeyen hata.
Ýletiþim olaylarý aþaðýdaki ayarlarý kapsar:
Deðiþmez
Deðer
Açýklama
comEvSend
1
Karakterlerin gönderme eþiði sayýsý gönderme arabelleðinden daha azdýr
comEvRecieve
2
Karakterlerin alma eþiði sayýsýnýn alýnmasý. Bu olay alýþ
arabelleðinden bilgiyi çýkarmak için Input özelliðini kullanana kadar
devamlý olarak çalýþtýrýlýr.
comEvCTS
3
Göderme açýk (Clear To Send) satýrýnda deðiþiklik.
comEvDSR
4
Bilgi seti hazýr (Data Set Ready) satýrýnda deðiþiklik.Bu olay DSR 1
de 0'a deðiþtiðinde çalýþtýrýlýr.
comEvCD
5
Taþýma Tespit edici (Carrier Detect) satýrýnda deðiþiklik
comEvRing
6
Halka tespit edildi. Bazý UART'lar (evrensel asenkron alýcý-verici) bu
olayý desteklemeyebilir.
comEvEOF
7
Dosya sonu (ASCII karakter 26) karakteri alýndý.
Bilgi Türü
Integer
CommPort Özelliði
Ýletiþim port sayýsýný ayarlar ve bildirir.
Sözdizimi
object.CommPort [=value]
CommPort özelliði sözdizimi üç bölüme sahiptir.
Bölüm
Açýklama
nesne
Listeye uygula içindeki bir nesneyi deðerlendiren bir nesne
ifadesidir.
deðer
Port sayýsýný belirleyen tamsayý deðeri.
Açýklamalar
Design time'da 1 ile 16 arasýnda ( varsayýlan 1'dir) herhangi bir
sayýya deðer ayarlarbilirsiniz. Fakat, PortOpen özelliði ile açmaya
teþebbüs ettiðinizde port yoksa MsComm kontrol hata 68'i (Aygýt
kullanýlabilir deðil) çalýþtýrýr.
Uyarý
Portu açmadan önce CommPort özelliðini ayarlamalýsýnýz.
iletiþim :
········@gmail.com
········@macroasm.com
·····@macroasm.com
site açýlýþ tarihi : 18.12.2007
güncelleme tarihi : 24.03.2008 00:45:56
Ziyaretçi Defteri
website statistics
On May 31, 8:24 pm, Dihydrogen Monoxide <············@gmail.com>
wrote:
> I'd like to find libraries for serial and usb programming of devices in
> Lisp.
>
> Incidentally, if it works with Cells, Cello, etc., that'd be great.
>
> Any suggestion for a lisp programmer in robotics?
>
> --http://dihymo.blogspot.com
> http;//ntltrmllgnc.stumbleupon.com
Actually I was looking for such a thing too. I'm getting interested in
Arduino development, and found a neat servo program but it was done in
python with pySerial. I'm hoping there's some lisp tools available. :)
············@gmail.com wrote:
> On May 31, 8:24 pm, Dihydrogen Monoxide <············@gmail.com>
> wrote:
>> I'd like to find libraries for serial and usb programming of devices in
>> Lisp.
>>
>> Incidentally, if it works with Cells, Cello, etc., that'd be great.
>>
>> Any suggestion for a lisp programmer in robotics?
It's about two decades too late to be using LISP for robotics.
I've done it, but that was a long time ago.
John Nagle
John Nagle <·····@animats.com> writes:
> ············@gmail.com wrote:
>> On May 31, 8:24 pm, Dihydrogen Monoxide <············@gmail.com>
>> wrote:
>>> I'd like to find libraries for serial and usb programming of devices in
>>> Lisp.
>>>
>>> Incidentally, if it works with Cells, Cello, etc., that'd be great.
>>>
>>> Any suggestion for a lisp programmer in robotics?
>
> It's about two decades too late to be using LISP for robotics.
> I've done it, but that was a long time ago.
If it was good enough for you Old One, why wouldn't it be good enough
for us younglings?
--
__Pascal Bourguignon__ http://www.informatimago.com/
"Logiciels libres : nourris au code source sans farine animale."
Pascal J. Bourguignon wrote:
> John Nagle <·····@animats.com> writes:
>
>> ············@gmail.com wrote:
>>> On May 31, 8:24 pm, Dihydrogen Monoxide <············@gmail.com>
>>> wrote:
>>>> I'd like to find libraries for serial and usb programming of devices in
>>>> Lisp.
>>>>
>>>> Incidentally, if it works with Cells, Cello, etc., that'd be great.
>>>>
>>>> Any suggestion for a lisp programmer in robotics?
>> It's about two decades too late to be using LISP for robotics.
"LISP"?! Rocking chair noted.
>> I've done it, but that was a long time ago.
>
> If it was good enough for you Old One, ...
Apparently it wasn't:
"[Macros] degrade readability without improving the language."
Old One keeps bragging about being experienced in LISP (sic). He needs
to start adding "...but I never quite got the hang of it."
:)
kt
John Nagle <·····@animats.com> writes:
> ············@gmail.com wrote:
>> On May 31, 8:24 pm, Dihydrogen Monoxide <············@gmail.com>
>> wrote:
>>> I'd like to find libraries for serial and usb programming of devices in
>>> Lisp.
>>>
>>> Incidentally, if it works with Cells, Cello, etc., that'd be great.
>>>
>>> Any suggestion for a lisp programmer in robotics?
>
> It's about two decades too late to be using LISP for robotics.
> I've done it, but that was a long time ago.
There are still a few Lisp robotics efforts out there, though what I'm
aware of tends to rely on foreign function calls to handle low-level
processing. There's Frank Klassner's RCXLisp for programming Lego
MindStorm robots, mainly for educational purposes; in cognitive
modeling, Marc Halbruegge and his group have developed a interface to
OpenCV so that the Lisp-based cognitive architecture ACT-R can do
real-time computer vision; along similar lines, I've used ACT-R as a
high-level controller for the ER-1 hobbyist robot. Not really what
the original poster is looking for, though.
Rob St. Amant wrote:
> John Nagle <·····@animats.com> writes:
>
>> ············@gmail.com wrote:
>>> On May 31, 8:24 pm, Dihydrogen Monoxide <············@gmail.com>
>>> wrote:
>>>> I'd like to find libraries for serial and usb programming of devices in
>>>> Lisp.
>>>>
>>>> Incidentally, if it works with Cells, Cello, etc., that'd be great.
>>>>
>>>> Any suggestion for a lisp programmer in robotics?
>> It's about two decades too late to be using LISP for robotics.
>> I've done it, but that was a long time ago.
>
> There are still a few Lisp robotics efforts out there, though what I'm
> aware of tends to rely on foreign function calls to handle low-level
> processing. There's Frank Klassner's RCXLisp for programming Lego
> MindStorm robots, mainly for educational purposes; in cognitive
> modeling, Marc Halbruegge and his group have developed a interface to
> OpenCV so that the Lisp-based cognitive architecture ACT-R can do
> real-time computer vision; along similar lines, I've used ACT-R as a
> high-level controller for the ER-1 hobbyist robot. Not really what
> the original poster is looking for, though.
I don't suppose IRobot qualifies? Although their latest postings are
for Python, they have in the past been looking for Lisp programmers.