Recent activity
Subscribe to this feed
Mauro Zanin replied on January 08, 2009 15:03 to the question "Is there an assembly for Em1000 or more accurate timer?" in Tibbo:
Yes i meant the language. In this case I must measure a distance via a Ultrasound emitter/receiver, so i need a very quick timer:
I already knew the answer, but oped so. I'll take a 8 pin PIC, put a small program to measure the distance, while the EM1000 have some rest! The PIC will send to EM1000 the value for the distance via serial since Em1000 has a lot to use.
Mauro
Mauro Zanin asked a question in Tibbo on January 08, 2009 13:44:
Is there an assembly for Em1000 or more accurate timer?I need a very short time resolution, less than 1ms. With an external trigger I can have it, but I must be very quick to handle it. Is there an assembly available for the EM1000? For maximum speed...
Mauro Zanin replied on January 08, 2009 13:39 to the question "SNTP "Magic Handshake"" in Tibbo:
Mauro Zanin replied on January 08, 2009 11:29 to the question "SNTP "Magic Handshake"" in Tibbo:
Mauro Zanin replied on December 16, 2008 14:52 to the question "Need help with driving 2N2222 transistor with EM1000" in Tibbo:
http://www1.jaycar.com.au/images_uplo...
there is a very nice schematic of a optocoupler use to drive a TRIAC. You can use it exactly as a transistor. Reduce the current on CPU I/O and forget spikes. My favourite device is 4N25, cheap and capable. It can drive a relay directly or a transistor's base, depending on current.
You can change it in seconds if it burns.
Look at this too:
http://www.geocities.com/dsaproject/e...
ciao
Mauro
Mauro Zanin replied on December 16, 2008 14:01 to the question "Need help with driving 2N2222 transistor with EM1000" in Tibbo:
Mauro Zanin replied on December 16, 2008 10:43 to the question "Need help with driving 2N2222 transistor with EM1000" in Tibbo:
Maybe some varnish was conducting a small current.
For your info we have written a RS232 Device Server for EM1000 suporting wireless.
It is available in source for a small fee. If required we can develop a 4 ports similar solution.
If I can what is the final target for you project? 2n2222 is my favourite transistor since i was a boy. I put it everywhere.
Regards
Mauro
Mauro Zanin replied on December 15, 2008 16:23 to the question "Need help with driving 2N2222 transistor with EM1000" in Tibbo:
Mauro Zanin replied on November 04, 2008 14:29 to the question "How to do something like a windows Sleep(ms)?" in Tibbo:
Ciao
w=sys.timecount 'memorize time count at the beginning of waiting for serial data
do while true
if sys.timecount-w>20 then exit do 'we quit after 10 seconds
doevents 'polite waiting includes this
wend
This will count 10 seconds. The minimun is half a second
Another way to delay is:
dim delay as integer
sys.onsystimerperiod=10 ' each interrupt is 10ms put on initialization routines
sub on_sys_timer
delay=delay+1
if delay= 30000 then delay=0 ' to void runtime error maximum 300 seconds
end sub
sub delay(msdelay as integer)
delay=0 ' clear counter
do while true
doevents
if msdelay=delay then exit sub
loop
end sub
to pause 20ms
delay(2)
Hope it can help
Ciao
Mauro
Mauro Zanin shared an idea in Tibbo on September 29, 2008 09:07:
Wireless Device Server firmware available.We have implemented a single port Device Server on EM1000W, using the Wi_Fi features.
It handles Xon/Xoff or hardware handshake, actually uses only in-band comunications and is partially compatible with Tibbo's DSManager.
It's for internal use, but if anybody wants it, we can licence it for a little fee in source.
If it's interesting for you, we can enable all the four RS232 ports, for separate COMx handling.
Regards
Mauro Zanin
www.logicdata.it
mauro@logicdata.it
Mauro Zanin replied on September 02, 2008 07:47 to the question "Support for Notification of ports status on EM1000" in Tibbo:
Mauro Zanin replied on September 02, 2008 07:06 to the question "Support for Notification of ports status on EM1000" in Tibbo:
Mauro Zanin replied on September 01, 2008 15:13 to the question "Support for Notification of ports status on EM1000" in Tibbo:
The scanning tech for commands of Agent fails with mixed alpha+digit, since it can get confused with relative position. if you add as a tail the command P1 or E1 the scan will find LP or PP in settings.txt, because they are LP16PP17 in the string scanned by instr and NEVER finds P1. Hope that my english is clear enough.
Ciao
Mauro
Mauro Zanin replied on September 01, 2008 14:06 to the question "Support for Notification of ports status on EM1000" in Tibbo:
Mauro Zanin replied on September 01, 2008 13:41 to the question "Support for Notification of ports status on EM1000" in Tibbo:
Ciao again,
yes I use SDF both volatile and stored(I learned the DS manager's functions thru its errors!), that's why I found this issue in Agent.
No more question, by now. The only thing is I'm puzzled with UDP in Wi-Fi. There would be no error, since the Access Point is 2 meters from the WA1000... I've implemented a Field's Strength display with the "5 Leds bar". Next step would be all 4 ports simultaneous support.
Ciao
Mauro
Mauro Zanin replied on September 01, 2008 13:19 to the question "Support for Notification of ports status on EM1000" in Tibbo:
Hi Ezuk,
yes TDST is my aim. I have already a DS program working with Wi-Fi and Ethernet interface , with a lot of comands available. I works very well with TCP , but I have some problem in using UDP, dunno why. I'm writing a small utility to configure parameters non available in DS.
"Agent" project has some fault: in commands like P1 it's prone to fail.
SInce it's editable I want to extend my program's capabilities with a dedicated channel for direct handling of LEDs, Buttons and a TTY screen.
I need to comunicate with it close to Numeric Controls' consoles, yust to interact with Control firmware.
What I can say is that Em1000 is a wonderful boy, but it lacks a little bit of documentation.
Ciao
Mauro
Mauro Zanin asked a question in Tibbo on August 21, 2008 07:43:
WA1000 not seen on WLAN.Hi there
I'm puzzled about WA1000, I have a dual interface program, using WLN or NET interfaces. If I chose NET everything is OK, while if I chose WLN it doesn't comunicate. I'm able to see that Association is correct, the wln.scan function returns my network SSID, but I'm not able to ping the WA1000, here is the initialization code for my program:
io.num=PL_IO_NUM_51
io.enabled=YES
io.state=LOW
'WLN CS mapping -- do this before enabling power
wln.csmap=PL_IO_NUM_49
io.num=PL_IO_NUM_49
io.state=HIGH
io.enabled=YES
settings_parse
nomewifi=setting_get("WN")
passwifi=setting_get("WP")
passwifi="" 'this is the password for WEP
' nomewifi="" 'commenting this line the program uses the ethernet NIC otherwise the WIFI
if nomewifi<>"" then
wln.mac="2.0.1.35.34.1"
wln.buffrq(3)
romfile.open("wln_fwar.bin")
if wln.boot(romfile.offset)= NO then
pat.play("~R---------------",PL_PAT_CANINT)
end if
While wln.task<>PL_WLN_TASK_IDLE
Wend
if wln.enabled=NO then
pat.play("~R---------------",PL_PAT_CANINT)
end if
select case len(passwifi)
case 0
wln.wepmode =PL_WLN_WEP_MODE_DISABLED
case 10
wln.wepmode =PL_WLN_WEP_MODE_64
case 26
wln.wepmode =PL_WLN_WEP_MODE_128
end select
if len(passwifi)>0 then
wln.wepkey1=passwifi
wln.wepkey2=passwifi
wln.wepkey3=passwifi
wln.wepkey4=passwifi
wln.setwep
end if
While wln.task<>PL_WLN_TASK_IDLE
Wend
end if
if nomewifi="" then
net.ip = setting_get("IP")
net.gatewayip = setting_get("GI")
net.netmask = setting_get("NM")
else
wln.ip = setting_get("IP") '192.168.1.19
wln.gatewayip = setting_get("GI") '192.168.1.1
wln.netmask = setting_get("NM") '255.255.255.0
wln.scan("")
While wln.task<>PL_WLN_TASK_IDLE
Wend
passwifi=wln.scanresultssid 'just to see if we get the SSID (and see in DEBUG MODE
wln.ssid=nomewifi
wln.settxpower(255)
while wln.task<>PL_WLN_TASK_IDLE
wend
wln.bssmode=PL_WLN_BSS_MODE_INFRASTRUCTURE
'wln.defaultibsschannel=6
wln.associate
While wln.task<>PL_WLN_TASK_IDLE
Wend
If wln.associationstate=PL_WLN_NOT_ASSOCIATED Then
pat.play("R-B-R~",PL_PAT_CANINT)
exit sub
end if
end if
sock.num=SOCK_LS
sock.allowedinterfaces="NET,WLN"
pat.play("~G-G-------------",PL_PAT_CANINT)
ser.flowcontrol=DISABLED
ser.mode=PL_SER_MODE_UART
ser.txbuffrq(2)
ser.rxbuffrq(2)
sock.txbuffrq(4)
sock.rxbuffrq(4)
sock.cmdbuffrq(1) 'buffer for incoming inband commands
sock.rplbuffrq(1) 'buffer for outgoing inband replies
sock.tx2buffrq(4)
sock.protocol=PL_SOCK_PROTOCOL_TCP
' sock.targetip=setting_get("DI") ' Get IP setting here
' sock.targetport=val(setting_get("DP"))
sock.inbandcommands=YES
sock.escchar=255
sock.endchar=13
sock.connectiontout=val(setting_get("CT")) * 60 * 2
sock.inconmode=PL_SOCK_INCONMODE_ANY_IP_ANY_PORT
sock.localportlist=setting_get("PN")
sock.reconmode=PL_SOCK_RECONMODE_3
sock.num=SOCK_UDP
sock.allowedinterfaces="NET,WLN"
sock.txbuffrq(1)
sock.rxbuffrq(1)
sock.protocol=PL_SOCK_PROTOCOL_UDP
sock.localportlist="65535"
sock.inconmode=PL_SOCK_INCONMODE_ANY_IP_ANY_PORT
sock.reconmode=PL_SOCK_RECONMODE_3
sock.acceptbcast=YES
sys.buffalloc
'******END ------------------------------------
Regards and thanks
Mauro
Mauro Zanin asked a question in Tibbo on August 20, 2008 09:00:
Support for Notification of ports status on EM1000Anybody knows how to implement Notification bits support on a EM1000 and if Virtual Ports is supported for EM1000 on Tibbo's drivers?
Regards
Mauro
Mauro Zanin replied on August 06, 2008 09:56 to the question "Schematyc diagram of development boards" in Tibbo:
Mauro Zanin replied on August 03, 2008 10:02 to the question "Device Server on EM1000W?" in Tibbo:
| next » « previous |
Loading Profile...


