BS2
Jimi Freeman
Posts: 46
Does the BS2 PBasic provide network capabilities, like raw sockets? What I want to do, is use my PING sensor to measure the distance of an object, and if it gets to a certain point, send an email. The board will be connected to the ttyUSB0 port of my linux machine. I would prefer if the board would make the actual socket to my postfix mail server, if not, I guess I can do it with perl, and listen to the /dev/ttyUSB0 , and parse the output and have perl send the email, however, I would rather not.
Also, it seems the PBasic program for linux does not support 2.5 ?
Also, it seems the PBasic program for linux does not support 2.5 ?
Comments
If you need more in the way of network communications, consider using the Propeller. The YBox2 (www.ladyada.net/make/ybox2/) is a Propeller with an Ethernet interface and video (TV) output that can do Telnet, serve web pages, and even read short mail messages from a POP server. You can download programs to it via the network and there is a fine Spin compiler / downloader that runs under Linux.
Post Edited (Mike Green) : 8/30/2009 2:23:17 PM GMT
Do you know if the Linux PBasic compiler will ever have 2.5 support? Most of the sample apps etc do not compile because of the 2.5 directive, and removing it causes tons of other errors.
The "tokenizer" is really the PBasic compiler and the current version should be able to handle 2.5. It may be that the PBasic IDEs for Linux don't include the current version. I don't really know.
Download the tokenizer via the link at the bottom of the Stamp Software Downloads page where the Linux software is listed.