Re: I/O device access

2017-09-30 Thread George Orais
Hey! 

> Thanks for the answer, sir. 

No probelm sir ;) 



> I’m fine with GNU/Linux, it is an awesome operating system. 

Perfect! 



> Your projects sounds awesome, too. How many people are working in PilMCU 
> project? 

As of the moment, just me and Abu :) But AW is also planning to build one soon 
;) 



> What OS does it use? 

Ah I think it should be also called PilOS coz its made by Abu ;) As of the 
moment the OS implemented in PicoLisp is composed of: Line editor, filesystem, 
debugger, benchmark.. and more useful tools :) 

You can also check out the mini PicoLisp running on a AVR based MCU? 


BR,
Geo

--
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


RE: I/O device access

2017-09-30 Thread stayfirefo...@outlook.com
Thanks for the answer, sir.
I’m fine with GNU/Linux, it is an awesome operating system.
Your projects sounds awesome, too. How many people are working in PilMCU 
project? What OS does it use?

Sent from Mail for Windows 10

From: George Orais
Sent: Sunday, October 1, 2017 3:52 AM
To: picolisp@software-lab.de
Subject: Re: I/O device access

Hi stayfirefocus,

Nice goal you got!

From what I understand, there is no direct way or pure PicoLisp way to access 
camera/microphone coz it usually rely on existing libraries made by other 
languages like mainly in C. So I think your first step would be find those 
libraries then access them from PicoLisp ;)

Another approach is to run PicoLisp bare-metal (PilOS for x86) and implement 
the I/O access in Assembly :)

OR maybe you can try run PicoLisp on an RPi and have those I/O access by 
existing drivers and have those drivers access from PicoLisp?

I want to suggest the on-going PilMCU (FPGA based) but I'm still working on the 
I/O too so hehe maybe next time ;) Will post a new video soon on the new 
progress :)



BR,
Geo


On Sunday, October 1, 2017 5:44 AM, "stayfirefo...@outlook.com" 
 wrote:



-Original Message-
From: picolisp@software-lab.de 
[mailto:picolisp@software-lab.de] On Behalf Of 
stayfirefo...@outlook.com
Sent: Saturday, September 30, 2017 11:19 PM
To: picolisp@software-lab.de
Subject: RE: I/O device access



-Original Message-
From: picolisp@software-lab.de 
[mailto:picolisp@software-lab.de] On Behalf Of 
stayfirefo...@outlook.com
Sent: Saturday, September 30, 2017 10:54 PM
To: picolisp@software-lab.de
Subject: RE: I/O device access

Thanks so much for the answer, but I don't intend to access camera on Android, 
nor taking picture. The first step of building a vision system for AGI is 
inputting signals or video. Regenaxer, remember I am here because of only 
reason, the goal of building the first AGI in the world. I'm a small 
programmer, you guys have to babysit me :)
I@Rf  )  %  l  pj  i ^  y T ˛  m

I meant, the first step is accessing the camera, then organizing it to the 
thinking center.

5%H$HI��[h�'(�+)�ޕ��z˛��-R{.n�+��

Your reply is not appearing In English, but in weird symbols, I've attached a 
screenshot, please look at it.





Re: I/O device access

2017-09-30 Thread George Orais
Hi stayfirefocus,
Nice goal you got!
>From what I understand, there is no direct way or pure PicoLisp way to access 
>camera/microphone coz it usually rely on existing libraries made by other 
>languages like mainly in C. So I think your first step would be find those 
>libraries then access them from PicoLisp ;)
Another approach is to run PicoLisp bare-metal (PilOS for x86) and implement 
the I/O access in Assembly :)
OR maybe you can try run PicoLisp on an RPi and have those I/O access by 
existing drivers and have those drivers access from PicoLisp? 
I want to suggest the on-going PilMCU (FPGA based) but I'm still working on the 
I/O too so hehe maybe next time ;) Will post a new video soon on the new 
progress :)


BR,Geo
 

On Sunday, October 1, 2017 5:44 AM, "stayfirefo...@outlook.com" 
 wrote:
 

 

-Original Message-
From: picolisp@software-lab.de [mailto:picolisp@software-lab.de] On Behalf Of 
stayfirefo...@outlook.com
Sent: Saturday, September 30, 2017 11:19 PM
To: picolisp@software-lab.de
Subject: RE: I/O device access



-Original Message-
From: picolisp@software-lab.de [mailto:picolisp@software-lab.de] On Behalf Of 
stayfirefo...@outlook.com
Sent: Saturday, September 30, 2017 10:54 PM
To: picolisp@software-lab.de
Subject: RE: I/O device access

