• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu
Menu

Show posts

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

Show posts Menu

Messages - Andy P.

#1
Networking / Re: Wake on LAN
2012.09.15, 22:26:30
There is no need to care especially about WakeOnLan in MultiMac. If the drivers don't touch the registers, everything is fine. Fortunately, WakeOnLan works on BIOS level and is similar to WakeOnKeyboard. There are only few points:
1.) Some computer manufacturer sells their machines with power off=S5 to meet certain green terms. Swich this back to S3.
2.) OSes have the possibility to mix this up. Windows (what else) will do this by change the registers of network cards to not listen to magic packets.
So you have to configure the card driver to set the network card back to listening. There are some rare Linux distributions that do this too, but the major part does switch WakeonLan back on at shutdown.
3.) There are some network cards with especially no WakeOnLan (e.G some 3Com), that can't be turn. If in doubt, read the manual of the Card.

WakeOnLan standards specifies a password for magic packets. Some network cards can be set to check a WakeOnLan-passwort before waking up the computer. I don't know which card uses this, nor how the password can be set. If you have such card, the password goes to the variable G (default 0x000000000000) in the same manner like the variable X.
The Mac can be found with the command line: arp -a

To say this clear:
This little rexx script is just a finger exercise and have no copyright value in my point of view, so I gave no copyright disclaimer. Feel free to use it.
As usual for WakeOnLan, you are not sticked to eCs- computers. Also Windows-, Linux- and MAC- driven computers can be awakened. Even non-computer systems can be switched on (If they know about WakeOnLan). In my case, I wrote this to switch on my satellite receiver from my eCs-Box ;)
Andy
#2
The problem is to find/develop a appropriate USBser.sys for the USB-device "Arduino".
For the userland software in the Arduino, you can use your favorite texteditor
to write JAVA od C Code. I have seen an AVR-Pack on Hobbes years ago. Since the Arduino uses an 8-bit AVR, you can still use this.
With the same Price Tag, you can get a similar system, where the USB Port ist substituted with Ethernet:
http://www.pollin.de/shop/suchergebnis.html?S_TEXT=810+058

If you look more around, there is a Project called V-USB at
http://www.obdev.at/products/vusb/index.html
It works good, if you use Windows or Linux, But i have no success to drive anything from OS/2. I have tried Wim Bruls USB-driver, but failed.
http://home.hccnet.nl/w.m.brul/index.html

This V-USB- Project might be a way to get a reliable solution for a long term availible USB2SER or USB2PAR Adapters. Nowadays, you cant buy any of the OS/2-supported USB2SER-adapters formerly availible form Belkin & Co.
If you know someone, who can code a driver, i can made the hardware project (PCBs, AVR-Firmware, Sets for homemade-Adapters with Parts, that are availible around the world in the next 5-10 years.).
#3
Networking / Wake on LAN
2012.09.08, 13:28:51
/*magic.cmd*/
/*Wake on Lan in REXX*/
MAC = '11:22:33:44:55:66';
SAY MAC;
A = X2C(SUBSTR(MAC,1,2));
B = X2C(SUBSTR(MAC,4,2));
C = X2C(SUBSTR(MAC,7,2));
D = X2C(SUBSTR(MAC,10,2));
E = X2C(SUBSTR(MAC,13,2));
F = X2C(SUBSTR(MAC,16,2));
X = A||B||C||D||E||F;
call RxFuncAdd 'SockLoadFuncs', 'rxsock', 'SockLoadFuncs';
call SockLoadFuncs('*'); 
SCT = SockSocket('AF_INET', 'SOCK_DGRAM', 'IPPROTO_UDP');
RC = SockSetSockOpt(SCT, 'SOL_SOCKET', 'SO_BROADCAST', '1');
RC = SockIOCtl(SCT, 'FIONBIO', '0');
adr.!family = 'AF_INET';
adr.!addr   = '255.255.255.255';
adr.!port   = 9;
S = COPIES(D2C(255) ,6);
T = COPIES(X ,16);
G = COPIES(D2C(0) ,6);
RC = SockConnect(SCT, "adr.!");
STG = S||T||G;
SAY STG;
RC = SockSend(SCT, STG);
call SockSoClose SCT;
exit;
#4
Open Bounties / Re: TrueCrypt port
2010.03.13, 15:14:05
Andy wrote:
QuoteBut, who needs an encrypted boot partition with OS/2?
IMHO Truecrypt used without boot partition encrypted is dangerous. I.e. in the swapper.dat you will find many value information of the files you want to hide.
In the end, you have to protect your boot partition also.

magog  wrote:
QuoteeNova now has an AES-based X-Wall encryption chip for SATA (X-Wall MX) but so far there doesn't seem to be a simple PCB you can directly attach to your SATA drive like it was possible with the old Abit Secure IDE solution with the DES encryption.
Looking for the same solution, I could put my hands on an piece of hardware with the X-Wall MX256. Im using this chip now fpr almost one year. It is fully transparent for all operations. Installing ecs, or using DFsee is without any problems. It works as if nonexistent form the system within. It crypts sector by sector in AES256 in ECB-mode. Chips with CBC-Mode by default are only availible on request - means if you order more then 10.000 chips.
If you want such a PCB with two FOBs (no, the old DES-FOBs doesnt work) PM me.

Andy P.