Skip to main content

Messages

This section allows you to view all Messages made by this member. Note that you can only see Messages made in areas you currently have access to.

Messages - honken

46
Web platform / Re: Getting started with microchips TCP IP stack
I would go with contiki. It is a cooperative multitasking system developed by Adam Dunkels who also wrote the uIP stack.
You wont get Real Time Multitasking, but it is easier to understand and has some very helpful constructions for abstracting state-machines in protocol handlers. They pretty much become straight line code for the developer.

And from what you are describing you don't seem to need realtime anyway.

And as a kicker I am pretty sure there is already a SNMP implementation for it to start from.

Check out http://http://www.contiki-os.org/ and just ignore everything Wireless Sensor Network, it just boils down to IP over some media and you as a user/developer shouldn't have to care.
47
Open Bench Logic Sniffer / Re: Shifted channel 0
A parasitic capacitor on some segment of channel 0 could delay the signal. It takes time to charge the capacitor to a voltage higher the Vih_min.
48
USB Infrared Toy / Re: Possible to turn a pc on?
Actually, looking at the code it is already implemented. Except for some sanity checking.
To signal the host REMOTE WAKEUP, just make a call to
Code: [Select]
void SignalResume( void )

I don't know how the SIE will handle this if it isn't in suspended mode, but it might work.
Oh, and there's some callbacks as well. By defining a macro usb_low_power_request() to a function you will get a callback when the host orders suspend mode and by defining usb_low_power_resume() you get a callback on the resume.
Both defines should go into usb_config.h but it might be that they do not take effect, depending on order of evaluation...

And of course set the remote wakeup bit in configuration descriptor bmAttributes (0xA0)

It's crazy, I apparently wrote this in automatic mode without fully understanding it.
49
USB Infrared Toy / Re: Possible to turn a pc on?
I actually consulted the documentations...

If the (windows) computer is is sleep mode and it has REMOTE WAKEUP devices connected it will go into S1 instead of S3 due to the common fact that older motherboards don't power VUSB in S3. And the usb device is set in suspended mode.

When/If the device signals resume the host wakes up and starts sending START OF FRAME packets, enabling communication again.

What lacks for IRtoy is only software.
First bit 5 (REMOTE WAKEUP) in bmAttributes of the configuration descriptor needs to be set.
Then the wakeup signaling needs to be implemented. That could perhaps be some interrupt on pin change of the IR receiver, then the pic could be put in sleep as well (max allowed power consumption in suspended mode is something like 2.5mA) and any IR signal, correctly modulated, will wake the PC.

I assume Mac/Linux/BSD/Solaris/BeOS/DOS/OS2 et al works in the same manner, perhaps with the ability to go into S3 on newer motherboards.
51
General discussion / Re: pic18f2550 with microchip USB demo
If that works, try it with a reading of Jan Axelson's USB Complete. That , well the non-tape version, worked for me.

Although I got some concepts wrong and I still haven't really grasped what/when to stall.
52
Open source USB stack / Sv: emulating an USB device
I read the article. Truly awesome work, but not without some caviats. Only ep0 and vendor class spec, so you always need a driver.
Perhaps it can be pressed into doing hid but I'm doubtful.
54
General discussion / Sv: Programming IDE's
I usually use vim as well. With the recent compilers from mc based on gcc it works very well with gnu make so you get some control over the build process instead of relying on "magic" as in mplab.
55
Project development, ideas, and suggestions / Re: DP Part Ninja
But what if there were some classifier implemented like find-s or even a high output ann (best match from a list of parts) then you would get an educated guess on a partnumber resembling part under test.

But there is probably not enough rom for that kind of structures. Just the partno string for only 1000 parts is about 8kb.
56
USB Infrared Toy / Re: Possible to turn a pc on?
Well, hardware modifications aside, most modern motherboards support some sort of waking up from usb activity from sleep state.
In sleep state there is still voltage on the USB connector and some rudimentary communication still present, but how exactly the device is supposed to alter its state to notify the host that it should wake up is not known to me.

The best bet is going to the source and read the USB specs, they are not too difficult.
57
USB Infrared Toy / Re: Possible to turn a pc on?
Well, if the PC is completely shut down, there's no waking it via USB. Only perhaps WakeOnLan but that's not for the USBIRToy.
As far as wake from sleep/low power I have seen some hints of how it is supposed to function when implementing the usb stack.

But I haven't investigated further that setting the option to "False" or equivalent in the usb descriptor.
There is no code to support it, and at least I don't know how to do it.

Perhaps JTR knows, it could be a good additional feature to the stack.
I have regrettably too little time to code, I haven't even been able to keep up with the continued development of the stack I started.
58
Open source USB stack / Re: HID
Only heard of some DIY LCD system monitors under linux, don't have any link sorry.
But it takes some of the work out of designing a totally new vendor protocol.
59
Open source USB stack / Re: HID
From my horizon it seems better to go with PYUSB http://pyusb.berlios.de/ then your code would run on osx, [s:]bad[/s:] and Linux as well.

Btw there is usage tables for alphanumeric displays already in the hid specs. Look in "hut 1.1". No need to reinvent the wheel.

[EDIT] That should be BSD, I blame the small kb on my phone.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01432423288session_write_close ( )...(null):0
20.01472554904ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01472555680Database_MySQL->query( ).../DatabaseHandler.php:119
40.05712694440Database_MySQL->error( ).../Db-mysql.class.php:273