Thanks so much for the answer, but I don't intend to access camera on Android, 
nor taking picture. The first step of building a vision system for AGI is 
inputting signals or video. Regenaxer, remember I am here because of only 
reason, the goal of building the first AGI in the world. I'm a small 
programmer, you guys have to babysit me :) 
I@R    f  )  %  l  pj  i ^  y T ˛  m

I meant, the first step is accessing the camera, then organizing it to the 
thinking center.
5%H$HI��[h�'(�+)�ޕ��z˛��-R{.n�+��

Your reply is not appearing In English, but in weird symbols, I've attached a 
screenshot, please look at it.  


   

RE: I/O device access

2017-09-30 Thread stayfirefo...@outlook.com


-Original Message-
From: picolisp@software-lab.de [mailto:picolisp@software-lab.de] On Behalf Of 
stayfirefo...@outlook.com
Sent: Saturday, September 30, 2017 11:19 PM
To: picolisp@software-lab.de
Subject: RE: I/O device access



-Original Message-
From: picolisp@software-lab.de [mailto:picolisp@software-lab.de] On Behalf Of 
stayfirefo...@outlook.com
Sent: Saturday, September 30, 2017 10:54 PM
To: picolisp@software-lab.de
Subject: RE: I/O device access

Thanks so much for the answer, but I don't intend to access camera on Android, 
nor taking picture. The first step of building a vision system for AGI is 
inputting signals or video. Regenaxer, remember I am here because of only 
reason, the goal of building the first AGI in the world. I'm a small 
programmer, you guys have to babysit me :) 
I@R f   )  %  l  pj  i ^   y T ˛   m

I meant, the first step is accessing the camera, then organizing it to the 
thinking center.
5%H$HI��[h�'(�+)�ޕ��z˛��-R{.n�+��

Your reply is not appearing In English, but in weird symbols, I've attached a 
screenshot, please look at it.  


RE: I/O device access

2017-09-30 Thread stayfirefo...@outlook.com


-Original Message-
From: picolisp@software-lab.de [mailto:picolisp@software-lab.de] On Behalf Of 
stayfirefo...@outlook.com
Sent: Saturday, September 30, 2017 10:54 PM
To: picolisp@software-lab.de
Subject: RE: I/O device access

Thanks so much for the answer, but I don't intend to access camera on Android, 
nor taking picture. The first step of building a vision system for AGI is 
inputting signals or video. Regenaxer, remember I am here because of only 
reason, the goal of building the first AGI in the world. I'm a small 
programmer, you guys have to babysit me :) 
I@R f   )  %  l  pj  i ^   y T ˛   m

I meant, the first step is accessing the camera, then organizing it to the 
thinking center.


RE: I/O device access

2017-09-30 Thread stayfirefo...@outlook.com
Thanks so much for the answer, but I don't intend to access camera on Android, 
nor taking picture. The first step of building a vision system for AGI is 
inputting signals or video. Regenaxer, remember I am here because of only 
reason, the goal of building the first AGI in the world. I'm a small 
programmer, you guys have to babysit me :)


Re: I/O device access

2017-09-30 Thread Alexander Burger
On Sat, Sep 30, 2017 at 03:26:52PM +, stayfirefo...@outlook.com wrote:
> How can I access and receive signal from Camera and Microphone (and output
> signal to microphone) purely in PicoLisp?

I do not know of a way to receive a "signal" from Camera or Microphone.

In Android you use an 'Intent' to call an external app like a camera. See e.g.
in @lib/android.l how to call the camera:

   (de takePicture (Dst Fun)
  (out Dst)
  (startActivityForResult Fun
 "android.media.action.IMAGE_CAPTURE"
 "output" (fileUri Dst) ) )

A usage example can be found in PilBox in pils/demo/camera.l

   (form NIL
  (gui '(+Able +Button) '(camera?) "Take Picture"
 '(takePicture (tmp "img")
'((Intent)
   (setq *Picture (tmp "img"))
   (loadUrl (baseHRef) *SesId "demo/camera.l") ) ) )
  ()
  (gui '(+Var +Img) '*Picture NIL NIL 400 400) )

Pressing this button calls 'takePicture', and displays the result in the image
component.


The microphone can be accessed with the android.media.AudioRecord class. It
needs an additional permission in PilBox/app/src/main/AndroidManifest.xml

   

so you cannot use the pre-built PilBox App, but must build your own one.

♪♫ Alex

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


I/O device access

2017-09-30 Thread stayfirefo...@outlook.com
Hello everyone,
How can I access and receive signal from Camera and Microphone (and output 
signal to microphone) purely in PicoLisp?